JHCTech PADR-M101 User Manual page 72

Table of Contents

Advertisement

/*======================================================================
1
* void I910_2nd_gpio_output(int port,int level);
2
* function description:subcard output high and low level
3
*parameter descirption:
parameter:port fill in GPIO number of the subcard, 1 or 2
level
GPIO pin
description:The output value is valid only when the pin is in output mod
4 * creation date:
5
==================================================================== */
void I910_2nd_gpio_output(int port,int level);
/*======================================================================
1
* int I910_2nd_gpio_input(int port);
2
* function description:read the motherboard GPIO input level
3
* parameter description:
Return value:return a byte (8 bit), each bit of the 8 bit corresponding to the level state of a GPIO
pin
Value=1, means high level
level 8 bits of a byte, each bit controls a GPIO pin output value,
Bit =1, means output high level
Bit =0, means output low level
Bit7
Bit6
Bit5
PIN8
PIN7
PIN6 PIN5
Bit4
Bit3
Bit2
PIN4
PIN3
64
用户手册
Bit1
Bit0
PIN2
PIN1
*

Advertisement

Table of Contents
loading

Table of Contents