#include <usart.hpp>
|
static constexpr unsigned | usart_no = _usart_no |
|
◆ baud_rate
template<unsigned _usart_no, typename system_clock_type >
template<unsigned value>
◆ clock_enable
template<unsigned _usart_no, typename system_clock_type >
◆ enable_rx
template<unsigned _usart_no, typename system_clock_type >
◆ enable_tx
template<unsigned _usart_no, typename system_clock_type >
◆ irq
template<unsigned _usart_no, typename system_clock_type >
◆ last_bit_clock_pulse
template<unsigned _usart_no, typename system_clock_type >
◆ resources
template<unsigned _usart_no, typename system_clock_type >
◆ stop_bits
template<unsigned _usart_no, typename system_clock_type >
template<unsigned a, unsigned b = 0>
◆ USARTx
template<unsigned _usart_no, typename system_clock_type >
◆ word_length
template<unsigned _usart_no, typename system_clock_type >
template<unsigned value>
◆ baud_to_brr()
template<unsigned _usart_no, typename system_clock_type >
static USARTx::BRR::value_type mptl::usart_stm32_common< _usart_no, system_clock_type >::baud_to_brr |
( |
unsigned |
baud_rate | ) |
|
|
inlinestatic |
◆ configure()
template<unsigned _usart_no, typename system_clock_type >
template<typename... Tp>
NOTE: make sure no communication is ongoing when calling this function.
◆ disable()
template<unsigned _usart_no, typename system_clock_type >
◆ disable_interrupt()
template<unsigned _usart_no, typename system_clock_type >
static void mptl::usart_stm32_common< _usart_no, system_clock_type >::disable_interrupt |
( |
bool |
rxne, |
|
|
bool |
txe = false , |
|
|
bool |
pe = false , |
|
|
bool |
tc = false , |
|
|
bool |
idle = false |
|
) |
| |
|
inlinestatic |
- Parameters
-
rxne | read data register not empty interrupt |
txe | transmitter data register empty interrupt |
pe | parity error interrupt |
tc | transmission complete interrupt |
idle | idle interrupt |
◆ disable_tx_interrupt()
template<unsigned _usart_no, typename system_clock_type >
◆ enable()
template<unsigned _usart_no, typename system_clock_type >
◆ enable_interrupt()
template<unsigned _usart_no, typename system_clock_type >
static void mptl::usart_stm32_common< _usart_no, system_clock_type >::enable_interrupt |
( |
bool |
rxne, |
|
|
bool |
txe = false , |
|
|
bool |
pe = false , |
|
|
bool |
tc = false , |
|
|
bool |
idle = false |
|
) |
| |
|
inlinestatic |
- Parameters
-
rxne | read data register not empty interrupt |
txe | transmitter data register empty interrupt |
pe | parity error interrupt |
tc | transmission complete interrupt |
idle | idle interrupt |
◆ enable_tx_interrupt()
template<unsigned _usart_no, typename system_clock_type >
◆ receive()
template<unsigned _usart_no, typename system_clock_type >
◆ send()
template<unsigned _usart_no, typename system_clock_type >
◆ set_baudrate()
template<unsigned _usart_no, typename system_clock_type >
NOTE: make sure no communication is ongoing when calling this function.
◆ usart_no
template<unsigned _usart_no, typename system_clock_type >
The documentation for this class was generated from the following file: