178 const char **devpath,
184 unsigned int* rtscts,
185 unsigned int* xonxoff);
203 int mraa_uart_read(mraa_uart_context dev,
char* buf,
size_t length);
213 int mraa_uart_write(mraa_uart_context dev,
const char* buf,
size_t length);
mraa_uart_parity_t
Definition: types.h:255
unsigned int mraa_boolean_t
Definition: common.h:78
int mraa_uart_write(mraa_uart_context dev, const char *buf, size_t length)
struct _uart * mraa_uart_context
Definition: uart.h:49
mraa_result_t mraa_uart_stop(mraa_uart_context dev)
mraa_result_t mraa_uart_sendbreak(mraa_uart_context dev, int duration)
mraa_result_t mraa_uart_set_flowcontrol(mraa_uart_context dev, mraa_boolean_t xonxoff, mraa_boolean_t rtscts)
mraa_result_t mraa_uart_flush(mraa_uart_context dev)
mraa_result_t mraa_uart_settings(int index, const char **devpath, const char **name, int *baudrate, int *databits, int *stopbits, mraa_uart_parity_t *parity, unsigned int *rtscts, unsigned int *xonxoff)
mraa_uart_context mraa_uart_init_raw(const char *path)
mraa_boolean_t mraa_uart_data_available(mraa_uart_context dev, unsigned int millis)
const char * mraa_uart_get_dev_path(mraa_uart_context dev)
mraa_result_t mraa_uart_set_mode(mraa_uart_context dev, int bytesize, mraa_uart_parity_t parity, int stopbits)
int mraa_uart_read(mraa_uart_context dev, char *buf, size_t length)
mraa_uart_context mraa_uart_init(int uart)
mraa_result_t
Definition: types.h:209
mraa_result_t mraa_uart_set_non_blocking(mraa_uart_context dev, mraa_boolean_t nonblock)
mraa_result_t mraa_uart_set_timeout(mraa_uart_context dev, int read, int write, int interchar)
mraa_result_t mraa_uart_set_baudrate(mraa_uart_context dev, unsigned int baud)