76
©Vecow EMBC-5000 User Manual
Appendix B
BOOL get_GPIO1(WORD *GPIO_data)
Get GPIO.
GPIO_data ([15:0]) : GPIO state, pin setting by hexadecimal bitmask.
1 : High;
0 : Low.
Return :
TRUE (1) : Success.
FALSE (0) : Fail (Initial error or hardware problem).
BOOL set_GPIO1(WORD GPIO_data)
Set GPIO.
GPIO_data ([15:0]) : GPIO state, pin setting by hexadecimal bitmask.
1 : High;
0 : Low.
Return :
TRUE (1) : Success.
FALSE (0) : Fail (Initial error or hardware problem).
BOOL get_WDT(DWORD *WDT)
Get watchdog timer setup.
WDT : watchdog timer setup.
Unit : second (Range : 0 ~ 65535 sec, 1093 ~ 65535 min (=65580 ~
3932100 sec)).
Return :
TRUE (1) : Success.
FALSE (0) : Fail (Initial error, or call by pointer error, or hardware problem).
BOOL set_WDT(DWORD WDT)
Set watchdog timer setup.
WDT : watchdog timer setup.
Unit : second (Range: 0 ~ 65535 sec, 1093 ~ 65535 min (=65580 ~ 3932100
sec)).
Return :
TRUE (1) : Success.
FALSE (0) : Fail (Initial error, or setup 0, or hardware problem).
BOOL cancel_WDT()
Cancel watchdog timer.
Return :
TRUE (1) : Success.
FALSE (0) : Fail (Initial error or hardware problem).