23 template<
size_t N>
void write_array(
const std::array<uint8_t, N> &data) {
34 std::array<uint8_t, N> res;
void write_str(const char *str)
bool peek_byte(uint8_t *data)
virtual bool read_array(uint8_t *data, size_t len)=0
optional< std::array< uint8_t, N > > read_array()
void write_array(const uint8_t *data, size_t len)
void write_byte(uint8_t data)
void write_array(const std::vector< uint8_t > &data)
bool read_byte(uint8_t *data)
void set_uart_parent(UARTComponent *parent)
void check_uart_settings(uint32_t baud_rate, uint8_t stop_bits=1, UARTParityOptions parity=UART_CONFIG_PARITY_NONE, uint8_t data_bits=8)
Check that the configuration of the UART bus matches the provided values and otherwise print a warnin...
virtual int available()=0
bool read_byte(uint8_t *data)
UARTDevice(UARTComponent *parent)
virtual bool peek_byte(uint8_t *data)=0
bool read_array(uint8_t *data, size_t len)
void write_str(const char *str)
void write_byte(uint8_t data)
Implementation of SPI Controller mode.
void write_array(const std::array< uint8_t, N > &data)
size_t write(uint8_t data)
void write_array(const std::vector< uint8_t > &data)