G32R430 Device Driver Layer v1.0.4
G32R4xx Device Driver Layer API Reference
Initialization and de-initialization functions

Functions

ErrorStatus DDL_SPI_DeInit (SPI_TypeDef *SPIx)
 De-initialize the SPI registers to their default reset values.
ErrorStatus DDL_SPI_Init (SPI_TypeDef *SPIx, DDL_SPI_InitTypeDef *SPI_InitStruct)
 Initialize the SPI registers according to the specified parameters in SPI_InitStruct.
void DDL_SPI_StructInit (DDL_SPI_InitTypeDef *SPI_InitStruct)
 Set each DDL_SPI_InitTypeDef field to default value.

Detailed Description

Function Documentation

◆ DDL_SPI_DeInit()

ErrorStatus DDL_SPI_DeInit ( SPI_TypeDef * SPIx)

De-initialize the SPI registers to their default reset values.

Parameters
SPIxSPI Instance
Return values
AnErrorStatus enumeration value:
  • SUCCESS: SPI registers are de-initialized
  • ERROR: SPI registers are not de-initialized

Definition at line 144 of file g32r4xx_ddl_spi.c.

◆ DDL_SPI_Init()

ErrorStatus DDL_SPI_Init ( SPI_TypeDef * SPIx,
DDL_SPI_InitTypeDef * SPI_InitStruct )

Initialize the SPI registers according to the specified parameters in SPI_InitStruct.

Note
As some bits in SPI configuration registers can only be written when the SPI is disabled (SPI_CTRL1_SPIEN bit =0), SPI peripheral should be in disabled state prior calling this function. Otherwise, ERROR result will be returned.
Parameters
SPIxSPI Instance
SPI_InitStructpointer to a DDL_SPI_InitTypeDef structure
Return values
AnErrorStatus enumeration value. (Return always SUCCESS)

Definition at line 174 of file g32r4xx_ddl_spi.c.

◆ DDL_SPI_StructInit()

void DDL_SPI_StructInit ( DDL_SPI_InitTypeDef * SPI_InitStruct)

Set each DDL_SPI_InitTypeDef field to default value.

Parameters
SPI_InitStructpointer to a DDL_SPI_InitTypeDef structure whose fields will be set to default values.
Return values
None

Definition at line 240 of file g32r4xx_ddl_spi.c.