5 #ifndef ARUNA_POSIX_UART 6 #define ARUNA_POSIX_UART 73 size_t _write(uint8_t *data,
size_t dataSize)
override;
75 size_t _read(uint8_t *buffer,
size_t buffer_size)
override;
89 #endif //ARUNA_POSIX_UART err_t set_options(struct termios *options)
Set options to the file description of the UART.
err_t canonical_input()
Set input to Canonical.
err_t processed_output()
Process output before sending it (enabled c_oflag)
err_t _set_word_length(word_length_t word_length) override
Set UART data bits length.
err_t _set_parity(parity_t parity_bit) override
Set parity bit.
uint32_t _set_baudrate(uint32_t new_baudrate) override
Set baudrate of the UART.
size_t _write(uint8_t *data, size_t dataSize) override
write data to the link/bus.
aruna::log::channel_t * log
size_t _read(uint8_t *buffer, size_t buffer_size) override
Read bytes and out them in the buffer.
POSIX_UART(char *port, uint32_t baudrate)
err_t get_options(struct termios *options)
Get options of the file description UART device.
err_t raw_output()
Disabled output processing (disabled c_oflag)
err_t _set_stop_bit(stop_bit_t stop_bit) override
set stop bit
err_t map_NL_to_CRNL()
Map Newline to CR-NL for output.
err_t _set_flowcontrol(flowcontrol_t new_flowcontrol) override
Set software or hardware flowcontrol.
static const comm::port_t port
err_t raw_input()
Set input to raw.