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

Functions

ErrorStatus DDL_USART_DeInit (USART_TypeDef *USARTx)
 De-initialize USART registers (Registers restored to their default values).
ErrorStatus DDL_USART_Init (USART_TypeDef *USARTx, DDL_USART_InitTypeDef *USART_InitStruct)
 Initialize USART registers according to the specified parameters in USART_InitStruct.
void DDL_USART_StructInit (DDL_USART_InitTypeDef *USART_InitStruct)
 Set each DDL_USART_InitTypeDef field to default value.
ErrorStatus DDL_USART_ClockInit (USART_TypeDef *USARTx, DDL_USART_ClockInitTypeDef *USART_ClockInitStruct)
 Initialize USART Clock related settings according to the specified parameters in the USART_ClockInitStruct.
void DDL_USART_ClockStructInit (DDL_USART_ClockInitTypeDef *USART_ClockInitStruct)
 Set each field of a DDL_USART_ClockInitTypeDef type structure to default value.

Detailed Description

Function Documentation

◆ DDL_USART_ClockInit()

ErrorStatus DDL_USART_ClockInit ( USART_TypeDef * USARTx,
DDL_USART_ClockInitTypeDef * USART_ClockInitStruct )

Initialize USART Clock related settings according to the specified parameters in the USART_ClockInitStruct.

Note
As some bits in USART configuration registers can only be written when the USART is disabled (USART_CTRL1_UEN bit =0), USART IP should be in disabled state prior calling this function. Otherwise, ERROR result will be returned.
Parameters
USARTxUSART Instance
USART_ClockInitStructPointer to a DDL_USART_ClockInitTypeDef structure that contains the Clock configuration information for the specified USART peripheral.
Return values
AnErrorStatus enumeration value:
  • SUCCESS: USART registers related to Clock settings are initialized according to USART_ClockInitStruct content
  • ERROR: Problem occurred during USART Registers initialization

Definition at line 299 of file g32r4xx_ddl_usart.c.

◆ DDL_USART_ClockStructInit()

void DDL_USART_ClockStructInit ( DDL_USART_ClockInitTypeDef * USART_ClockInitStruct)

Set each field of a DDL_USART_ClockInitTypeDef type structure to default value.

Parameters
USART_ClockInitStructPointer to a DDL_USART_ClockInitTypeDef structure whose fields will be set to default values.
Return values
None

Definition at line 358 of file g32r4xx_ddl_usart.c.

◆ DDL_USART_DeInit()

ErrorStatus DDL_USART_DeInit ( USART_TypeDef * USARTx)

De-initialize USART registers (Registers restored to their default values).

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

Definition at line 148 of file g32r4xx_ddl_usart.c.

◆ DDL_USART_Init()

ErrorStatus DDL_USART_Init ( USART_TypeDef * USARTx,
DDL_USART_InitTypeDef * USART_InitStruct )

Initialize USART registers according to the specified parameters in USART_InitStruct.

Note
As some bits in USART configuration registers can only be written when the USART is disabled (USART_CTRL1_UEN bit =0), USART IP should be in disabled state prior calling this function. Otherwise, ERROR result will be returned.
Baud rate value stored in USART_InitStruct BaudRate field, should be valid (different from 0).
Parameters
USARTxUSART Instance
USART_InitStructpointer to a DDL_USART_InitTypeDef structure that contains the configuration information for the specified USART peripheral.
Return values
AnErrorStatus enumeration value:
  • SUCCESS: USART registers are initialized according to USART_InitStruct content
  • ERROR: Problem occurred during USART Registers initialization

Definition at line 194 of file g32r4xx_ddl_usart.c.

◆ DDL_USART_StructInit()

void DDL_USART_StructInit ( DDL_USART_InitTypeDef * USART_InitStruct)

Set each DDL_USART_InitTypeDef field to default value.

Parameters
USART_InitStructPointer to a DDL_USART_InitTypeDef structure whose fields will be set to default values.
Return values
None

Definition at line 275 of file g32r4xx_ddl_usart.c.