JHCTech KMDA-3820 User Manual page 86

Table of Contents

Advertisement

4 * creation date:
5*=======================================================================*/
/*==========================================================================
1 * void Second_gpio_mode(int port, int mode);
2 * function description: Subcard input and output mode settings
3 * parameter description:
Parameter: port fill in subcard GPIO number, 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.
Mode
GPIO pin
Note: The output value is valid only when the pin is in output mode.
4
* creation date:
5*========================================================================*/
/*==========================================================================
* void Second_gpio_output(int port, int level);
2
2
* function description:high and low levels output of the subcard
3
* parameter description:
Parameter: port fill in subcard GPIO number, 1 or 2
Level 8 bit of a Byte, each bit controls a GPIO pin output value,
Bit =1, means output high level
Bit =0, means output low level
Level
Bit7
Bit6
Bit5
PIN8
PIN7
PIN6
Bit7
Bit6
Bit5
Bit4
Bit3
Bit2
PIN5
PIN4
PIN3
Bit4
Bit3
Bit2
78
User's Manual
Bit1
Bit0
PIN2
PIN1
Bit1
Bit0

Advertisement

Table of Contents
loading

Table of Contents