35 #ifndef _NM_BUS_WRAPPER_H_ 36 #define _NM_BUS_WRAPPER_H_ 43 #define NM_BUS_TYPE_I2C ((uint8)0) 44 #define NM_BUS_TYPE_SPI ((uint8)1) 45 #define NM_BUS_TYPE_UART ((uint8)2) 49 #define NM_BUS_IOCTL_R ((uint8)0) 50 #define NM_BUS_IOCTL_W ((uint8)1) 51 #define NM_BUS_IOCTL_W_SPECIAL ((uint8)2) 53 #define NM_BUS_IOCTL_RW ((uint8)3) 55 #define NM_BUS_IOCTL_WR_RESTART ((uint8)4) 168 #ifdef CONF_WINC_USE_UART 169 uint8 nm_bus_get_chip_type(
void);
170 uint8 nm_bus_get_sb_type(
void);
181 #ifdef CONF_WINC_USE_SPI Structure holding SPI R/W parameters.
Structure holding I2C special operation parameters.
This module contains common APIs declarations.
signed char sint8
Range of values between -128 to 127.
Structure holding bus capabilities information.
unsigned short uint16
Range of values between 0 to 65535.
sint8 nm_bus_init(uint8 *req_com_port, uint32 req_serial_number)
sint8 nm_bus_reinit(void *)
tstrNmBusCapabilities egstrNmBusCapabilities
unsigned long uint32
Range of values between 0 to 4294967295.
unsigned char uint8
Range of values between 0 to 255.
sint8 nm_bus_ioctl(uint8 u8Cmd, void *pvParameter)
sint8 nm_bus_deinit(void)
De-initialize the bus wrapper.
Structure holding UART default operation parameters.
Structure holding I2C default operation parameters.