G32R430 Device Driver Layer v1.0.4
G32R4xx Device Driver Layer API Reference
Configuration functions related to Smartcard feature

Functions

__STATIC_INLINE void DDL_USART_EnableSmartcardNACK (USART_TypeDef *USARTx)
 Enable Smartcard NACK transmission.
__STATIC_INLINE void DDL_USART_DisableSmartcardNACK (USART_TypeDef *USARTx)
 Disable Smartcard NACK transmission.
__STATIC_INLINE uint32_t DDL_USART_IsEnabledSmartcardNACK (USART_TypeDef *USARTx)
 Indicate if Smartcard NACK transmission is enabled.
__STATIC_INLINE void DDL_USART_EnableSmartcard (USART_TypeDef *USARTx)
 Enable Smartcard mode.
__STATIC_INLINE void DDL_USART_DisableSmartcard (USART_TypeDef *USARTx)
 Disable Smartcard mode.
__STATIC_INLINE uint32_t DDL_USART_IsEnabledSmartcard (USART_TypeDef *USARTx)
 Indicate if Smartcard mode is enabled.
__STATIC_INLINE void DDL_USART_SetSmartcardPrescaler (USART_TypeDef *USARTx, uint32_t PrescalerValue)
 Set Smartcard prescaler value, used for dividing the USART clock source to provide the SMARTCARD Clock (5 bits value).
__STATIC_INLINE uint32_t DDL_USART_GetSmartcardPrescaler (USART_TypeDef *USARTx)
 Return Smartcard prescaler value, used for dividing the USART clock source to provide the SMARTCARD Clock (5 bits value).
__STATIC_INLINE void DDL_USART_SetSmartcardGuardTime (USART_TypeDef *USARTx, uint32_t GuardTime)
 Set Smartcard Guard time value, expressed in nb of baud clocks periods (GT[7:0] bits : Guard time value).
__STATIC_INLINE uint32_t DDL_USART_GetSmartcardGuardTime (USART_TypeDef *USARTx)
 Return Smartcard Guard time value, expressed in nb of baud clocks periods (GT[7:0] bits : Guard time value).

Detailed Description

Function Documentation

◆ DDL_USART_DisableSmartcard()

__STATIC_INLINE void DDL_USART_DisableSmartcard ( USART_TypeDef * USARTx)

Disable Smartcard mode.

Note
Macro IS_SMARTCARD_INSTANCE(USARTx) can be used to check whether or not Smartcard feature is supported by the USARTx instance.
Parameters
USARTxUSART Instance
Return values
None

Definition at line 1296 of file g32r4xx_ddl_usart.h.

◆ DDL_USART_DisableSmartcardNACK()

__STATIC_INLINE void DDL_USART_DisableSmartcardNACK ( USART_TypeDef * USARTx)

Disable Smartcard NACK transmission.

Note
Macro IS_SMARTCARD_INSTANCE(USARTx) can be used to check whether or not Smartcard feature is supported by the USARTx instance.
Parameters
USARTxUSART Instance
Return values
None

Definition at line 1260 of file g32r4xx_ddl_usart.h.

◆ DDL_USART_EnableSmartcard()

__STATIC_INLINE void DDL_USART_EnableSmartcard ( USART_TypeDef * USARTx)

Enable Smartcard mode.

Note
Macro IS_SMARTCARD_INSTANCE(USARTx) can be used to check whether or not Smartcard feature is supported by the USARTx instance.
Parameters
USARTxUSART Instance
Return values
None

Definition at line 1284 of file g32r4xx_ddl_usart.h.

◆ DDL_USART_EnableSmartcardNACK()

__STATIC_INLINE void DDL_USART_EnableSmartcardNACK ( USART_TypeDef * USARTx)

Enable Smartcard NACK transmission.

Note
Macro IS_SMARTCARD_INSTANCE(USARTx) can be used to check whether or not Smartcard feature is supported by the USARTx instance.
Parameters
USARTxUSART Instance
Return values
None

Definition at line 1248 of file g32r4xx_ddl_usart.h.

◆ DDL_USART_GetSmartcardGuardTime()

__STATIC_INLINE uint32_t DDL_USART_GetSmartcardGuardTime ( USART_TypeDef * USARTx)

Return Smartcard Guard time value, expressed in nb of baud clocks periods (GT[7:0] bits : Guard time value).

Note
Macro IS_SMARTCARD_INSTANCE(USARTx) can be used to check whether or not Smartcard feature is supported by the USARTx instance.
Parameters
USARTxUSART Instance
Return values
SmartcardGuard time value (Value between Min_Data=0x00 and Max_Data=0xFF)

Definition at line 1362 of file g32r4xx_ddl_usart.h.

◆ DDL_USART_GetSmartcardPrescaler()

__STATIC_INLINE uint32_t DDL_USART_GetSmartcardPrescaler ( USART_TypeDef * USARTx)

Return Smartcard prescaler value, used for dividing the USART clock source to provide the SMARTCARD Clock (5 bits value).

Note
Macro IS_SMARTCARD_INSTANCE(USARTx) can be used to check whether or not Smartcard feature is supported by the USARTx instance.
Parameters
USARTxUSART Instance
Return values
Smartcardprescaler value (Value between Min_Data=0 and Max_Data=31)

Definition at line 1335 of file g32r4xx_ddl_usart.h.

◆ DDL_USART_IsEnabledSmartcard()

__STATIC_INLINE uint32_t DDL_USART_IsEnabledSmartcard ( USART_TypeDef * USARTx)

Indicate if Smartcard mode is enabled.

Note
Macro IS_SMARTCARD_INSTANCE(USARTx) can be used to check whether or not Smartcard feature is supported by the USARTx instance.
Parameters
USARTxUSART Instance
Return values
Stateof bit (1 or 0).

Definition at line 1308 of file g32r4xx_ddl_usart.h.

◆ DDL_USART_IsEnabledSmartcardNACK()

__STATIC_INLINE uint32_t DDL_USART_IsEnabledSmartcardNACK ( USART_TypeDef * USARTx)

Indicate if Smartcard NACK transmission is enabled.

Note
Macro IS_SMARTCARD_INSTANCE(USARTx) can be used to check whether or not Smartcard feature is supported by the USARTx instance.
Parameters
USARTxUSART Instance
Return values
Stateof bit (1 or 0).

Definition at line 1272 of file g32r4xx_ddl_usart.h.

◆ DDL_USART_SetSmartcardGuardTime()

__STATIC_INLINE void DDL_USART_SetSmartcardGuardTime ( USART_TypeDef * USARTx,
uint32_t GuardTime )

Set Smartcard Guard time value, expressed in nb of baud clocks periods (GT[7:0] bits : Guard time value).

Note
Macro IS_SMARTCARD_INSTANCE(USARTx) can be used to check whether or not Smartcard feature is supported by the USARTx instance.
Parameters
USARTxUSART Instance
GuardTimeValue between Min_Data=0x00 and Max_Data=0xFF
Return values
None

Definition at line 1349 of file g32r4xx_ddl_usart.h.

◆ DDL_USART_SetSmartcardPrescaler()

__STATIC_INLINE void DDL_USART_SetSmartcardPrescaler ( USART_TypeDef * USARTx,
uint32_t PrescalerValue )

Set Smartcard prescaler value, used for dividing the USART clock source to provide the SMARTCARD Clock (5 bits value).

Note
Macro IS_SMARTCARD_INSTANCE(USARTx) can be used to check whether or not Smartcard feature is supported by the USARTx instance.
Parameters
USARTxUSART Instance
PrescalerValueValue between Min_Data=0 and Max_Data=31
Return values
None

Definition at line 1322 of file g32r4xx_ddl_usart.h.