41 #define MAX_TRX_CFG_SZ 8 86 #ifdef CONF_WINC_USE_UART 106 #ifdef CONF_WINC_USE_UART 108 #elif defined (CONF_WINC_USE_SPI) 110 #elif defined (CONF_WINC_USE_I2C) 113 #error "Plesae define bus usage" 132 #ifdef CONF_WINC_USE_UART 134 #elif defined (CONF_WINC_USE_SPI) 136 #elif defined (CONF_WINC_USE_I2C) 139 #error "Plesae define bus usage" 157 #ifdef CONF_WINC_USE_UART 159 #elif defined (CONF_WINC_USE_SPI) 161 #elif defined (CONF_WINC_USE_I2C) 164 #error "Plesae define bus usage" 170 #ifdef CONF_WINC_USE_UART 172 #elif defined (CONF_WINC_USE_SPI) 174 #elif defined (CONF_WINC_USE_I2C) 177 #error "Plesae define bus usage" 203 if(u32Sz <= u16MaxTrxSz)
212 u32Sz -= u16MaxTrxSz;
214 u32Addr += u16MaxTrxSz;
223 #ifdef CONF_WINC_USE_UART 225 #elif defined (CONF_WINC_USE_SPI) 227 #elif defined (CONF_WINC_USE_I2C) 230 #error "Plesae define bus usage" 256 if(u32Sz <= u16MaxTrxSz)
265 u32Sz -= u16MaxTrxSz;
267 u32Addr += u16MaxTrxSz;
sint8 nm_read_block(uint32 u32Addr, uint8 *puBuf, uint32 u32Sz)
signed char sint8
Range of values between -128 to 127.
sint8 nm_spi_read_reg_with_ret(uint32 u32Addr, uint32 *pu32RetVal)
sint8 nm_read_reg_with_ret(uint32 u32Addr, uint32 *pu32RetVal)
sint8 nm_write_block(uint32 u32Addr, uint8 *puBuf, uint32 u32Sz)
sint8 nm_i2c_read_block(uint32 u32Addr, uint8 *puBuf, uint16 u16Sz)
sint8 nm_i2c_write_block(uint32 u32Addr, uint8 *puBuf, uint16 u16Sz)
sint8 nm_uart_read_block(uint32 u32Addr, uint8 *puBuf, uint16 u16Sz)
sint8 nm_uart_read_reg_with_ret(uint32 u32Addr, uint32 *pu32RetVal)
sint8 nm_bus_iface_deinit(void)
Deinitialize bus interface.
unsigned short uint16
Range of values between 0 to 65535.
sint8 nm_i2c_write_reg(uint32 u32Addr, uint32 u32Val)
sint8 nm_bus_init(uint8 *req_com_port, uint32 req_serial_number)
sint8 nm_bus_iface_reconfigure(void *ptr)
sint8 nm_uart_write_reg(uint32 u32Addr, uint32 u32Val)
static sint8 p_nm_read_block(uint32 u32Addr, uint8 *puBuf, uint16 u16Sz)
sint8 nm_uart_write_block(uint32 u32Addr, uint8 *puBuf, uint16 u16Sz)
sint8 nm_write_reg(uint32 u32Addr, uint32 u32Val)
tstrNmBusCapabilities egstrNmBusCapabilities
sint8 nm_spi_write_reg(uint32 u32Addr, uint32 u32Val)
sint8 nm_uart_reconfigure(void *ptr)
sint8 nm_spi_write_block(uint32 u32Addr, uint8 *puBuf, uint16 u16Sz)
static sint8 p_nm_write_block(uint32 u32Addr, uint8 *puBuf, uint16 u16Sz)
This module contains WINC3400 I2C protocol bus APIs implementation.
This module contains WINC3400 bus APIs implementation.
This module contains WINC3400 UART protocol bus APIs implementation.
uint32 nm_spi_read_reg(uint32 u32Addr)
unsigned long uint32
Range of values between 0 to 4294967295.
sint8 nm_i2c_read_reg_with_ret(uint32 u32Addr, uint32 *pu32RetVal)
unsigned char uint8
Range of values between 0 to 255.
uint32 nm_uart_read_reg(uint32 u32Addr)
sint8 nm_spi_read_block(uint32 u32Addr, uint8 *puBuf, uint16 u16Sz)
sint8 nm_bus_deinit(void)
De-initialize the bus wrapper.
uint32 nm_i2c_read_reg(uint32 u32Addr)
This module contains WINC3400 SPI protocol bus APIs implementation.
uint32 nm_read_reg(uint32 u32Addr)
sint8 nm_bus_iface_init(uint8 *pvInitVal, uint32 req_serial_number)