Wdt And Gpio - JHCTech SIGM-2650 User Manual

Table of Contents

Advertisement

5.1 WDT and GPIO

/* ======================================================================
1
* void jhctech_init();
2
* function description: library initialization, This function must be called before calling other
functions
3
* parameter description:
4
* creation date:
5*======================================================================*/
/* ======================================================================
1
* void jhctech_init();
2
* function description: library release, Pair with jhctech_init, release the library's occupied resources
when not needed
3
* parameter description:
4
* creation date:
5* ======================================================================*/
/*==========================================================================
1 * voidSecond_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, 1or 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
Note:
GPIO pin
output
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:
Bit7
Bit6
Bit5
PIN8
PIN7
PIN6
Bit4
Bit3
Bit2
PIN5
PIN4
PIN3
63
User's Manual
Bit1
Bit0
PIN2
PIN1
value is
The

Advertisement

Table of Contents
loading

Table of Contents