cancel
Showing results for 
Search instead for 
Did you mean: 

WICED Smart Bluetooth

assh_3716096
New Contributor II

Hi everyone,

I have to interface an I2C device with CYW20719 EVB. Then to configure the sensor, I need to write some data into registers of I2C device. I'm not being able to do that with available APIs with WICED 6.2 SDK. Please suggest how to do that ?  Though I can read data from registers with following APIs

UINT8 wiced_hal_i2c_combined_read(UINT8* tx_data, UINT8 tx_data_len, UINT8* rx_data, UINT16 rx_data_len, UINT8 slave);

1 Solution
assh_3716096
New Contributor II

Hi,

I'm already aware of the example available in mentioned directory. However, my problem was solved by writing multiple bytes in one single I2C write instruction. The first byte being address of the register and higher bytes being the data that has to be written into registers.

Thanks !!!

View solution in original post

2 Replies
Zhengbao_Zhang
Moderator
Moderator

Hi :

   we have a i2c_master snip in this directory.

\common\apps\snip\hal\i2c_master,  you can have a reference .

assh_3716096
New Contributor II

Hi,

I'm already aware of the example available in mentioned directory. However, my problem was solved by writing multiple bytes in one single I2C write instruction. The first byte being address of the register and higher bytes being the data that has to be written into registers.

Thanks !!!

View solution in original post