37 #ifdef CONF_WINC_USE_I2C 64 b[1] = (
uint8)(u32Addr);
69 b[1] = (
uint8)(u32Addr >> 24);
70 b[2] = (
uint8)(u32Addr >> 16);
71 b[3] = (
uint8)(u32Addr >> 8);
72 b[4] = (
uint8)(u32Addr);
91 M2M_ERR(
"failed to send cfg bytes\n");
98 *pu32RetVal = b[0] | ((
uint32)b[1] << 8) | ((
uint32)b[2] << 16) | ((
uint32)b[3] << 24);
140 b[1] = (
uint8)(u32Addr);
141 b[2] = (
uint8)(u32Val);
145 b[1] = (
uint8)(u32Addr >> 24);
146 b[2] = (
uint8)(u32Addr >> 16);
147 b[3] = (
uint8)(u32Addr >> 8);
148 b[4] = (
uint8)u32Addr;
150 b[6] = (
uint8)u32Val;
151 b[7] = (
uint8)(u32Val >> 8);
152 b[8] = (
uint8)(u32Val >> 16);
153 b[9] = (
uint8)(u32Val >> 24);
189 au8Buf[1] = (
uint8)(u32Addr >> 24);
190 au8Buf[2] = (
uint8)(u32Addr >> 16);
191 au8Buf[3] = (
uint8)(u32Addr >> 8);
192 au8Buf[4] = (
uint8)(u32Addr >> 0);
193 au8Buf[5] = (
uint8)(u16Sz >> 8);
194 au8Buf[6] = (
uint8)(u16Sz);
197 strI2c.
u16Sz =
sizeof(au8Buf);
207 strI2c.
u16Sz = u16Sz;
240 au8Buf[1] = (
uint8)(u32Addr >> 24);
241 au8Buf[2] = (
uint8)(u32Addr >> 16);
242 au8Buf[3] = (
uint8)(u32Addr >> 8);
243 au8Buf[4] = (
uint8)(u32Addr);
244 au8Buf[5] = (
uint8)(u16Sz >> 8);
245 au8Buf[6] = (
uint8)(u16Sz);
249 strI2c.
u16Sz1 =
sizeof(au8Buf);
Structure holding I2C special operation parameters.
This module contains common APIs declarations.
signed char sint8
Range of values between -128 to 127.
sint8 nm_i2c_read_block(uint32 u32Addr, uint8 *puBuf, uint16 u16Sz)
sint8 nm_i2c_write_block(uint32 u32Addr, uint8 *puBuf, uint16 u16Sz)
This module contains WINC3400 bus wrapper APIs declarations.
unsigned short uint16
Range of values between 0 to 65535.
sint8 nm_i2c_write_reg(uint32 u32Addr, uint32 u32Val)
#define NM_BUS_IOCTL_W_SPECIAL
This module contains WINC3400 I2C protocol bus APIs implementation.
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.
sint8 nm_bus_ioctl(uint8 u8Cmd, void *pvParameter)
uint32 nm_i2c_read_reg(uint32 u32Addr)
Structure holding I2C default operation parameters.