Public Member Functions | Protected Member Functions | Private Attributes
WithRobot::MyAhrsPlus Class Reference

#include <myahrs_plus.hpp>

Inheritance diagram for WithRobot::MyAhrsPlus:
Inheritance graph
[legend]

List of all members.

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

Detailed Description

Definition at line 2951 of file myahrs_plus.hpp.


Constructor & Destructor Documentation

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.


Member Function Documentation

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.


Member Data Documentation

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.

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.

Definition at line 2960 of file myahrs_plus.hpp.

Definition at line 2953 of file myahrs_plus.hpp.

Definition at line 2954 of file myahrs_plus.hpp.

Definition at line 2962 of file myahrs_plus.hpp.


The documentation for this class was generated from the following file:


myahrs_driver
Author(s): Yoonseok Pyo
autogenerated on Sat Jun 8 2019 10:27:56