Starts SCI slave transmission/reception (simple SPI mode).
This API function repeats SCI slave transmission in byte units the number of times specified by the argument tx_num from the buffer at the location specified by the argument tx_buf. |
This API function repeats SCI slave reception in byte units the number of times specified by the argument rx_num and the received data are stored in the buffer at the location specified by the argument rx_buf. |
When performing a SCI slave transmission/reception, R_SCIn_Start must be called before this API function is called. |
#include "r_cg_macrodriver.h" MD_STATUS R_SCIn_SPI_Slave_Send_Receive ( uint8_t * const tx_buf, uint16_t tx_num, uint8_t * const rx_buf, uint16_t rx_num ); |