G32R430 Device Driver Layer v1.0.4
G32R4xx Device Driver Layer API Reference
DDL_SPI_InitTypeDef Struct Reference

SPI Init structures definition. More...

#include <g32r4xx_ddl_spi.h>

Data Fields

uint32_t TransferDirection
uint32_t Mode
uint32_t DataWidth
uint32_t ClockPolarity
uint32_t ClockPhase
uint32_t NSS
uint32_t BaudRate
uint32_t BitOrder
uint32_t CRCCalculation
uint32_t CRCPoly

Detailed Description

SPI Init structures definition.

Definition at line 77 of file g32r4xx_ddl_spi.h.

Field Documentation

◆ BaudRate

uint32_t DDL_SPI_InitTypeDef::BaudRate

Specifies the BaudRate prescaler value which will be used to configure the transmit and receive SCK clock. This parameter can be a value of Baud Rate Prescaler.

Note
The communication clock is derived from the master clock. The slave clock does not need to be set.

This feature can be modified afterwards using unitary function DDL_SPI_SetBaudRatePrescaler().

Definition at line 109 of file g32r4xx_ddl_spi.h.

◆ BitOrder

uint32_t DDL_SPI_InitTypeDef::BitOrder

Specifies whether data transfers start from MSB or LSB bit. This parameter can be a value of Transmission Bit Order.

This feature can be modified afterwards using unitary function DDL_SPI_SetTransferBitOrder().

Definition at line 115 of file g32r4xx_ddl_spi.h.

◆ ClockPhase

uint32_t DDL_SPI_InitTypeDef::ClockPhase

Specifies the clock active edge for the bit capture. This parameter can be a value of Clock Phase.

This feature can be modified afterwards using unitary function DDL_SPI_SetClockPhase().

Definition at line 99 of file g32r4xx_ddl_spi.h.

◆ ClockPolarity

uint32_t DDL_SPI_InitTypeDef::ClockPolarity

Specifies the serial clock steady state. This parameter can be a value of Clock Polarity.

This feature can be modified afterwards using unitary function DDL_SPI_SetClockPolarity().

Definition at line 94 of file g32r4xx_ddl_spi.h.

◆ CRCCalculation

uint32_t DDL_SPI_InitTypeDef::CRCCalculation

Specifies if the CRC calculation is enabled or not. This parameter can be a value of CRC Calculation.

This feature can be modified afterwards using unitary functions DDL_SPI_EnableCRC() and DDL_SPI_DisableCRC().

Definition at line 120 of file g32r4xx_ddl_spi.h.

◆ CRCPoly

uint32_t DDL_SPI_InitTypeDef::CRCPoly

Specifies the polynomial used for the CRC calculation. This parameter must be a number between Min_Data = 0x00 and Max_Data = 0xFFFF.

This feature can be modified afterwards using unitary function DDL_SPI_SetCRCPolynomial().

Definition at line 125 of file g32r4xx_ddl_spi.h.

◆ DataWidth

uint32_t DDL_SPI_InitTypeDef::DataWidth

Specifies the SPI data width. This parameter can be a value of Datawidth.

This feature can be modified afterwards using unitary function DDL_SPI_SetDataWidth().

Definition at line 89 of file g32r4xx_ddl_spi.h.

◆ Mode

uint32_t DDL_SPI_InitTypeDef::Mode

Specifies the SPI mode (Master/Slave). This parameter can be a value of Operation Mode.

This feature can be modified afterwards using unitary function DDL_SPI_SetMode().

Definition at line 84 of file g32r4xx_ddl_spi.h.

◆ NSS

uint32_t DDL_SPI_InitTypeDef::NSS

Specifies whether the NSS signal is managed by hardware (NSS pin) or by software using the SSI bit. This parameter can be a value of Slave Select Pin Mode.

This feature can be modified afterwards using unitary function DDL_SPI_SetNSSMode().

Definition at line 104 of file g32r4xx_ddl_spi.h.

◆ TransferDirection

uint32_t DDL_SPI_InitTypeDef::TransferDirection

Specifies the SPI unidirectional or bidirectional data mode. This parameter can be a value of Transfer Mode.

This feature can be modified afterwards using unitary function DDL_SPI_SetTransferDirection().

Definition at line 79 of file g32r4xx_ddl_spi.h.


The documentation for this struct was generated from the following file: