Home
last modified time | relevance | path

Searched refs:AOS_I2C_BUF_SIZE (Results 1 – 2 of 2) sorted by relevance

/AliOS-Things-master/components/drivers/peripheral/i2c/include/aos/
A Di2c_core.h19 #ifndef AOS_I2C_BUF_SIZE
20 #define AOS_I2C_BUF_SIZE 256 macro
52 uint8_t buf[2][AOS_I2C_BUF_SIZE];
/AliOS-Things-master/components/drivers/peripheral/i2c/src/
A Di2c.c29 …memcpy(i2c->buf[0], msgs[0].buf, AOS_I2C_BUF_SIZE < msgs[0].count ? AOS_I2C_BUF_SIZE : msgs[0].cou… in transfer_sequence()
46 i2c->x.len = (pos + AOS_I2C_BUF_SIZE < msg->count) ? AOS_I2C_BUF_SIZE : msg->count - pos; in transfer_sequence()
63 if (last_pos + AOS_I2C_BUF_SIZE < last_msg->count) in transfer_sequence()
64 last_len = AOS_I2C_BUF_SIZE; in transfer_sequence()
82 if (next_pos + AOS_I2C_BUF_SIZE < next_msg->count) in transfer_sequence()
83 next_len = AOS_I2C_BUF_SIZE; in transfer_sequence()

Completed in 4 milliseconds