Lines Matching full:const

36 typedef void (*uart_irq_config_func_t)(const struct device *dev);
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);
122 int (*irq_is_pending)(const struct device *dev);
125 int (*irq_update)(const struct device *dev);
128 void (*irq_callback_set)(const struct device *dev, uart_irq_callback_user_data_t cb,
134 int (*line_ctrl_set)(const struct device *dev, uint32_t ctrl, uint32_t val);
135 int (*line_ctrl_get)(const struct device *dev, uint32_t ctrl, uint32_t *val);
139 int (*drv_cmd)(const struct device *dev, uint32_t cmd, uint32_t p);
143 static inline int z_impl_uart_err_check(const struct device *dev) in z_impl_uart_err_check()
145 const struct uart_driver_api *api = (const struct uart_driver_api *)dev->api; in z_impl_uart_err_check()
154 static inline int z_impl_uart_poll_in(const struct device *dev, unsigned char *p_char) in z_impl_uart_poll_in()
156 const struct uart_driver_api *api = (const struct uart_driver_api *)dev->api; in z_impl_uart_poll_in()
165 static inline int z_impl_uart_poll_in_u16(const struct device *dev, uint16_t *p_u16) in z_impl_uart_poll_in_u16()
168 const struct uart_driver_api *api = (const struct uart_driver_api *)dev->api; in z_impl_uart_poll_in_u16()
182 static inline void z_impl_uart_poll_out(const struct device *dev, unsigned char out_char) in z_impl_uart_poll_out()
184 const struct uart_driver_api *api = (const struct uart_driver_api *)dev->api; in z_impl_uart_poll_out()
189 static inline void z_impl_uart_poll_out_u16(const struct device *dev, uint16_t out_u16) in z_impl_uart_poll_out_u16()
192 const struct uart_driver_api *api = (const struct uart_driver_api *)dev->api; in z_impl_uart_poll_out_u16()
201 static inline int z_impl_uart_configure(const struct device *dev, const struct uart_config *cfg) in z_impl_uart_configure()
204 const struct uart_driver_api *api = (const struct uart_driver_api *)dev->api; in z_impl_uart_configure()
217 static inline int z_impl_uart_config_get(const struct device *dev, struct uart_config *cfg) in z_impl_uart_config_get()
220 const struct uart_driver_api *api = (const struct uart_driver_api *)dev->api; in z_impl_uart_config_get()
234 static inline int uart_fifo_fill(const struct device *dev, const uint8_t *tx_data, int size) in uart_fifo_fill()
237 const struct uart_driver_api *api = (const struct uart_driver_api *)dev->api; in uart_fifo_fill()
252 static inline int uart_fifo_fill_u16(const struct device *dev, const uint16_t *tx_data, int size) in uart_fifo_fill_u16()
255 const struct uart_driver_api *api = (const struct uart_driver_api *)dev->api; in uart_fifo_fill_u16()
270 static inline int uart_fifo_read(const struct device *dev, uint8_t *rx_data, const int size) in uart_fifo_read()
273 const struct uart_driver_api *api = (const struct uart_driver_api *)dev->api; in uart_fifo_read()
288 static inline int uart_fifo_read_u16(const struct device *dev, uint16_t *rx_data, const int size) in uart_fifo_read_u16()
291 const struct uart_driver_api *api = (const struct uart_driver_api *)dev->api; in uart_fifo_read_u16()
306 static inline void z_impl_uart_irq_tx_enable(const struct device *dev) in z_impl_uart_irq_tx_enable()
309 const struct uart_driver_api *api = (const struct uart_driver_api *)dev->api; in z_impl_uart_irq_tx_enable()
319 static inline void z_impl_uart_irq_tx_disable(const struct device *dev) in z_impl_uart_irq_tx_disable()
322 const struct uart_driver_api *api = (const struct uart_driver_api *)dev->api; in z_impl_uart_irq_tx_disable()
332 static inline int uart_irq_tx_ready(const struct device *dev) in uart_irq_tx_ready()
335 const struct uart_driver_api *api = (const struct uart_driver_api *)dev->api; in uart_irq_tx_ready()
348 static inline void z_impl_uart_irq_rx_enable(const struct device *dev) in z_impl_uart_irq_rx_enable()
351 const struct uart_driver_api *api = (const struct uart_driver_api *)dev->api; in z_impl_uart_irq_rx_enable()
361 static inline void z_impl_uart_irq_rx_disable(const struct device *dev) in z_impl_uart_irq_rx_disable()
364 const struct uart_driver_api *api = (const struct uart_driver_api *)dev->api; in z_impl_uart_irq_rx_disable()
374 static inline int uart_irq_tx_complete(const struct device *dev) in uart_irq_tx_complete()
377 const struct uart_driver_api *api = (const struct uart_driver_api *)dev->api; in uart_irq_tx_complete()
389 static inline int uart_irq_rx_ready(const struct device *dev) in uart_irq_rx_ready()
392 const struct uart_driver_api *api = (const struct uart_driver_api *)dev->api; in uart_irq_rx_ready()
404 static inline void z_impl_uart_irq_err_enable(const struct device *dev) in z_impl_uart_irq_err_enable()
407 const struct uart_driver_api *api = (const struct uart_driver_api *)dev->api; in z_impl_uart_irq_err_enable()
417 static inline void z_impl_uart_irq_err_disable(const struct device *dev) in z_impl_uart_irq_err_disable()
420 const struct uart_driver_api *api = (const struct uart_driver_api *)dev->api; in z_impl_uart_irq_err_disable()
430 static inline int z_impl_uart_irq_is_pending(const struct device *dev) in z_impl_uart_irq_is_pending()
433 const struct uart_driver_api *api = (const struct uart_driver_api *)dev->api; in z_impl_uart_irq_is_pending()
445 static inline int z_impl_uart_irq_update(const struct device *dev) in z_impl_uart_irq_update()
448 const struct uart_driver_api *api = (const struct uart_driver_api *)dev->api; in z_impl_uart_irq_update()
460 static inline int uart_irq_callback_user_data_set(const struct device *dev, in uart_irq_callback_user_data_set()
464 const struct uart_driver_api *api = (const struct uart_driver_api *)dev->api; in uart_irq_callback_user_data_set()
480 static inline int uart_irq_callback_set(const struct device *dev, uart_irq_callback_user_data_t cb) in uart_irq_callback_set()
485 static inline int uart_callback_set(const struct device *dev, uart_callback_t callback, in uart_callback_set()
489 const struct uart_driver_api *api = (const struct uart_driver_api *)dev->api; in uart_callback_set()
504 static inline int z_impl_uart_tx(const struct device *dev, const uint8_t *buf, size_t len, in z_impl_uart_tx()
509 const struct uart_driver_api *api = (const struct uart_driver_api *)dev->api; in z_impl_uart_tx()
521 static inline int z_impl_uart_tx_u16(const struct device *dev, const uint16_t *buf, size_t len, in z_impl_uart_tx_u16()
526 const struct uart_driver_api *api = (const struct uart_driver_api *)dev->api; in z_impl_uart_tx_u16()
538 static inline int z_impl_uart_tx_abort(const struct device *dev) in z_impl_uart_tx_abort()
541 const struct uart_driver_api *api = (const struct uart_driver_api *)dev->api; in z_impl_uart_tx_abort()
550 static inline int z_impl_uart_rx_enable(const struct device *dev, uint8_t *buf, size_t len, in z_impl_uart_rx_enable()
554 const struct uart_driver_api *api = (const struct uart_driver_api *)dev->api; in z_impl_uart_rx_enable()
566 static inline int z_impl_uart_rx_enable_u16(const struct device *dev, uint16_t *buf, size_t len, in z_impl_uart_rx_enable_u16()
570 const struct uart_driver_api *api = (const struct uart_driver_api *)dev->api; in z_impl_uart_rx_enable_u16()
582 static inline int uart_rx_buf_rsp(const struct device *dev, uint8_t *buf, size_t len) in uart_rx_buf_rsp()
585 const struct uart_driver_api *api = (const struct uart_driver_api *)dev->api; in uart_rx_buf_rsp()
596 static inline int uart_rx_buf_rsp_u16(const struct device *dev, uint16_t *buf, size_t len) in uart_rx_buf_rsp_u16()
599 const struct uart_driver_api *api = (const struct uart_driver_api *)dev->api; in uart_rx_buf_rsp_u16()
610 static inline int z_impl_uart_rx_disable(const struct device *dev) in z_impl_uart_rx_disable()
613 const struct uart_driver_api *api = (const struct uart_driver_api *)dev->api; in z_impl_uart_rx_disable()
622 static inline int z_impl_uart_line_ctrl_set(const struct device *dev, uint32_t ctrl, uint32_t val) in z_impl_uart_line_ctrl_set()
625 const struct uart_driver_api *api = (const struct uart_driver_api *)dev->api; in z_impl_uart_line_ctrl_set()
639 static inline int z_impl_uart_line_ctrl_get(const struct device *dev, uint32_t ctrl, uint32_t *val) in z_impl_uart_line_ctrl_get()
642 const struct uart_driver_api *api = (const struct uart_driver_api *)dev->api; in z_impl_uart_line_ctrl_get()
656 static inline int z_impl_uart_drv_cmd(const struct device *dev, uint32_t cmd, uint32_t p) in z_impl_uart_drv_cmd()
659 const struct uart_driver_api *api = (const struct uart_driver_api *)dev->api; in z_impl_uart_drv_cmd()