User`s manual

RX62N Group, RX621 Group 4. Library Reference
2) R_SPI_Destroy
Synopsis
Shutdown an SPI channel.
Prototype
bool R_SPI_Destroy(
uint8_t data
// Channel selection
);
Description
Shutdown the selected SPI channel.
[data]
Select channel SPIn (where n = 0 to 1).
Return value
True if all parameters are valid; otherwise false.
Category
SPI
Reference
R_SPI_Create
Remarks
The SPI channel is put into the power-down state.
Program example
/* RPDL definitions */
#include "r_pdl_spi.h"
/* RPDL device-specific definitions */
#include "r_pdl_definitions.h"
void func(void)
{
/* Shutdown SPI channel 1 */
R_SPI_Destroy(
1
);
}
R20UT0084EE0112 Rev.1.12 Page 4-207
July. 16, 2014