m2m_periph.h
Go to the documentation of this file.
1 
35 #ifndef _M2M_PERIPH_H_
36 #define _M2M_PERIPH_H_
37 
38 
39 /*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*
40 INCLUDES
41 *=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*/
42 
43 
46 
47 /*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*
48 MACROS
49 *=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*/
50 
51 /*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*
52 DATA TYPES
53 *=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*/
54 
62 typedef struct {
63  void * arg;
65 
66 
74 typedef enum {
79 } tenuGpioNum;
80 
81 
89 typedef enum {
97 
105 typedef enum {
113 
114 
125 typedef struct {
130 
141 typedef enum {
149 
160 typedef enum {
175 typedef enum {
191 /*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*
192 FUNCTION PROTOTYPES
193 *=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*/
194 
195 
196 #ifdef __cplusplus
197  extern "C" {
198 #endif
199 
217 
237 NMI_API sint8 m2m_periph_gpio_set_dir(uint8 u8GpioNum, uint8 u8GpioDir);
238 
258 NMI_API sint8 m2m_periph_gpio_set_val(uint8 u8GpioNum, uint8 u8GpioVal);
259 
279 NMI_API sint8 m2m_periph_gpio_get_val(uint8 u8GpioNum, uint8 * pu8GpioVal);
280 
302 
303 #ifdef __cplusplus
304 }
305 #endif
306 
307 
308 #endif /* _M2M_PERIPH_H_ */
This module contains common APIs declarations.
bool param(const std::string &param_name, T &param_val, const T &default_val)
signed char sint8
Range of values between -128 to 127.
Definition: nm_bsp.h:111
I2C master configuration parameters.
Definition: m2m_periph.h:125
NMI_API sint8 m2m_periph_init(tstrPerphInitParam *param)
Initialize the NMC1500 peripheral driver module.
tenuPullupEnable1Mask
Definition: m2m_periph.h:160
WINC3400 IoT Application Interface Internal Types.
tenuGpioNum
A list of GPIO numbers configurable through the m2m_periph module.
Definition: m2m_periph.h:74
tenuI2cMasterFlags
Bitwise-ORed flags for use in m2m_periph_i2c_master_write and m2m_periph_i2c_master_read.
Definition: m2m_periph.h:141
tenuI2cMasterSdaMuxOpt
Allowed pin multiplexing options for I2C master SDA signal.
Definition: m2m_periph.h:105
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.
Definition: nm_bsp.h:103
NMI_API sint8 m2m_periph_pullup_ctrl(uint32 pinmask, uint8 enable)
Control the programmable pull-up resistor on the chip pads .
tenuPullupEnable2Mask
Definition: m2m_periph.h:175
tenuI2cMasterSclMuxOpt
Allowed pin multiplexing options for I2C master SCL signal.
Definition: m2m_periph.h:89
unsigned char uint8
Range of values between 0 to 255.
Definition: nm_bsp.h:89
Peripheral module initialization parameters.
Definition: m2m_periph.h:62
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.
#define NMI_API
Definition: nm_bsp.h:45


inertial_sense_ros
Author(s):
autogenerated on Sun Feb 28 2021 03:17:57