Vecow RCS-70000 User Manual page 100

Fanless robust computing system with 4 pci/pcie slots, 3rd gen. intel core i7/ i5/ i3 mobile processor
Table of Contents

Advertisement

D. Start to Access the ECS-7800-PoE GPIO Port
Please refer to source code for set_data() and get_data() function.
Write data to GPO(output) port
set_data( Register Index , update_value);
example :
unsigned char data = 0x82;
set_data( 0xE5 , data);
//Set bit 7 & bit 1 of GPO output port as High level ,another bit is Low
Please refer to source code for set_data() and get_data() function.
Read data to GPI(input) port
get_data( Register Index ) //It will return a BYTE value.
example :
unsigned char data
get_data( 0xF1 , data);
//Get GPI(input) port status on input_data variable.
E. WDT ON/OFF and Timer-Counter setting
Refer to GPIO setting of Step A and B. , located Logical 0x08 for WDT function.
Reg [0x30] is WatchDog ON/OFF control.
WatchDog On :
WatchDog Off :
Reg [0xF0] is WatchDog timer - counterON/OFF control.
WatchDog counter start :
WatchDog counter start :
Reg [0xF1] is WatchDog time-out value, "Reading" this register returns the
current value in the Watch Dog Counter, not the Watch Dog Timer Time-out
value..
WatchDog time-out value : set_data( 0xF1 , );
set_data( 0x30 , 0x01);
set_data( 0x30 , 0x00);
set_data( 0xF0 , 0x02);
set_data( 0xF0 , 0x00);
Appendix B
93

Advertisement

Table of Contents
loading

Table of Contents