|
OpenMPTL - STM32F10X
C++ Microprocessor Template Library
|
#include <usart.hpp>
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_no > | USARTx |
| typedef irq::usart< usart_no > | irq |
| typedef rcc_usart_clock_resources< usart_no > | resources |
| 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 |
| 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 > |
1.8.13