JHCTech KMDA-3602 User Manual page 59

Table of Contents

Advertisement

Parameter: port represents the number of the GPIO, 1 or 2
Mode 8 bit of a bit, each bit controls the input and output mode of a GPIO pin,
Bit =1, the corresponding pin is used as the input port.
Bit =0, the corresponding pin is used as an output port.
Return value
GPIO pin
Note: The output value is valid only when the pin is in output mode.
4
* creation date:
5*========================================================================*/
/*==========================================================================
* void smbus_16pin_gpio_output(int port,int level);
1
2
* function description:high and low levels output of the subcard
3
* parameter description:
Parameter: port represents the number of the GPIO, 1 or 2
Level 8 bit of a bit, each bit controls a GPIO pin output value,
Bit =1, means output high level
Bit =0, means output low level
Return value
GPIO pin
Note: The output value is valid only when the pin is in output mode.
4 * creation date:
5*========================================================================*/
Bit7
Bit6
Bit5
PIN8
PIN7
PIN6
Bit7
Bit6
Bit5
PIN8
PIN7
PIN6
Bit4
Bit3
Bit2
PIN5
PIN4
PIN3
Bit4
Bit3
Bit2
PIN5
PIN4
PIN3
52
User's Manual
Bit1
Bit0
PIN2
PIN1
Bit1
Bit0
PIN2
PIN1

Advertisement

Table of Contents
loading

Table of Contents