![]() |
G32R430 Device Driver Layer v1.0.4
G32R4xx Device Driver Layer API Reference
|
Header file of USART DDL module. More...
#include "g32r4xx.h"Go to the source code of this file.
Data Structures | |
| struct | DDL_USART_InitTypeDef |
| LL USART Init Structure definition. More... | |
| struct | DDL_USART_ClockInitTypeDef |
| LL USART Clock Init Structure definition. More... | |
Macros | |
| #define | USART_POSITION_GTPR_GT USART_GTPSC_GRDT_Pos |
| #define | DDL_USART_STS_PEFLG USART_STS_PEFLG |
| #define | DDL_USART_STS_FEFLG USART_STS_FEFLG |
| #define | DDL_USART_STS_NEFLG USART_STS_NEFLG |
| #define | DDL_USART_STS_OVREFLG USART_STS_OVREFLG |
| #define | DDL_USART_STS_IDLEFLG USART_STS_IDLEFLG |
| #define | DDL_USART_STS_RXBNEFLG USART_STS_RXBNEFLG |
| #define | DDL_USART_STS_TXCFLG USART_STS_TXCFLG |
| #define | DDL_USART_STS_TXBEFLG USART_STS_TXBEFLG |
| #define | DDL_USART_STS_LBDFLG USART_STS_LBDFLG |
| #define | DDL_USART_STS_CTSFLG USART_STS_CTSFLG |
| #define | DDL_USART_CTRL1_IDLEIEN USART_CTRL1_IDLEIEN |
| #define | DDL_USART_CTRL1_RXBNEIEN USART_CTRL1_RXBNEIEN |
| #define | DDL_USART_CTRL1_TXCIEN USART_CTRL1_TXCIEN |
| #define | DDL_USART_CTRL1_TXBEIEN USART_CTRL1_TXBEIEN |
| #define | DDL_USART_CTRL1_PEIEN USART_CTRL1_PEIEN |
| #define | DDL_USART_CTRL2_LBDIEN USART_CTRL2_LBDIEN |
| #define | DDL_USART_CTRL3_ERRIEN USART_CTRL3_ERRIEN |
| #define | DDL_USART_CTRL3_CTSIEN USART_CTRL3_CTSIEN |
| #define | DDL_USART_DIRECTION_NONE 0x00000000U |
| #define | DDL_USART_DIRECTION_RX USART_CTRL1_RXEN |
| #define | DDL_USART_DIRECTION_TX USART_CTRL1_TXEN |
| #define | DDL_USART_DIRECTION_TX_RX (USART_CTRL1_TXEN |USART_CTRL1_RXEN) |
| #define | DDL_USART_PARITY_NONE 0x00000000U |
| #define | DDL_USART_PARITY_EVEN USART_CTRL1_PCEN |
| #define | DDL_USART_PARITY_ODD (USART_CTRL1_PCEN | USART_CTRL1_PCFG) |
| #define | DDL_USART_WAKEUP_IDLELINE 0x00000000U |
| #define | DDL_USART_WAKEUP_ADDRESSMARK USART_CTRL1_WUPMCFG |
| #define | DDL_USART_DATAWIDTH_8B 0x00000000U |
| #define | DDL_USART_DATAWIDTH_9B USART_CTRL1_DBLCFG |
| #define | DDL_USART_OVERSAMPLING_16 0x00000000U |
| #define | DDL_USART_OVERSAMPLING_8 USART_CTRL1_OSMCFG |
| #define | DDL_USART_CLOCK_DISABLE 0x00000000U |
| #define | DDL_USART_CLOCK_ENABLE USART_CTRL2_CLKEN |
| #define | DDL_USART_LASTCLKPULSE_NO_OUTPUT 0x00000000U |
| #define | DDL_USART_LASTCLKPULSE_OUTPUT USART_CTRL2_LBCPOEN |
| #define | DDL_USART_PHASE_1EDGE 0x00000000U |
| #define | DDL_USART_PHASE_2EDGE USART_CTRL2_CPHA |
| #define | DDL_USART_POLARITY_LOW 0x00000000U |
| #define | DDL_USART_POLARITY_HIGH USART_CTRL2_CPOL |
| #define | DDL_USART_STOPBITS_0_5 USART_CTRL2_STOPCFG_0 |
| #define | DDL_USART_STOPBITS_1 0x00000000U |
| #define | DDL_USART_STOPBITS_1_5 USART_CTRL2_STOPCFG |
| #define | DDL_USART_STOPBITS_2 USART_CTRL2_STOPCFG_1 |
| #define | DDL_USART_HWCONTROL_NONE 0x00000000U |
| #define | DDL_USART_HWCONTROL_RTS USART_CTRL3_RTSEN |
| #define | DDL_USART_HWCONTROL_CTS USART_CTRL3_CTSEN |
| #define | DDL_USART_HWCONTROL_RTS_CTS (USART_CTRL3_RTSEN | USART_CTRL3_CTSEN) |
| #define | DDL_USART_IRDA_POWER_NORMAL 0x00000000U |
| #define | DDL_USART_IRDA_POWER_LOW USART_CTRL3_IRLPEN |
| #define | DDL_USART_LINBREAK_DETECT_10B 0x00000000U |
| #define | DDL_USART_LINBREAK_DETECT_11B USART_CTRL2_LBDLCFG |
| #define | DDL_USART_SAMPLING_SINGLE USART_CTRL3_SAMCFG |
| #define | DDL_USART_SAMPLING_TRIPLE 0x00000000U |
| #define | DDL_USART_WriteReg(__INSTANCE__, __REG__, __VALUE__) |
| Write a value in USART register. | |
| #define | DDL_USART_ReadReg(__INSTANCE__, __REG__) |
| Read a value in USART register. | |
| #define | __DDL_USART_DIV_SAMPLING8_100(__PERIPHCLK__, __BAUDRATE__) |
| Compute USARTDIV value according to Peripheral Clock and expected Baud Rate in 8 bits sampling mode (32 bits value of USARTDIV is returned). | |
| #define | __DDL_USART_DIVMANT_SAMPLING8(__PERIPHCLK__, __BAUDRATE__) |
| #define | __DDL_USART_DIVFRAQ_SAMPLING8(__PERIPHCLK__, __BAUDRATE__) |
| #define | __DDL_USART_DIV_SAMPLING8(__PERIPHCLK__, __BAUDRATE__) |
| #define | __DDL_USART_DIV_SAMPLING16_100(__PERIPHCLK__, __BAUDRATE__) |
| Compute USARTDIV value according to Peripheral Clock and expected Baud Rate in 16 bits sampling mode (32 bits value of USARTDIV is returned). | |
| #define | __DDL_USART_DIVMANT_SAMPLING16(__PERIPHCLK__, __BAUDRATE__) |
| #define | __DDL_USART_DIVFRAQ_SAMPLING16(__PERIPHCLK__, __BAUDRATE__) |
| #define | __DDL_USART_DIV_SAMPLING16(__PERIPHCLK__, __BAUDRATE__) |
Functions | |
| __STATIC_INLINE void | DDL_USART_Enable (USART_TypeDef *USARTx) |
| USART Enable. | |
| __STATIC_INLINE void | DDL_USART_Disable (USART_TypeDef *USARTx) |
| USART Disable (all USART prescalers and outputs are disabled). | |
| __STATIC_INLINE uint32_t | DDL_USART_IsEnabled (USART_TypeDef *USARTx) |
| Indicate if USART is enabled. | |
| __STATIC_INLINE void | DDL_USART_EnableDirectionRx (USART_TypeDef *USARTx) |
| Receiver Enable (Receiver is enabled and begins searching for a start bit). | |
| __STATIC_INLINE void | DDL_USART_DisableDirectionRx (USART_TypeDef *USARTx) |
| Receiver Disable. | |
| __STATIC_INLINE void | DDL_USART_EnableDirectionTx (USART_TypeDef *USARTx) |
| Transmitter Enable. | |
| __STATIC_INLINE void | DDL_USART_DisableDirectionTx (USART_TypeDef *USARTx) |
| Transmitter Disable. | |
| __STATIC_INLINE void | DDL_USART_SetTransferDirection (USART_TypeDef *USARTx, uint32_t TransferDirection) |
| Configure simultaneously enabled/disabled states of Transmitter and Receiver. | |
| __STATIC_INLINE uint32_t | DDL_USART_GetTransferDirection (USART_TypeDef *USARTx) |
| Return enabled/disabled states of Transmitter and Receiver. | |
| __STATIC_INLINE void | DDL_USART_SetParity (USART_TypeDef *USARTx, uint32_t Parity) |
| Configure Parity (enabled/disabled and parity mode if enabled). | |
| __STATIC_INLINE uint32_t | DDL_USART_GetParity (USART_TypeDef *USARTx) |
| Return Parity configuration (enabled/disabled and parity mode if enabled). | |
| __STATIC_INLINE void | DDL_USART_SetWakeUpMethod (USART_TypeDef *USARTx, uint32_t Method) |
| Set Receiver Wake Up method from Mute mode. | |
| __STATIC_INLINE uint32_t | DDL_USART_GetWakeUpMethod (USART_TypeDef *USARTx) |
| Return Receiver Wake Up method from Mute mode. | |
| __STATIC_INLINE void | DDL_USART_SetDataWidth (USART_TypeDef *USARTx, uint32_t DataWidth) |
| Set Word length (i.e. nb of data bits, excluding start and stop bits). | |
| __STATIC_INLINE uint32_t | DDL_USART_GetDataWidth (USART_TypeDef *USARTx) |
| Return Word length (i.e. nb of data bits, excluding start and stop bits). | |
| __STATIC_INLINE void | DDL_USART_SetOverSampling (USART_TypeDef *USARTx, uint32_t OverSampling) |
| Set Oversampling to 8-bit or 16-bit mode. | |
| __STATIC_INLINE uint32_t | DDL_USART_GetOverSampling (USART_TypeDef *USARTx) |
| Return Oversampling mode. | |
| __STATIC_INLINE void | DDL_USART_SetLastClkPulseOutput (USART_TypeDef *USARTx, uint32_t LastBitClockPulse) |
| Configure if Clock pulse of the last data bit is output to the SCLK pin or not. | |
| __STATIC_INLINE uint32_t | DDL_USART_GetLastClkPulseOutput (USART_TypeDef *USARTx) |
| Retrieve Clock pulse of the last data bit output configuration (Last bit Clock pulse output to the SCLK pin or not). | |
| __STATIC_INLINE void | DDL_USART_SetClockPhase (USART_TypeDef *USARTx, uint32_t ClockPhase) |
| Select the phase of the clock output on the SCLK pin in synchronous mode. | |
| __STATIC_INLINE uint32_t | DDL_USART_GetClockPhase (USART_TypeDef *USARTx) |
| Return phase of the clock output on the SCLK pin in synchronous mode. | |
| __STATIC_INLINE void | DDL_USART_SetClockPolarity (USART_TypeDef *USARTx, uint32_t ClockPolarity) |
| Select the polarity of the clock output on the SCLK pin in synchronous mode. | |
| __STATIC_INLINE uint32_t | DDL_USART_GetClockPolarity (USART_TypeDef *USARTx) |
| Return polarity of the clock output on the SCLK pin in synchronous mode. | |
| __STATIC_INLINE void | DDL_USART_ConfigClock (USART_TypeDef *USARTx, uint32_t Phase, uint32_t Polarity, uint32_t LBCPOutput) |
| Configure Clock signal format (Phase Polarity and choice about output of last bit clock pulse). | |
| __STATIC_INLINE void | DDL_USART_EnableSCLKOutput (USART_TypeDef *USARTx) |
| Enable Clock output on SCLK pin. | |
| __STATIC_INLINE void | DDL_USART_DisableSCLKOutput (USART_TypeDef *USARTx) |
| Disable Clock output on SCLK pin. | |
| __STATIC_INLINE uint32_t | DDL_USART_IsEnabledSCLKOutput (USART_TypeDef *USARTx) |
| Indicate if Clock output on SCLK pin is enabled. | |
| __STATIC_INLINE void | DDL_USART_SetStopBitsLength (USART_TypeDef *USARTx, uint32_t StopBits) |
| Set the length of the stop bits. | |
| __STATIC_INLINE uint32_t | DDL_USART_GetStopBitsLength (USART_TypeDef *USARTx) |
| Retrieve the length of the stop bits. | |
| __STATIC_INLINE void | DDL_USART_ConfigCharacter (USART_TypeDef *USARTx, uint32_t DataWidth, uint32_t Parity, uint32_t StopBits) |
| Configure Character frame format (Datawidth, Parity control, Stop Bits). | |
| __STATIC_INLINE void | DDL_USART_SetNodeAddress (USART_TypeDef *USARTx, uint32_t NodeAddress) |
| Set Address of the USART node. | |
| __STATIC_INLINE uint32_t | DDL_USART_GetNodeAddress (USART_TypeDef *USARTx) |
| Return 4 bit Address of the USART node as set in ADD field of CTRL2. | |
| __STATIC_INLINE void | DDL_USART_EnableRTSHWFlowCtrl (USART_TypeDef *USARTx) |
| Enable RTS HW Flow Control. | |
| __STATIC_INLINE void | DDL_USART_DisableRTSHWFlowCtrl (USART_TypeDef *USARTx) |
| Disable RTS HW Flow Control. | |
| __STATIC_INLINE void | DDL_USART_EnableCTSHWFlowCtrl (USART_TypeDef *USARTx) |
| Enable CTS HW Flow Control. | |
| __STATIC_INLINE void | DDL_USART_DisableCTSHWFlowCtrl (USART_TypeDef *USARTx) |
| Disable CTS HW Flow Control. | |
| __STATIC_INLINE void | DDL_USART_SetHWFlowCtrl (USART_TypeDef *USARTx, uint32_t HardwareFlowControl) |
| Configure HW Flow Control mode (both CTS and RTS). | |
| __STATIC_INLINE uint32_t | DDL_USART_GetHWFlowCtrl (USART_TypeDef *USARTx) |
| Return HW Flow Control configuration (both CTS and RTS). | |
| __STATIC_INLINE void | DDL_USART_SetDEDeassertionTime (USART_TypeDef *USARTx, uint32_t Time) |
| Set DEDT (Driver Enable De-Assertion Time), Time value expressed on 5 bits ([4:0] bits). | |
| __STATIC_INLINE uint32_t | DDL_USART_GetDEDeassertionTime (USART_TypeDef *USARTx) |
| Return DEDT (Driver Enable De-Assertion Time). | |
| __STATIC_INLINE void | DDL_USART_SetDEAssertionTime (USART_TypeDef *USARTx, uint32_t Time) |
| Set DEAT (Driver Enable Assertion Time), Time value expressed on 5 bits ([4:0] bits). | |
| __STATIC_INLINE uint32_t | DDL_USART_GetDEAssertionTime (USART_TypeDef *USARTx) |
| Return DEAT (Driver Enable Assertion Time). | |
| __STATIC_INLINE void | DDL_USART_EnableDEMode (USART_TypeDef *USARTx) |
| Enable Driver Enable (DE) Mode. | |
| __STATIC_INLINE void | DDL_USART_DisableDEMode (USART_TypeDef *USARTx) |
| Disable Driver Enable (DE) Mode. | |
| __STATIC_INLINE uint32_t | DDL_USART_IsEnabledDEMode (USART_TypeDef *USARTx) |
| Indicate if Driver Enable (DE) Mode is enabled. | |
| __STATIC_INLINE void | DDL_USART_SetBaudRate (USART_TypeDef *USARTx, uint32_t PeriphClk, uint32_t OverSampling, uint32_t BaudRate) |
| Configure USART BRR register for achieving expected Baud Rate value. | |
| __STATIC_INLINE uint32_t | DDL_USART_GetBaudRate (USART_TypeDef *USARTx, uint32_t PeriphClk, uint32_t OverSampling) |
| Return current Baud Rate value, according to USARTDIV present in BRR register (full BRR content), and to used Peripheral Clock and Oversampling mode values. | |
| __STATIC_INLINE void | DDL_USART_SetSampleMethod (USART_TypeDef *USARTx, uint32_t Sample) |
| Configure sampling method. | |
| __STATIC_INLINE void | DDL_USART_EnableIrda (USART_TypeDef *USARTx) |
| Enable IrDA mode. | |
| __STATIC_INLINE void | DDL_USART_DisableIrda (USART_TypeDef *USARTx) |
| Disable IrDA mode. | |
| __STATIC_INLINE uint32_t | DDL_USART_IsEnabledIrda (USART_TypeDef *USARTx) |
| Indicate if IrDA mode is enabled. | |
| __STATIC_INLINE void | DDL_USART_SetIrdaPowerMode (USART_TypeDef *USARTx, uint32_t PowerMode) |
| Configure IrDA Power Mode (Normal or Low Power). | |
| __STATIC_INLINE uint32_t | DDL_USART_GetIrdaPowerMode (USART_TypeDef *USARTx) |
| Retrieve IrDA Power Mode configuration (Normal or Low Power). | |
| __STATIC_INLINE void | DDL_USART_SetIrdaPrescaler (USART_TypeDef *USARTx, uint32_t PrescalerValue) |
| Set Irda prescaler value, used for dividing the USART clock source to achieve the Irda Low Power frequency (8 bits value). | |
| __STATIC_INLINE uint32_t | DDL_USART_GetIrdaPrescaler (USART_TypeDef *USARTx) |
| Return Irda prescaler value, used for dividing the USART clock source to achieve the Irda Low Power frequency (8 bits value). | |
| __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). | |
| __STATIC_INLINE void | DDL_USART_EnableHalfDuplex (USART_TypeDef *USARTx) |
| Enable Single Wire Half-Duplex mode. | |
| __STATIC_INLINE void | DDL_USART_DisableHalfDuplex (USART_TypeDef *USARTx) |
| Disable Single Wire Half-Duplex mode. | |
| __STATIC_INLINE uint32_t | DDL_USART_IsEnabledHalfDuplex (USART_TypeDef *USARTx) |
| Indicate if Single Wire Half-Duplex mode is enabled. | |
| __STATIC_INLINE void | DDL_USART_SetLINBrkDetectionLen (USART_TypeDef *USARTx, uint32_t LINBDLength) |
| Set LIN Break Detection Length. | |
| __STATIC_INLINE uint32_t | DDL_USART_GetLINBrkDetectionLen (USART_TypeDef *USARTx) |
| Return LIN Break Detection Length. | |
| __STATIC_INLINE void | DDL_USART_EnableLIN (USART_TypeDef *USARTx) |
| Enable LIN mode. | |
| __STATIC_INLINE void | DDL_USART_DisableLIN (USART_TypeDef *USARTx) |
| Disable LIN mode. | |
| __STATIC_INLINE uint32_t | DDL_USART_IsEnabledLIN (USART_TypeDef *USARTx) |
| Indicate if LIN mode is enabled. | |
| __STATIC_INLINE void | DDL_USART_ConfigAsyncMode (USART_TypeDef *USARTx) |
| Perform basic configuration of USART for enabling use in Asynchronous Mode (UART). | |
| __STATIC_INLINE void | DDL_USART_ConfigSyncMode (USART_TypeDef *USARTx) |
| Perform basic configuration of USART for enabling use in Synchronous Mode. | |
| __STATIC_INLINE void | DDL_USART_ConfigLINMode (USART_TypeDef *USARTx) |
| Perform basic configuration of USART for enabling use in LIN Mode. | |
| __STATIC_INLINE void | DDL_USART_ConfigHalfDuplexMode (USART_TypeDef *USARTx) |
| Perform basic configuration of USART for enabling use in Half Duplex Mode. | |
| __STATIC_INLINE void | DDL_USART_ConfigSmartcardMode (USART_TypeDef *USARTx) |
| Perform basic configuration of USART for enabling use in Smartcard Mode. | |
| __STATIC_INLINE void | DDL_USART_ConfigIrdaMode (USART_TypeDef *USARTx) |
| Perform basic configuration of USART for enabling use in Irda Mode. | |
| __STATIC_INLINE void | DDL_USART_ConfigMultiProcessMode (USART_TypeDef *USARTx) |
| Perform basic configuration of USART for enabling use in Multi processor Mode (several USARTs connected in a network, one of the USARTs can be the master, its TX output connected to the RX inputs of the other slaves USARTs). | |
| __STATIC_INLINE uint32_t | DDL_USART_IsActiveFlag_PE (USART_TypeDef *USARTx) |
| Check if the USART Parity Error Flag is set or not. | |
| __STATIC_INLINE void | DDL_USART_ClearFlag_PE (USART_TypeDef *USARTx) |
| Clear Parity Error Flag. | |
| __STATIC_INLINE uint32_t | DDL_USART_IsActiveFlag_FE (USART_TypeDef *USARTx) |
| Check if the USART Framing Error Flag is set or not. | |
| __STATIC_INLINE void | DDL_USART_ClearFlag_FE (USART_TypeDef *USARTx) |
| Clear Framing Error Flag. | |
| __STATIC_INLINE uint32_t | DDL_USART_IsActiveFlag_NE (USART_TypeDef *USARTx) |
| Check if the USART Noise error detected Flag is set or not. | |
| __STATIC_INLINE void | DDL_USART_ClearFlag_NE (USART_TypeDef *USARTx) |
| Clear Noise detected Flag. | |
| __STATIC_INLINE uint32_t | DDL_USART_IsActiveFlag_ORE (USART_TypeDef *USARTx) |
| Check if the USART OverRun Error Flag is set or not. | |
| __STATIC_INLINE void | DDL_USART_ClearFlag_ORE (USART_TypeDef *USARTx) |
| Clear OverRun Error Flag. | |
| __STATIC_INLINE uint32_t | DDL_USART_IsActiveFlag_IDLE (USART_TypeDef *USARTx) |
| Check if the USART IDLE line detected Flag is set or not. | |
| __STATIC_INLINE void | DDL_USART_ClearFlag_IDLE (USART_TypeDef *USARTx) |
| Clear IDLE line detected Flag. | |
| __STATIC_INLINE uint32_t | DDL_USART_IsActiveFlag_RXNE (USART_TypeDef *USARTx) |
| Check if the USART Read Data Register Not Empty Flag is set or not. | |
| __STATIC_INLINE void | DDL_USART_ClearFlag_RXNE (USART_TypeDef *USARTx) |
| Clear RX Not Empty Flag. | |
| __STATIC_INLINE uint32_t | DDL_USART_IsActiveFlag_TC (USART_TypeDef *USARTx) |
| Check if the USART Transmission Complete Flag is set or not. | |
| __STATIC_INLINE void | DDL_USART_ClearFlag_TC (USART_TypeDef *USARTx) |
| Clear Transmission Complete Flag. | |
| __STATIC_INLINE uint32_t | DDL_USART_IsActiveFlag_TXE (USART_TypeDef *USARTx) |
| Check if the USART Transmit Data Register Empty Flag is set or not. | |
| __STATIC_INLINE uint32_t | DDL_USART_IsActiveFlag_LBD (USART_TypeDef *USARTx) |
| Check if the USART LIN Break Detection Flag is set or not. | |
| __STATIC_INLINE void | DDL_USART_ClearFlag_LBD (USART_TypeDef *USARTx) |
| Clear LIN Break Detection Flag. | |
| __STATIC_INLINE uint32_t | DDL_USART_IsActiveFlag_CTS (USART_TypeDef *USARTx) |
| Check if the USART CTS Flag is set or not. | |
| __STATIC_INLINE void | DDL_USART_ClearFlag_CTS (USART_TypeDef *USARTx) |
| Clear CTS Interrupt Flag. | |
| __STATIC_INLINE uint32_t | DDL_USART_IsActiveFlag_SBK (USART_TypeDef *USARTx) |
| Check if the USART Send Break Flag is set or not. | |
| __STATIC_INLINE uint32_t | DDL_USART_IsActiveFlag_RWU (USART_TypeDef *USARTx) |
| Check if the USART Receive Wake Up from mute mode Flag is set or not. | |
| __STATIC_INLINE void | DDL_USART_EnableIT_IDLE (USART_TypeDef *USARTx) |
| Enable IDLE Interrupt. | |
| __STATIC_INLINE void | DDL_USART_DisableIT_IDLE (USART_TypeDef *USARTx) |
| Disable IDLE Interrupt. | |
| __STATIC_INLINE uint32_t | DDL_USART_IsEnabledIT_IDLE (USART_TypeDef *USARTx) |
| Check if the USART IDLE Interrupt source is enabled or disabled. | |
| __STATIC_INLINE void | DDL_USART_EnableIT_RXNE (USART_TypeDef *USARTx) |
| Enable RX Not Empty Interrupt. | |
| __STATIC_INLINE void | DDL_USART_DisableIT_RXNE (USART_TypeDef *USARTx) |
| Disable RX Not Empty Interrupt. | |
| __STATIC_INLINE uint32_t | DDL_USART_IsEnabledIT_RXNE (USART_TypeDef *USARTx) |
| Check if the USART RX Not Empty Interrupt is enabled or disabled. | |
| __STATIC_INLINE void | DDL_USART_EnableIT_TC (USART_TypeDef *USARTx) |
| Enable Transmission Complete Interrupt. | |
| __STATIC_INLINE void | DDL_USART_DisableIT_TC (USART_TypeDef *USARTx) |
| Disable Transmission Complete Interrupt. | |
| __STATIC_INLINE uint32_t | DDL_USART_IsEnabledIT_TC (USART_TypeDef *USARTx) |
| Check if the USART Transmission Complete Interrupt is enabled or disabled. | |
| __STATIC_INLINE void | DDL_USART_EnableIT_TXE (USART_TypeDef *USARTx) |
| Enable TX Empty Interrupt. | |
| __STATIC_INLINE void | DDL_USART_DisableIT_TXE (USART_TypeDef *USARTx) |
| Disable TX Empty Interrupt. | |
| __STATIC_INLINE uint32_t | DDL_USART_IsEnabledIT_TXE (USART_TypeDef *USARTx) |
| Check if the USART TX Empty Interrupt is enabled or disabled. | |
| __STATIC_INLINE void | DDL_USART_EnableIT_PE (USART_TypeDef *USARTx) |
| Enable Parity Error Interrupt. | |
| __STATIC_INLINE void | DDL_USART_DisableIT_PE (USART_TypeDef *USARTx) |
| Disable Parity Error Interrupt. | |
| __STATIC_INLINE uint32_t | DDL_USART_IsEnabledIT_PE (USART_TypeDef *USARTx) |
| Check if the USART Parity Error Interrupt is enabled or disabled. | |
| __STATIC_INLINE void | DDL_USART_EnableIT_LBD (USART_TypeDef *USARTx) |
| Enable LIN Break Detection Interrupt. | |
| __STATIC_INLINE void | DDL_USART_DisableIT_LBD (USART_TypeDef *USARTx) |
| Disable LIN Break Detection Interrupt. | |
| __STATIC_INLINE uint32_t | DDL_USART_IsEnabledIT_LBD (USART_TypeDef *USARTx) |
| Check if the USART LIN Break Detection Interrupt is enabled or disabled. | |
| __STATIC_INLINE void | DDL_USART_EnableIT_ERROR (USART_TypeDef *USARTx) |
| Enable Error Interrupt. | |
| __STATIC_INLINE void | DDL_USART_DisableIT_ERROR (USART_TypeDef *USARTx) |
| Disable Error Interrupt. | |
| __STATIC_INLINE uint32_t | DDL_USART_IsEnabledIT_ERROR (USART_TypeDef *USARTx) |
| Check if the USART Error Interrupt is enabled or disabled. | |
| __STATIC_INLINE void | DDL_USART_EnableIT_CTS (USART_TypeDef *USARTx) |
| Enable CTS Interrupt. | |
| __STATIC_INLINE void | DDL_USART_DisableIT_CTS (USART_TypeDef *USARTx) |
| Disable CTS Interrupt. | |
| __STATIC_INLINE uint32_t | DDL_USART_IsEnabledIT_CTS (USART_TypeDef *USARTx) |
| Check if the USART CTS Interrupt is enabled or disabled. | |
| __STATIC_INLINE void | DDL_USART_EnableDMAReq_RX (USART_TypeDef *USARTx) |
| Enable DMA Mode for reception. | |
| __STATIC_INLINE void | DDL_USART_DisableDMAReq_RX (USART_TypeDef *USARTx) |
| Disable DMA Mode for reception. | |
| __STATIC_INLINE uint32_t | DDL_USART_IsEnabledDMAReq_RX (USART_TypeDef *USARTx) |
| Check if DMA Mode is enabled for reception. | |
| __STATIC_INLINE void | DDL_USART_EnableDMAReq_TX (USART_TypeDef *USARTx) |
| Enable DMA Mode for transmission. | |
| __STATIC_INLINE void | DDL_USART_DisableDMAReq_TX (USART_TypeDef *USARTx) |
| Disable DMA Mode for transmission. | |
| __STATIC_INLINE uint32_t | DDL_USART_IsEnabledDMAReq_TX (USART_TypeDef *USARTx) |
| Check if DMA Mode is enabled for transmission. | |
| __STATIC_INLINE uint32_t | DDL_USART_DMA_GetRegAddr (USART_TypeDef *USARTx) |
| Get the data register address used for DMA transfer. | |
| __STATIC_INLINE uint8_t | DDL_USART_ReceiveData8 (USART_TypeDef *USARTx) |
| Read Receiver Data register (Receive Data value, 8 bits). | |
| __STATIC_INLINE uint16_t | DDL_USART_ReceiveData9 (USART_TypeDef *USARTx) |
| Read Receiver Data register (Receive Data value, 9 bits). | |
| __STATIC_INLINE void | DDL_USART_TransmitData8 (USART_TypeDef *USARTx, uint8_t Value) |
| Write in Transmitter Data Register (Transmit Data value, 8 bits). | |
| __STATIC_INLINE void | DDL_USART_TransmitData9 (USART_TypeDef *USARTx, uint16_t Value) |
| Write in Transmitter Data Register (Transmit Data value, 9 bits). | |
| __STATIC_INLINE void | DDL_USART_RequestBreakSending (USART_TypeDef *USARTx) |
| Request Break sending. | |
| __STATIC_INLINE void | DDL_USART_RequestEnterMuteMode (USART_TypeDef *USARTx) |
| Put USART in Mute mode. | |
| __STATIC_INLINE void | DDL_USART_RequestExitMuteMode (USART_TypeDef *USARTx) |
| Put USART in Active mode. | |
| 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. | |
Header file of USART DDL module.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
The original code has been modified by Geehy Semiconductor.
Copyright (c) 2016 STMicroelectronics. Copyright (C) 2025 Geehy Semiconductor. All rights reserved.
This software is licensed under terms that can be found in the LICENSE file in the root directory of this software component. If no LICENSE file comes with this software, it is provided AS-IS.
Definition in file g32r4xx_ddl_usart.h.