41 #ifndef YOCTO_DIGITALIO_H 42 #define YOCTO_DIGITALIO_H 55 #ifndef _Y_OUTPUTVOLTAGE_ENUM 56 #define _Y_OUTPUTVOLTAGE_ENUM 64 #define Y_PORTSTATE_INVALID (YAPI_INVALID_UINT) 65 #define Y_PORTDIRECTION_INVALID (YAPI_INVALID_UINT) 66 #define Y_PORTOPENDRAIN_INVALID (YAPI_INVALID_UINT) 67 #define Y_PORTPOLARITY_INVALID (YAPI_INVALID_UINT) 68 #define Y_PORTDIAGS_INVALID (YAPI_INVALID_UINT) 69 #define Y_PORTSIZE_INVALID (YAPI_INVALID_UINT) 70 #define Y_COMMAND_INVALID (YAPI_INVALID_STRING) 84 #pragma option push -w-8022 133 int get_portState(
void);
136 {
return this->get_portState(); }
148 int set_portState(
int newval);
150 {
return this->set_portState(newval); }
160 int get_portDirection(
void);
163 {
return this->get_portDirection(); }
176 int set_portDirection(
int newval);
178 {
return this->set_portDirection(newval); }
189 int get_portOpenDrain(
void);
192 {
return this->get_portOpenDrain(); }
205 int set_portOpenDrain(
int newval);
207 {
return this->set_portOpenDrain(newval); }
217 int get_portPolarity(
void);
220 {
return this->get_portPolarity(); }
235 int set_portPolarity(
int newval);
237 {
return this->set_portPolarity(newval); }
248 int get_portDiags(
void);
251 {
return this->get_portDiags(); }
260 int get_portSize(
void);
263 {
return this->get_portSize(); }
276 {
return this->get_outputVoltage(); }
291 {
return this->set_outputVoltage(newval); }
293 string get_command(
void);
296 {
return this->get_command(); }
298 int set_command(
const string& newval);
300 {
return this->set_command(newval); }
329 static YDigitalIO* FindDigitalIO(
string func);
357 virtual int set_bitState(
int bitno,
int bitstate);
368 virtual int get_bitState(
int bitno);
379 virtual int toggle_bitState(
int bitno);
392 virtual int set_bitDirection(
int bitno,
int bitdirection);
403 virtual int get_bitDirection(
int bitno);
417 virtual int set_bitPolarity(
int bitno,
int bitpolarity);
429 virtual int get_bitPolarity(
int bitno);
443 virtual int set_bitOpenDrain(
int bitno,
int opendrain);
456 virtual int get_bitOpenDrain(
int bitno);
470 virtual int pulse(
int bitno,
int ms_duration);
485 virtual int delayedPulse(
int bitno,
int ms_delay,
int ms_duration);
500 {
return this->nextDigitalIO();}
int setPortPolarity(int newval)
int setPortState(int newval)
int setPortOpenDrain(int newval)
void(* YDigitalIOValueCallback)(YDigitalIO *func, const string &functionValue)
#define YAPI_INVALID_UINT
int setOutputVoltage(Y_OUTPUTVOLTAGE_enum newval)
static YDigitalIO * Find(string func)
virtual int _parseAttr(YJSONObject *json_val)
Y_OUTPUTVOLTAGE_enum _outputVoltage
int setCommand(const string &newval)
YDigitalIO * yFindDigitalIO(const string &func)
static const string COMMAND_INVALID
static YDigitalIO * First(void)
virtual int registerValueCallback(YFunctionValueCallback callback)
YDigitalIOValueCallback _valueCallbackDigitalIO
static YDigitalIO * FirstDigitalIO(void)
#define YOCTO_CLASS_EXPORT
int setPortDirection(int newval)
YDigitalIO * yFirstDigitalIO(void)
virtual int _invokeValueCallback(string value)
static YDigitalIO * FindDigitalIO(string func)
Y_OUTPUTVOLTAGE_enum outputVoltage(void)