#include "string.hpp" namespace serial { void init(uint8_t bit_rate); void character(const char c); void string(const char * s); void string(const uint8_t * s, uint32_t len); void hexlify(const uint8_t n); using hex = string::hex_type; using dec = string::dec_type; template void integer(const T n, const char end, const uint32_t length); template inline void integer(const T n, const char end) { constexpr uint32_t length = (sizeof (T)) * 2; return integer(n, end, length); } template inline void integer(const T n) { return integer(n, '\n'); } }