Home
last modified time | relevance | path

Searched refs:msgs (Results 1 – 8 of 8) sorted by relevance

/AliOS-Things-master/components/drivers/peripheral/i2c/src/
A Di2c.c23 static aos_status_t transfer_sequence(aos_i2c_t *i2c, const aos_i2c_msg_t *msgs, size_t num_msgs) in transfer_sequence() argument
28 if (!(msgs[0].cfg & AOS_I2C_MCFG_RX)) in transfer_sequence()
29 …memcpy(i2c->buf[0], msgs[0].buf, AOS_I2C_BUF_SIZE < msgs[0].count ? AOS_I2C_BUF_SIZE : msgs[0].cou… in transfer_sequence()
32 const aos_i2c_msg_t *msg = &msgs[i]; in transfer_sequence()
72 next_msg = (i + 1 < num_msgs) ? &msgs[i + 1] : NULL; in transfer_sequence()
119 aos_status_t aos_i2c_transfer(aos_i2c_ref_t *ref, const aos_i2c_msg_t *msgs, size_t num_msgs) in aos_i2c_transfer() argument
124 if (!ref || !aos_dev_ref_is_valid(ref) || !msgs || num_msgs == 0) in aos_i2c_transfer()
130 const aos_i2c_msg_t *msg = &msgs[i]; in aos_i2c_transfer()
152 (msgs[i].cfg & AOS_I2C_MCFG_ADDR_10) == (msgs[i + 1].cfg & AOS_I2C_MCFG_ADDR_10) && in aos_i2c_transfer()
153 msgs[i].addr == msgs[i + 1].addr) in aos_i2c_transfer()
[all …]
/AliOS-Things-master/components/drivers/peripheral/spi/src/
A Dspi.c23 static aos_status_t transfer_sequence(aos_spi_t *spi, const aos_spi_msg_t *msgs, size_t num_msgs) in transfer_sequence() argument
28 if (msgs[0].tx_buf) in transfer_sequence()
29 …memcpy(spi->tx_buf[0], msgs[0].tx_buf, AOS_SPI_BUF_SIZE < msgs[0].count ? AOS_SPI_BUF_SIZE : msgs[… in transfer_sequence()
32 const aos_spi_msg_t *msg = &msgs[i]; in transfer_sequence()
79 next_msg = (i + 1 < num_msgs) ? &msgs[i + 1] : NULL; in transfer_sequence()
126 aos_status_t aos_spi_transfer(aos_spi_ref_t *ref, const aos_spi_msg_t *msgs, size_t num_msgs) in aos_spi_transfer() argument
131 if (!ref || !aos_dev_ref_is_valid(ref) || !msgs || num_msgs == 0) in aos_spi_transfer()
137 const aos_spi_msg_t *msg = &msgs[i]; in aos_spi_transfer()
188 if (i + 1 < num_msgs && msgs[i].cs == msgs[i + 1].cs && in aos_spi_transfer()
189 (msgs[i].cfg & AOS_SPI_MCFG_MODE_MASK) == (msgs[i + 1].cfg & AOS_SPI_MCFG_MODE_MASK)) in aos_spi_transfer()
[all …]
/AliOS-Things-master/components/ble_host/bt_host/port/core/
A Dmbox.c107 mbox->msgs[mbox->last % K_MBOX_SIZE] = msg; in k_mbox_post()
150 mbox->msgs[mbox->last % K_MBOX_SIZE] = msg; in k_mbox_trypost()
223 *msg = mbox->msgs[mbox->first % K_MBOX_SIZE]; in k_mbox_fetch()
265 *msg = mbox->msgs[mbox->first % K_MBOX_SIZE]; in k_mbox_tryfetch()
/AliOS-Things-master/components/lwip/lwip2.0.0/port/
A Dsys_arch.c225 mbox->msgs[mbox->last % SYS_MBOX_SIZE] = msg; in sys_mbox_post()
264 mbox->msgs[mbox->last % SYS_MBOX_SIZE] = msg; in sys_mbox_trypost()
329 *msg = mbox->msgs[mbox->first % SYS_MBOX_SIZE]; in sys_arch_mbox_fetch()
366 *msg = mbox->msgs[mbox->first % SYS_MBOX_SIZE]; in sys_arch_mbox_tryfetch()
/AliOS-Things-master/components/ble_host/bt_host/port/include/port/
A Dmbox.h32 void *msgs[K_MBOX_SIZE]; member
/AliOS-Things-master/components/drivers/peripheral/i2c/include/aos/
A Di2c.h58 aos_status_t aos_i2c_transfer(aos_i2c_ref_t *ref, const aos_i2c_msg_t *msgs, size_t num_msgs);
/AliOS-Things-master/components/lwip/lwip2.0.0/port/include/arch/
A Dsys_arch.h62 void *msgs[SYS_MBOX_SIZE]; member
/AliOS-Things-master/components/drivers/peripheral/spi/include/aos/
A Dspi.h78 aos_status_t aos_spi_transfer(aos_spi_ref_t *ref, const aos_spi_msg_t *msgs, size_t num_msgs);

Completed in 13 milliseconds