42 #ifndef _NM_BUS_WRAPPER_H_ 43 #define _NM_BUS_WRAPPER_H_ 50 #define NM_BUS_TYPE_I2C ((uint8)0) 51 #define NM_BUS_TYPE_SPI ((uint8)1) 52 #define NM_BUS_TYPE_SDIO ((uint8)3) 56 #define NM_BUS_IOCTL_R ((uint8)0) 57 #define NM_BUS_IOCTL_W ((uint8)1) 58 #define NM_BUS_IOCTL_W_SPECIAL ((uint8)2) 60 #define NM_BUS_IOCTL_RW ((uint8)3) 62 #define NM_BUS_IOCTL_WR_RESTART ((uint8)4) 63 #define NM_BUS_IOCTL_CMD_52 ((uint8)5) 64 #define NM_BUS_IOCTL_CMD_53 ((uint8)6) 116 #ifdef CONF_WILC_USE_SDIO 123 uint32_t read_write:1;
136 uint32_t read_write:1;
138 uint32_t block_mode:1;
139 uint32_t increment:1;
159 sint8 nm_bus_init(
void *);
171 sint8 nm_bus_ioctl(uint8 u8Cmd,
void* pvParameter);
187 sint8 nm_bus_reinit(
void *config);
This module contains common APIs declarations.
Structure holding I2C default operation parameters.
Definition: nm_bus_wrapper.h:82
Structure holding bus capabilities information.
Definition: nm_bus_wrapper.h:72
Structure holding I2C special operation parameters.
Definition: nm_bus_wrapper.h:94
tstrNmBusCapabilities egstrNmBusCapabilities
signed char sint8
Range of values between -128 to 127.
Definition: nm_bsp.h:123
Structure holding SPI R/W parameters.
Definition: nm_bus_wrapper.h:108
sint8 nm_bus_deinit(void)
De-initialize the bus wrapper.
unsigned short uint16
Range of values between 0 to 65535.
Definition: ahdlc.cpp:46