Added basic layout for new library implementation
This commit is contained in:
30
hardware0.hpp
Normal file
30
hardware0.hpp
Normal file
@@ -0,0 +1,30 @@
|
||||
#pragma once
|
||||
|
||||
#include "settings.hpp"
|
||||
|
||||
namespace uart {
|
||||
namespace detail {
|
||||
|
||||
template <class settings, const Mode mode>
|
||||
class hardware0 {
|
||||
public:
|
||||
using data_t = typename settings::data_t;
|
||||
static constexpr auto BAUD_RATE = settings::BAUD_RATE;
|
||||
static constexpr auto DATA_BITS = settings::DATA_BITS;
|
||||
static constexpr auto PARITY = settings::PARITY;
|
||||
static constexpr auto STOP_BITS = settings::STOP_BITS;
|
||||
|
||||
static void init() {}
|
||||
|
||||
static void txByte(data_t byte)
|
||||
{
|
||||
static_cast<void>(byte);
|
||||
}
|
||||
|
||||
static data_t rxByte() {}
|
||||
|
||||
static data_t peek() {}
|
||||
};
|
||||
|
||||
} // namespace detail
|
||||
} // namespace uart
|
||||
Reference in New Issue
Block a user