RL78/G13 Handshake-based SPI Master Transmission/Reception
R01AN6883EJ0100 Rev.1.00 Page 20 of 38
June.15.23
[Function Name] CSI00_Send
r_cg_cgc.h
r_cg_port.h
r_cg_serial.h
r_cg_timer.h
Performs the master transmission processing.
[Function Name] CSI00_Receive
r_cg_cgc.h
r_cg_port.h
r_cg_serial.h
r_cg_timer.h
void CSI00_Receive (void)
Performs the master reception processing.
[Function Name] R_CSI00_Send_Receive
CSI00 Transmit/Receive Processing
、
、
MD_STATUS R_CSI00_Send_Receive(uint8_t * const tx_buf
、
、
Configure CSI00 data sending/receiving settings.
: [Address of sent data buffer]
: [Sent data buffer size]
: [Address of received data buffer]
:
Sending/receiving settings complete
•
[MD_ARGERROR]:Sending/receiving settings failure
[Function Name] r_csi00_interrupt
INICSI00 interrupt processing
、
、
static void __near r_csi00_interrupt(void)
If there is unsent data, reads the received data and starts sending the unsent data. If
there is no unsent data, reads the received data.