#include <myahrs_plus.hpp>
Public Member Functions | |
uint32_t | get_sample_count () |
MyAhrsPlus (std::string port="", unsigned int baudrate=115200) | |
void | register_attribute_callback (void(*callback)(void *context, int sensor_id, const char *attribute_name, const char *value), void *callback_context) |
void | register_data_callback (void(*callback)(void *context, int sensor_id, SensorData *sensor_data), void *callback_context) |
bool | wait_data (int timeout_msec=500) |
virtual | ~MyAhrsPlus () |
Protected Member Functions | |
void | OnAttributeChange (int sensor_id, std::string attribute_name, std::string value) |
void | OnSensorData (int sensor_id, SensorData data) |
Private Attributes | |
void(* | attribute_callback )(void *context, int sensor_id, const char *attribute_name, const char *value) |
void * | attribute_callback_context |
void(* | data_callback )(void *context, int sensor_id, SensorData *sensor_data) |
void * | data_callback_context |
Platform::Event | event |
Platform::Mutex | lock |
uint32_t | sample_count |
Definition at line 2951 of file myahrs_plus.hpp.
WithRobot::MyAhrsPlus::MyAhrsPlus | ( | std::string | port = "" , |
unsigned int | baudrate = 115200 |
||
) | [inline] |
Definition at line 2965 of file myahrs_plus.hpp.
virtual WithRobot::MyAhrsPlus::~MyAhrsPlus | ( | ) | [inline, virtual] |
Definition at line 2971 of file myahrs_plus.hpp.
uint32_t WithRobot::MyAhrsPlus::get_sample_count | ( | ) | [inline] |
Definition at line 2994 of file myahrs_plus.hpp.
void WithRobot::MyAhrsPlus::OnAttributeChange | ( | int | sensor_id, |
std::string | attribute_name, | ||
std::string | value | ||
) | [inline, protected, virtual] |
Reimplemented from WithRobot::iMyAhrsPlus.
Definition at line 3000 of file myahrs_plus.hpp.
void WithRobot::MyAhrsPlus::OnSensorData | ( | int | sensor_id, |
SensorData | data | ||
) | [inline, protected, virtual] |
Reimplemented from WithRobot::iMyAhrsPlus.
Definition at line 3009 of file myahrs_plus.hpp.
void WithRobot::MyAhrsPlus::register_attribute_callback | ( | void(*)(void *context, int sensor_id, const char *attribute_name, const char *value) | callback, |
void * | callback_context | ||
) | [inline] |
Definition at line 2982 of file myahrs_plus.hpp.
void WithRobot::MyAhrsPlus::register_data_callback | ( | void(*)(void *context, int sensor_id, SensorData *sensor_data) | callback, |
void * | callback_context | ||
) | [inline] |
Definition at line 2988 of file myahrs_plus.hpp.
bool WithRobot::MyAhrsPlus::wait_data | ( | int | timeout_msec = 500 | ) | [inline] |
Definition at line 2978 of file myahrs_plus.hpp.
void(* WithRobot::MyAhrsPlus::attribute_callback)(void *context, int sensor_id, const char *attribute_name, const char *value) [private] |
Definition at line 2956 of file myahrs_plus.hpp.
void* WithRobot::MyAhrsPlus::attribute_callback_context [private] |
Definition at line 2957 of file myahrs_plus.hpp.
void(* WithRobot::MyAhrsPlus::data_callback)(void *context, int sensor_id, SensorData *sensor_data) [private] |
Definition at line 2959 of file myahrs_plus.hpp.
void* WithRobot::MyAhrsPlus::data_callback_context [private] |
Definition at line 2960 of file myahrs_plus.hpp.
Platform::Event WithRobot::MyAhrsPlus::event [private] |
Definition at line 2953 of file myahrs_plus.hpp.
Platform::Mutex WithRobot::MyAhrsPlus::lock [private] |
Definition at line 2954 of file myahrs_plus.hpp.
uint32_t WithRobot::MyAhrsPlus::sample_count [private] |
Definition at line 2962 of file myahrs_plus.hpp.