Hierodule 1.6.2
Utility module set for STM32 MCUs
Loading...
Searching...
No Matches
hierodule_usart.h File Reference

: Header file for the USART module. More...

Go to the source code of this file.

Data Structures

struct  HIERODULE_USART_Wrapper
 Struct that keeps variables for the ring buffer, a pointer to the USART peripheral and a pointer to the ISR for RXNE. More...
 

Functions

HIERODULE_USART_Wrapper ** HIERODULE_USART_InitWrapper (USART_TypeDef *USART, uint16_t RX_BufferSize, void(*RX_Handler)(uint8_t))
 Initializes a wrapper for the specified USART peripheral.
 
void HIERODULE_USART_ReleaseWrapper (HIERODULE_USART_Wrapper *Wrapper)
 Frees the memory allocated to a USART wrapper and clears USART status flags and control bits.
 
void HIERODULE_USART_Enable_IT_RXNE (HIERODULE_USART_Wrapper *Wrapper)
 Enables the RX not empty interrupt of the USART peripheral , also enables the RE bit of the control register..
 
void HIERODULE_USART_Disable_IT_RXNE (HIERODULE_USART_Wrapper *Wrapper)
 Disables the RX not empty interrupt of the USART peripheral , also disables the RE bit of the control register..
 
uint32_t HIERODULE_USART_IsActiveFlag_RXNE (HIERODULE_USART_Wrapper *Wrapper)
 Checks the RX not empty interrupt flag of the USART peripheral.
 
uint32_t HIERODULE_USART_IsActiveFlag_TXE (HIERODULE_USART_Wrapper *Wrapper)
 Checks the TX is empty interrupt flag of the USART peripheral.
 
uint8_t HIERODULE_USART_GetNextByte (HIERODULE_USART_Wrapper *Wrapper)
 Fetches the next byte in the ring buffer.
 
void HIERODULE_USART_TransmitByte (HIERODULE_USART_Wrapper *Wrapper, uint8_t Byte)
 Transmits a single byte.
 
void HIERODULE_USART_TransmitString (HIERODULE_USART_Wrapper *Wrapper, char *String)
 Transmits a string.
 

Detailed Description

Author
: ushumgigal
Attention
: Copyrighted (2024) by ushumgigal under MIT License, a copy of which may be found in the root folder of the repository.

Definition in file hierodule_usart.h.