31 #include <string_view>
42 template<addr_t BaseAddress>
69 static void receive(std::string &buffer) {
76 if (c ==
'\n' || c ==
'\r')
91 static void receive(std::array<u8, N> &buffer) {
113 for (
char c : buffer) {
129 static void transmit(
const std::array<u8, N> &buffer) {
131 for (
char c : buffer) {
159 static inline auto UE =
typename CR1::template Field<0, 0>();
160 static inline auto RXNE =
typename ISR::template Field<5, 5>();
161 static inline auto TXE =
typename ISR::template Field<7, 7>();
162 static inline auto TC =
typename ISR::template Field<6, 6>();
164 static inline auto RECV =
typename RDR::template Field<0, 7>();
165 static inline auto TRNS =
typename TDR::template Field<0, 7>();