Files
Cpp-in-Embedded-Systems/Chapter13/uart_c_hal_wrapper/hal/uart/inc/uart.hpp
Amar Mahmutbegovic 60b08160ba add Chapter13
2024-11-03 14:41:27 +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