R_SCIn_Serial_Multiprocessor_Send


Starts SCI transmission (multi-processor communications function).

Remarks 1.

This API function repeats the byte-level SCI transmission from the buffer specified in argument tx_buf the number of times specified in argument tx_num.

Remarks 2.

When performing a SCI transmission, R_SCIn_Start must be called before this API function is called.

[Syntax]

#include    "r_cg_macrodriver.h"
MD_STATUS   R_SCIn_Serial_Multiprocessor_Send ( uint8_t * id_buf, uint16_t id_num, uint8_t * const tx_buf, uint16_t tx_num );

Remark

n is the channel number.

[Argument(s)]

I/O

Argument

Description

I

uint8_t *       id_buf;

Pointer to a buffer storing the transmission ID

I

uint16_t        id_num;

Total amount of ID to send

I

uint8_t * const tx_buf;

Pointer to a buffer storing the transmission data

I

uint16_t        tx_num;

Total amount of data to send

[Return value]

Macro

Description

MD_OK

Normal completion

MD_ARGERROR

Invalid argument tx_num specification