English
Language : 

R01AN1504EJ0100 Datasheet, PDF (13/50 Pages) Renesas Technology Corp – Using the DTC to Perform Continuous Clock
RL78/G14
Using the DTC to Perform Continuous Clock
Synchronous Serial Communication
R_CSI00_Send_Receive
Outline
CSI00 transmit/receive start
Header
r_cg_serial.h
Declaration
MD_STATUS R_CSI00_Send_Receive(uint8_t * const tx_buf, uint16_t tx_num,
uint8_t * const rx_buf)
Description
Prepares the data buffer for CSI00 communication (transmission/reception) and sets
the first byte of the transmit data.
Arguments
uint8_t * const tx_buf
uint16_t tx_num
: Transmit data buffer pointer
: Transmit data size
uint8_t * const rx_buf
: Receive data buffer pointer
Return Value
MD_OK
MD_ARGERROR
: Setting is completed, operation started
: Argument is incorrect
r_csi00_interrupt
Outline
Header
Declaration
Description
Arguments
Return Value
CSI00 transfer end interrupt
None
__interrupt static void r_csi00_interrupt(void)
Performs CSI00 transfer end interrupt handling.
None
None
r_csi00_callback_receiveend
Outline
Header
Declaration
Description
CSI00 receive end callback function
r_cg_serial.h
static void r_csi00_callback_receiveend(void)
This function is called when receiving the specified number of bytes of data is
completed. 8 bytes of receive data are copied to set_rcv_data[TX_RX_DATA_SIZE].
Arguments
Return Value
None
None
r_csi00_callback_error
Outline
Header
Declaration
Description
Arguments
Return Value
Remarks
CSI00 error callback function
r_cg_serial.h
static void r_csi00_callback_error(uint8_t err_type)
This function is called when the CSI00 error occurs.
uint8_t err_type
: Error type
None
The sample code does not include the error processing. Add processing to the user
program as needed.
R01AN1504EJ0100 Rev. 1.00
Feb. 14, 2014
Page 13 of 47