10 #ifndef __FRC_ROBORIO__
12 #include "HAL_Value.h"
14 typedef void (*HAL_NotifyCallback)(
const char* name,
void* param,
17 typedef void (*HAL_BufferCallback)(
const char* name,
void* param,
18 unsigned char* buffer,
unsigned int count);
20 typedef void (*HAL_ConstBufferCallback)(
const char* name,
void* param,
21 const unsigned char* buffer,
26 template <
typename CallbackFunction>
30 : callback(callback_), param(param_) {}
32 explicit operator bool()
const {
return callback !=
nullptr; }
34 CallbackFunction callback;
HAL Entry Value.
Definition: HAL_Value.h:25
WPILib Hardware Abstraction Layer (HAL) namespace.
Definition: SimDataValue.h:19
Definition: NotifyListener.h:27
auto count(R &&Range, const E &Element) -> typename std::iterator_traits< decltype(adl_begin(Range))>::difference_type
Wrapper function around std::count to count the number of times an element Element occurs in the give...
Definition: STLExtras.h:941