35 #ifndef _M2M_PERIPH_H_    36 #define _M2M_PERIPH_H_ 
This module contains common APIs declarations. 
 
bool param(const std::string ¶m_name, T ¶m_val, const T &default_val)
 
signed char sint8
Range of values between -128 to 127. 
 
I2C master configuration parameters. 
 
NMI_API sint8 m2m_periph_init(tstrPerphInitParam *param)
Initialize the NMC1500 peripheral driver module. 
 
WINC3400 IoT Application Interface Internal Types. 
 
tenuGpioNum
A list of GPIO numbers configurable through the m2m_periph module. 
 
tenuI2cMasterFlags
Bitwise-ORed flags for use in m2m_periph_i2c_master_write and m2m_periph_i2c_master_read. 
 
tenuI2cMasterSdaMuxOpt
Allowed pin multiplexing options for I2C master SDA signal. 
 
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 . 
 
tenuI2cMasterSclMuxOpt
Allowed pin multiplexing options for I2C master SCL signal. 
 
unsigned char uint8
Range of values between 0 to 255. 
 
Peripheral module initialization parameters. 
 
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.