OpenMPTL - STM32 (common)
C++ Microprocessor Template Library
Classes
mptl::USART_common< base_addr > Struct Template Reference

Universal synchronous asynchronous receiver transmitter (USART), common to all stm32 processors. More...

#include <usart.hpp>

Inheritance diagram for mptl::USART_common< base_addr >:
mptl::USART_common_ext< base_addr >

Classes

struct  BRR
 Baud rate register. More...
 
struct  CR1
 Control register 1. More...
 
struct  CR2
 Control register 2. More...
 
struct  CR3
 Control register 3. More...
 
struct  DR
 Data register. More...
 
struct  GTPR
 Guard time and prescaler register. More...
 
struct  SR
 Status register. More...
 

Detailed Description

template<reg_addr_t base_addr>
struct mptl::USART_common< base_addr >

NOTE: We use std::uint_fast16_t to access the registers. This way we leave it up to the compiler to use either 16-bit or 32-bit integers for the access_type. More precicely: "use fastest unsigned integer type with width of at least 16 bits". In most situations the compiler toolchain (gcc-4.8) will choose 32bit integers for ARM / ARM-Thumb(2).

TODO: move ^^^this^^^ text to the "register access" discussion.


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