![Vecow SPC-4500 User Manual Download Page 76](http://html1.mh-extra.com/html/vecow/spc-4500/spc-4500_user-manual_3854355076.webp)
69
©Vecow SPC-4500 User Manual
Appendix B
BOOL GetGPIO (WORD *DI)
Get GPIO input
DI ([15:0]): Input state, pin setting by hexadecimal bitmask
1 : High;
0 : Low
Return :
TRUE (1) : Success;
FALSE (0) : Fail (Initial error, or call by pointer error, or hardware problem)
BOOL SetGPIO (WORD DO)
Set GPIO output
DO ([15:0]) : output state, pin setting by hexadecimal bitmask
1 : High;
0 : Low
Return :
TRUE (1) : Success;
FALSE (0) : Fail (Initial error, or hardware problem)
BOOL GetWDT (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 SetWDT (DWORD WDT)
Set watchdog timer setup
WDT : watchdog timer setup
Unit : second. (Range : 1 ~ 65535 sec, 1093 ~ 65535 min (=65580 ~
3932100 sec))
Return :
TRUE (1) : Success;
FALSE (0) : Fail (Initial error, or setup 0 error, or hardware problem)
BOOL CancelWDT ()
Cancel watchdog timer
Return :
TRUE (1) : Success;
FALSE (0) : Fail (Initial error, or hardware problem)