41 #ifndef YOCTO_COMPASS_H 42 #define YOCTO_COMPASS_H 66 #define Y_BANDWIDTH_INVALID (YAPI_INVALID_INT) 67 #define Y_MAGNETICHEADING_INVALID (YAPI_INVALID_DOUBLE) 86 #pragma option push -w-8022 126 int get_bandwidth(
void);
129 {
return this->get_bandwidth(); }
141 int set_bandwidth(
int newval);
143 {
return this->set_bandwidth(newval); }
148 {
return this->get_axis(); }
157 double get_magneticHeading(
void);
160 {
return this->get_magneticHeading(); }
189 static YCompass* FindCompass(
string func);
236 {
return this->nextCompass();}
247 static YCompass* FirstCompass(
void);
static YCompass * Find(string func)
static YCompass * FirstCompass(void)
int setBandwidth(int newval)
YCompassTimedReportCallback _timedReportCallbackCompass
void(* YCompassValueCallback)(YCompass *func, const string &functionValue)
static YCompass * FindCompass(string func)
YCompassValueCallback _valueCallbackCompass
double magneticHeading(void)
static const double MAGNETICHEADING_INVALID
YCompass * yFindCompass(const string &func)
virtual int registerTimedReportCallback(YSensorTimedReportCallback callback)
virtual int _invokeTimedReportCallback(YMeasure value)
virtual int _invokeValueCallback(string value)
YCompass * yFirstCompass(void)
virtual int _parseAttr(YJSONObject *json_val)
virtual int registerValueCallback(YSensorValueCallback callback)
#define YOCTO_CLASS_EXPORT
void(* YCompassTimedReportCallback)(YCompass *func, YMeasure measure)
static YCompass * First(void)