JHCTech SIGM-3250 Series User Manual page 70

Table of Contents

Advertisement

GPIO pin
Note: The output value is valid only when the pinis in output mode.
4*creation date:
5*========================================================================*/
/*==========================================================================
2* voidSecond_gpio_output(int port,int level);
2* function description:high and low levelsoutput of thesubcard
3*parameter description:
Parameter:port fill in subcard GPIO number, 1 or 2
Level 8 bit of aByte, each bit controls a GPIO pin output value,
Bit=1, means output high level
Bit =0, means output low level
Level
GPIO pin
Note: The output value is valid only whenthe pin is in output mode.
4*creation date:
5*========================================================================*/
/*==========================================================================
1* intSecond_gpio_input(int port);
2
* function description:read the motherboard GPIO input level
3
* parameter description:
Return value:return a byte (8 bit), eachbit of 8 bit corresponding to the level state of a GPIO pin
Return value
GPIO pin
parameter:port fill in subcard GPIO number, 1 or 2
Note:Thereadvalue is valid only when the pin is ininput mode
PIN8
PIN7
PIN6
Bit7
Bit6
Bit5
PIN8
PIN7
PIN6
Bit7
Bit6
Bit5
PIN8
PIN7
PIN6
PIN5
PIN4
PIN3
Bit4
Bit3
Bit2
PIN5
PIN4
PIN3
Bit4
Bit3
Bit2
PIN5
PIN4
PIN3
65
User's Manual
PIN2
PIN1
Bit1
Bit0
PIN2
PIN1
Bit1
Bit0
PIN2
PIN1

Advertisement

Table of Contents
loading

Table of Contents