Lines Matching defs:uart_driver_api
39 __subsystem struct uart_driver_api { struct
43 int (*callback_set)(const struct device *dev, uart_callback_t callback, void *user_data);
45 int (*tx)(const struct device *dev, const uint8_t *buf, size_t len, int32_t timeout);
46 int (*tx_abort)(const struct device *dev);
48 int (*rx_enable)(const struct device *dev, uint8_t *buf, size_t len, int32_t timeout);
49 int (*rx_buf_rsp)(const struct device *dev, uint8_t *buf, size_t len);
50 int (*rx_disable)(const struct device *dev);
53 int (*tx_u16)(const struct device *dev, const uint16_t *buf, size_t len, int32_t timeout);
54 int (*rx_enable_u16)(const struct device *dev, uint16_t *buf, size_t len, int32_t timeout);
55 int (*rx_buf_rsp_u16)(const struct device *dev, uint16_t *buf, size_t len);
61 int (*poll_in)(const struct device *dev, unsigned char *p_char);
62 void (*poll_out)(const struct device *dev, unsigned char out_char);
65 int (*poll_in_u16)(const struct device *dev, uint16_t *p_u16);
66 void (*poll_out_u16)(const struct device *dev, uint16_t out_u16);
70 int (*err_check)(const struct device *dev);
74 int (*configure)(const struct device *dev, const struct uart_config *cfg);
75 int (*config_get)(const struct device *dev, struct uart_config *cfg);
81 int (*fifo_fill)(const struct device *dev, const uint8_t *tx_data, int len);
84 int (*fifo_fill_u16)(const struct device *dev, const uint16_t *tx_data, int len);
88 int (*fifo_read)(const struct device *dev, uint8_t *rx_data, const int size);
91 int (*fifo_read_u16)(const struct device *dev, uint16_t *rx_data, const int size);
95 void (*irq_tx_enable)(const struct device *dev);
98 void (*irq_tx_disable)(const struct device *dev);
101 int (*irq_tx_ready)(const struct device *dev);
104 void (*irq_rx_enable)(const struct device *dev);
107 void (*irq_rx_disable)(const struct device *dev);
110 int (*irq_tx_complete)(const struct device *dev);
113 int (*irq_rx_ready)(const struct device *dev);
116 void (*irq_err_enable)(const struct device *dev);
119 void (*irq_err_disable)(const struct device *dev);
145 const struct uart_driver_api *api = (const struct uart_driver_api *)dev->api; in z_impl_uart_err_check() argument