41 #ifndef YOCTO_HUBPORT_H 42 #define YOCTO_HUBPORT_H 55 #ifndef _Y_ENABLED_ENUM 56 #define _Y_ENABLED_ENUM 63 #ifndef _Y_PORTSTATE_ENUM 64 #define _Y_PORTSTATE_ENUM 65 #ifdef Y_PORTSTATE_INVALID 66 #undef Y_PORTSTATE_INVALID 77 #define Y_BAUDRATE_INVALID (YAPI_INVALID_UINT) 91 #pragma option push -w-8022 138 {
return this->get_enabled(); }
152 {
return this->set_enabled(newval); }
165 {
return this->get_portState(); }
176 int get_baudRate(
void);
179 {
return this->get_baudRate(); }
208 static YHubPort* FindHubPort(
string func);
239 {
return this->nextHubPort();}
250 static YHubPort* FirstHubPort(
void);
static YHubPort * First(void)
Y_ENABLED_enum enabled(void)
YHubPort * yFindHubPort(const string &func)
static YHubPort * Find(string func)
#define YAPI_INVALID_UINT
YHubPortValueCallback _valueCallbackHubPort
virtual int _parseAttr(YJSONObject *json_val)
void(* YHubPortValueCallback)(YHubPort *func, const string &functionValue)
static YHubPort * FindHubPort(string func)
int setEnabled(Y_ENABLED_enum newval)
YHubPort * yFirstHubPort(void)
virtual int registerValueCallback(YFunctionValueCallback callback)
Y_PORTSTATE_enum portState(void)
#define YOCTO_CLASS_EXPORT
static YHubPort * FirstHubPort(void)
Y_PORTSTATE_enum _portState
virtual int _invokeValueCallback(string value)