79         gpio = get_gpio_idx(u8GpioNum);
    80         if(gpio < 0) 
goto _EXIT1;
    82         if(op == GPIO_OP_DIR) {
    84         } 
else if(op == GPIO_OP_SET) {
    86         } 
else if(op == GPIO_OP_GET) {
   108         return gpio_ioctl(GPIO_OP_DIR, u8GpioNum, u8GpioDir, 
NULL);
   113         return gpio_ioctl(GPIO_OP_SET, u8GpioNum, u8GpioVal, 
NULL);
   118         return gpio_ioctl(GPIO_OP_GET, u8GpioNum, 0, pu8GpioVal);
 sint8 hif_chip_wake(void)
To Wakeup the chip. 
 
WINC3400 Peripherals Application Interface. 
 
sint8 get_gpio_val(uint8 gpio, uint8 *val)
 
signed char sint8
Range of values between -128 to 127. 
 
NMI_API sint8 m2m_periph_init(tstrPerphInitParam *param)
Initialize the NMC1500 peripheral driver module. 
 
This module contains WINC3400 ASIC specific internal APIs. 
 
sint8 set_gpio_val(uint8 gpio, uint8 val)
 
sint8 set_gpio_dir(uint8 gpio, uint8 dir)
 
NMI_API sint8 m2m_periph_gpio_get_val(uint8 u8GpioNum, uint8 *pu8GpioVal)
Read an NMC1500 GPIO input level. 
 
unsigned long uint32
Range of values between 0 to 4294967295. 
 
NMI_API sint8 m2m_periph_pullup_ctrl(uint32 pinmask, uint8 enable)
Control the programmable pull-up resistor on the chip pads . 
 
sint8 pullup_ctrl(uint32 pinmask, uint8 enable)
 
unsigned char uint8
Range of values between 0 to 255. 
 
Peripheral module initialization parameters. 
 
sint8 hif_chip_sleep(void)
To make the chip sleep. 
 
NMI_API sint8 m2m_periph_gpio_set_dir(uint8 u8GpioNum, uint8 u8GpioDir)
Configure a specific NMC1500 pad as a GPIO and sets its direction (input or output). 
 
NMI_API sint8 m2m_periph_gpio_set_val(uint8 u8GpioNum, uint8 u8GpioVal)
Set an NMC1500 GPIO output level high or low. 
 
This module contains M2M host interface APIs implementation.