Files
Cpp-in-Embedded-Systems/Chapter17/fsm/hal/uart/inc/uart.hpp
Amar Mahmutbegovic a1b36d343e add Chapter17
2025-01-11 12:48:14 +01:00

15 lines
219 B
C++

#pragma once
#include <cstdint>
#include <span>
namespace hal
{
class uart
{
public:
virtual void init(std::uint32_t baudrate) = 0;
virtual void write(std::span<const char> data) = 0;
};
}; // namespace hal