Open Model Railroad Network (OpenMRN)
Loading...
Searching...
No Matches
RailcomUartHandle Struct Reference

This struct helps casting the UART base addresses to the appropriate type. More...

#include <Stm32Railcom.hxx>

Public Attributes

union { 
 
   uint32_t   baseAddress 
 Initialized by the constants from the processor header like USART1_BASE. More...
 
   USART_TypeDef *   Instance 
 Use this to access the registers. More...
 
};  
 

Detailed Description

This struct helps casting the UART base addresses to the appropriate type.

It can be allocated in read-only memory (flash) as a static array. It can be passed to the STM32 HAL macros as well.

Definition at line 65 of file Stm32Railcom.hxx.

Member Data Documentation

◆ baseAddress

uint32_t RailcomUartHandle::baseAddress

Initialized by the constants from the processor header like USART1_BASE.

Definition at line 71 of file Stm32Railcom.hxx.

◆ Instance

USART_TypeDef* RailcomUartHandle::Instance

Use this to access the registers.

Definition at line 73 of file Stm32Railcom.hxx.


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