W406-CE User’s Manual
Application Development
DIO
Sets one of the DOUT outputs.
Class Name:
DigitalOutput
Method:
bool
Set(int port, int data);
Inputs:
<port> the port index, from 0 to 3 mapping to DO0~DO3
<data> 1 : HIGH, 0 : LOW
Return Values:
true on success, false, the function fails
Remark:
Get one of the DIN inputs.
Class Name:
DigitalInput
Method:
int Get(int port);
Inputs:
<port> the port index, from 0 to 3 mapping to DI0~DI3
Return Values:
1 indicates HIGH, 0 indicates LOW
Remark:
Gets one of DOUT outputs.
Class Name:
DigitalOutput
Method:
int Get(int port);
Inputs:
<port> the port index, from 0 to 3 mapping to DO0~DO3
Return Values:
1 indicates HIGH, 0 indicates LOW
Remark:
Watchdog
Starts up the watchdog.
Class Name:
Watchdog
Method:
bool start (uint
dwRefreshPeriod
);
Inputs:
<dwRefreshPeriod> the watchdog refresh time interval in milliseconds.
Return Values:
True on success, false indicates failure.
Remark:
After calling the start(), you must call refresh() in the specified time(dwRefreshPeriod) or
the system will be triggered rebooting.
B-19