OpenMPTL - STM32F10X
C++ Microprocessor Template Library
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator
Public Types | List of all members
mptl::usart< usart_no, system_clock_type, gpio_rx_type, gpio_tx_type, gpio_tx_speed > Class Template Reference

#include <usart.hpp>

Inheritance diagram for mptl::usart< usart_no, system_clock_type, gpio_rx_type, gpio_tx_type, gpio_tx_speed >:
mptl::usart_stm32_common< usart_no, system_clock_type >

Public Types

using resources = typelist< typename base_type::resources, typename mpl::usart_gpio_rx_resources< gpio_rx_type >::type, typename mpl::usart_gpio_tx_resources< gpio_tx_type, gpio_tx_speed >::type >
 
- Public Types inherited from mptl::usart_stm32_common< usart_no, system_clock_type >
typedef USART< usart_noUSARTx
 
typedef irq::usart< usart_noirq
 
typedef rcc_usart_clock_resources< usart_noresources
 
typedef regval< typename USARTx::CR1::RE, 1 > enable_rx
 
typedef regval< typename USARTx::CR1::TE, 1 > enable_tx
 
typedef typename baud_rate_impl< value >::type baud_rate
 
typedef typename word_length_impl< value >::type word_length
 
typedef typename stop_bits_impl< a, b >::type stop_bits
 
typedef regval< typename USARTx::CR2::CLKEN, 1 > clock_enable
 
typedef regval< typename USARTx::CR2::LBCL, 1 > last_bit_clock_pulse
 

Additional Inherited Members

- Static Public Member Functions inherited from mptl::usart_stm32_common< usart_no, system_clock_type >
static USARTx::BRR::value_type baud_to_brr (unsigned baud_rate)
 
static void configure (void)
 
static void set_baudrate (unsigned value)
 
static void send (typename USARTx::DR::value_type data)
 
static USARTx::DR::value_type receive (void)
 
static void enable (void)
 
static void disable (void)
 
static void enable_interrupt (bool rxne, bool txe=false, bool pe=false, bool tc=false, bool idle=false)
 
static void disable_interrupt (bool rxne, bool txe=false, bool pe=false, bool tc=false, bool idle=false)
 
static void enable_tx_interrupt (void)
 
static void disable_tx_interrupt (void)
 
- Static Public Attributes inherited from mptl::usart_stm32_common< usart_no, system_clock_type >
static constexpr unsigned usart_no
 

Member Typedef Documentation

◆ resources

template<unsigned usart_no, typename system_clock_type , typename gpio_rx_type = void, typename gpio_tx_type = void, freq_t gpio_tx_speed = mhz(50)>
using mptl::usart< usart_no, system_clock_type, gpio_rx_type, gpio_tx_type, gpio_tx_speed >::resources = typelist< typename base_type::resources, typename mpl::usart_gpio_rx_resources< gpio_rx_type >::type, typename mpl::usart_gpio_tx_resources< gpio_tx_type, gpio_tx_speed >::type >

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