User`s manual

RX62N Group, RX621 Group 4. Library Reference
Description (3/3)
[data5]
The format must be either:
The maximum required bit rate.
Or:
b31
b30 to b8
b7 b0
1
0
The SPBR register value.
If only Slave mode will be used, specify PDL_NO_DATA.
Return value
True if all parameters are valid; otherwise false.
Category
SPI
Reference
R_CGC_Set, R_SPI_Command
Remarks
Function R_CGC_Set must be called before any use of this function.
-A or B pin selection is not available on the 85-pin package.
The actual bit rate will be reduced if division > 1 is specified in R_SPI_Command.
Program example
/* RPDL definitions */
#include "r_pdl_spi.h"
/* RPDL device-specific definitions */
#include "r_pdl_definitions.h"
void func(void)
{
/* Configure SPI channel 0 */
R_SPI_Create(
0,
PDL_SPI_MODE_SPI_MASTER | PDL_SPI_PIN_SSL0_LOW | PDL_SPI_PIN_A,
PDL_SPI_FRAME_1_1,
PDL_NO_DATA,
2E6
);
}
R20UT0084EE0112 Rev.1.12 Page 4-206
July. 16, 2014