Wiselib
|
Base State Callback classBasic state callback class that provides helpful methods like registration of callbacks. More...
#include <sensor_callback_base.h>
Public Types | |
enum | ReturnValues { SUCCESS = OsModel::SUCCESS } |
typedef OsModel_P | OsModel |
typedef Value_P | value_t |
typedef delegate1< void, value_t > | sensor_callback_delegate_t |
typedef vector_static< OsModel, sensor_callback_delegate_t, MAX_RECEIVERS > | CallbackVector |
typedef CallbackVector::iterator | CallbackVectorIterator |
Public Member Functions | |
template<class T , void(T::*)(value_t) TMethod> | |
int | register_sensor_callback (T *obj_pnt) |
int | unreg_read_callback (int idx) |
void | notify_receivers (value_t value) |
Base State Callback class
Basic state callback class that provides helpful methods like registration of callbacks.
typedef vector_static<OsModel, sensor_callback_delegate_t, MAX_RECEIVERS> wiselib::SensorCallbackBase< OsModel_P, Value_P, MAX_RECEIVERS >::CallbackVector |
typedef CallbackVector::iterator wiselib::SensorCallbackBase< OsModel_P, Value_P, MAX_RECEIVERS >::CallbackVectorIterator |
typedef OsModel_P wiselib::SensorCallbackBase< OsModel_P, Value_P, MAX_RECEIVERS >::OsModel |
Reimplemented in wiselib::iSenseLightSensor< OsModel_P, LIGHT_THRESHOLD >.
typedef delegate1<void, value_t> wiselib::SensorCallbackBase< OsModel_P, Value_P, MAX_RECEIVERS >::sensor_callback_delegate_t |
typedef Value_P wiselib::SensorCallbackBase< OsModel_P, Value_P, MAX_RECEIVERS >::value_t |
Reimplemented in wiselib::iSenseLightSensor< OsModel_P, LIGHT_THRESHOLD >.
enum wiselib::SensorCallbackBase::ReturnValues |
void wiselib::SensorCallbackBase< OsModel_P, Value_P, MAX_RECEIVERS >::notify_receivers | ( | value_t | value | ) | [inline] |
int wiselib::SensorCallbackBase< OsModel_P, Value_P, MAX_RECEIVERS >::register_sensor_callback | ( | T * | obj_pnt | ) | [inline] |
int wiselib::SensorCallbackBase< OsModel_P, Value_P, MAX_RECEIVERS >::unreg_read_callback | ( | int | idx | ) | [inline] |