Wdt And Gpio - JHCTech KGEC-6310-S001 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
* BYTE MB_gpio_input (WORD port)
2
* function description: read the motherboard GPIO input level
3
* parameter description:
Return value: return a byte (8 bit), each bit of 8 bit corresponding to the level state of a GPIO pin
Return value
GPIO pin
Parameter: port fill in motherboard GPIO number which is designed by factory
Note:
4
* creation date:
5*========================================================================*/
/*==========================================================================
1
* void MB_gpio_output(WORD port,BYTE value);
2
* function description: high and low levels output of the motherboard
3
* parameter description:
Parameter: port fill in motherboard GPIO number which is designed by factory
Value 8 bit of a Byte, each bit controls a GPIO pin output value,
Bit7
Bit6
Bit5
PIN8
PIN7
PIN6
Bit4
Bit3
Bit2
PIN5
PIN4
PIN3
57
User's Manual
Bit1
Bit0
PIN2
PIN1

Advertisement

Table of Contents
loading

This manual is also suitable for:

Kgec-6310-s002Kgec-6310-s003Kgec-6310-s004Kgec-6310

Table of Contents