Lines Matching refs:msg
71 struct rt_i2c_msg msg[1]; in eeprom_page_write() local
93 msg[0].addr = EE_DEV_ADDR; in eeprom_page_write()
94 msg[0].flags = RT_I2C_WR; in eeprom_page_write()
95 msg[0].len = EE_PAGE_SIZE + EE_WORD_ADR_SIZE; in eeprom_page_write()
96 msg[0].buf = TxBuf; in eeprom_page_write()
99 rt_i2c_transfer(hc32_i2c, &msg[0], 1); in eeprom_page_write()
101 rt_i2c_master_send(hc32_i2c, EE_DEV_ADDR, RT_I2C_NO_STOP, TxBuf, msg[0].len / 2); in eeprom_page_write()
102 …master_send(hc32_i2c, EE_DEV_ADDR, RT_I2C_NO_START, TxBuf + msg[0].len / 2, msg[0].len - msg[0].le… in eeprom_page_write()
113 struct rt_i2c_msg msg[2]; in eeprom_page_read() local
133 msg[0].addr = EE_DEV_ADDR; in eeprom_page_read()
134 msg[0].flags = RT_I2C_WR; in eeprom_page_read()
135 msg[0].len = EE_WORD_ADR_SIZE; in eeprom_page_read()
136 msg[0].buf = readAddr; in eeprom_page_read()
138 msg[1].addr = EE_DEV_ADDR; in eeprom_page_read()
139 msg[1].flags = RT_I2C_RD; in eeprom_page_read()
140 msg[1].len = EE_PAGE_SIZE; in eeprom_page_read()
141 msg[1].buf = pBuf; in eeprom_page_read()
142 rt_i2c_transfer(hc32_i2c, &msg[0], 2); in eeprom_page_read()
213 struct rt_i2c_msg msg[2]; in tca9539_test() local
224 msg[0].addr = TCA9539_DEV_ADDR; in tca9539_test()
225 msg[0].flags = RT_I2C_WR; in tca9539_test()
226 msg[0].len = 2; in tca9539_test()
227 msg[0].buf = send_buf0; in tca9539_test()
228 rt_i2c_transfer(hc32_i2c, &msg[0], 1); in tca9539_test()
232 msg[1].addr = TCA9539_DEV_ADDR; in tca9539_test()
233 msg[1].flags = RT_I2C_WR; in tca9539_test()
234 msg[1].len = 2; in tca9539_test()
235 msg[1].buf = send_buf0; in tca9539_test()
236 rt_i2c_transfer(hc32_i2c, &msg[1], 1); in tca9539_test()
240 msg[0].addr = TCA9539_DEV_ADDR; in tca9539_test()
241 msg[0].flags = RT_I2C_WR; in tca9539_test()
242 msg[0].len = 1; in tca9539_test()
243 msg[0].buf = send_buf1; in tca9539_test()
245 msg[1].addr = TCA9539_DEV_ADDR; in tca9539_test()
246 msg[1].flags = RT_I2C_RD; in tca9539_test()
247 msg[1].len = 1; in tca9539_test()
248 msg[1].buf = recv_buf1; in tca9539_test()
249 rt_i2c_transfer(hc32_i2c, &msg[0], 2); in tca9539_test()