7 #ifndef UBIDRV_UART_IO_H_
8 #define UBIDRV_UART_IO_H_
23 #include <ubinos_config.h>
40 ubi_st_t ubidrv_uart_io_read(
int fd, uint8_t *buffer, uint32_t length, uint32_t *read);
59 ubi_st_t ubidrv_uart_io_read_timedms(
int fd, uint8_t *buffer, uint32_t length, uint32_t *read, uint32_t timeoutms, uint32_t *remain_timeoutms);
74 ubi_st_t ubidrv_uart_io_write(
int fd, uint8_t *buffer, uint32_t length, uint32_t *written);
93 ubi_st_t ubidrv_uart_io_write_timedms(
int fd, uint8_t *buffer, uint32_t length, uint32_t *written, uint32_t timeoutms, uint32_t *remain_timeoutms);
102 ubi_st_t ubidrv_uart_io_read_buf_clear(
int fd);
115 ubi_st_t ubidrv_uart_io_read_buf_clear_timedms(
int fd, uint32_t timeoutms, uint32_t *remain_timeoutms);
124 ubi_st_t ubidrv_uart_io_flush(
int fd);
137 ubi_st_t ubidrv_uart_io_flush_timedms(
int fd, uint32_t timeoutms, uint32_t *remain_timeoutms);
ubi_st_t
Definition: type.h:140