JHCTech KMDA-2701 User Manual page 73

Table of Contents

Advertisement

parameter:port fill in GPIO number,1 or 2
mode 8 bits of a byte, each bit controls input and output mode of a GPIO pin
bit = 1, Corresponding pin as input
bit = 0, Corresponding pin as output
mode
GPIO pin
Note :The output value is valid only when the pin is in output mode.
4
* creation date:
5
======================================================================*/
void I715_2nd_gpio_mode(int port,int mode);
/*======================================================================
1
* void I715_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 8 bits of a byte, each bit controls a GPIO pin output value,
Bit7
Bit6
Bit5
PIN8
PIN7
PIN6
Bit4
Bit3
Bit2
PIN5
PIN4
PIN
3
66
User's Manual
Bit1
Bit0
PIN2
PIN1
*

Advertisement

Table of Contents
loading

Table of Contents