31 #ifndef IOTBUS_UART_H_ 32 #define IOTBUS_UART_H_ 45 IOTBUS_UART_PARITY_NONE = 0,
46 IOTBUS_UART_PARITY_EVEN,
47 IOTBUS_UART_PARITY_ODD,
50 struct _iotbus_uart_s;
int iotbus_uart_stop(iotbus_uart_context_h hnd)
closes uart_context.
int iotbus_uart_set_baudrate(iotbus_uart_context_h hnd, unsigned int baud)
sets uart baud rate.
iotbus_uart_parity_e
Enumeration of UART parity type.
int iotbus_uart_write(iotbus_uart_context_h hnd, const char *buf, unsigned int length)
writes data over uart bus.
struct _iotbus_uart_s * iotbus_uart_context_h
Pointer definition to the internal struct _iotbus_uart_s.
int iotbus_uart_set_flowcontrol(iotbus_uart_context_h hnd, int xonxoff, int rtscts)
set flow control settings.
int iotbus_uart_read(iotbus_uart_context_h hnd, char *buf, unsigned int length)
reads data over uart bus.
int iotbus_uart_flush(iotbus_uart_context_h hnd)
flushes uart buffer.
int iotbus_uart_set_mode(iotbus_uart_context_h hnd, int bytesize, iotbus_uart_parity_e parity, int stopbits)
sets byte size, parity bit and stop bits.
iotbus_uart_context_h iotbus_uart_init(const char *path)
initializes uart_context.