17#ifndef ZEPHYR_MODEM_BACKEND_UART_
18#define ZEPHYR_MODEM_BACKEND_UART_
40#ifdef CONFIG_MODEM_BACKEND_UART_ASYNC_HWFC
42struct rx_queue_event {
49 struct k_mem_slab rx_slab;
51 struct rx_queue_event rx_event;
52 struct rx_queue_event rx_queue_buf[CONFIG_MODEM_BACKEND_UART_ASYNC_HWFC_BUFFER_COUNT];
76 struct modem_stats_buffer receive_buf_stats;
77 struct modem_stats_buffer transmit_buf_stats;
long atomic_t
Definition atomic_types.h:15
Public APIs for UART drivers.
struct modem_pipe * modem_backend_uart_init(struct modem_backend_uart *backend, const struct modem_backend_uart_config *config)
__UINT32_TYPE__ uint32_t
Definition stdint.h:90
__UINT8_TYPE__ uint8_t
Definition stdint.h:88
Runtime device structure (in ROM) per driver instance.
Definition device.h:504
Message Queue Structure.
Definition kernel.h:4597
Kernel Spin Lock.
Definition spinlock.h:45
A structure used to submit work after a delay.
Definition kernel.h:4079
A structure used to submit work.
Definition kernel.h:4051
uint32_t transmit_buf_size
Definition uart.h:35
struct k_work rx_disabled_work
Definition uart.h:36
uint8_t * transmit_buf
Definition uart.h:34
atomic_t state
Definition uart.h:37
uint32_t receive_buf_size
Definition uart.h:62
struct modem_backend_uart_async_common common
Definition uart.h:60
uint8_t * receive_bufs[2]
Definition uart.h:61
struct k_spinlock receive_rb_lock
Definition uart.h:64
struct ring_buf receive_rb
Definition uart.h:63
uint32_t receive_buf_size
Definition uart.h:89
uint32_t transmit_buf_size
Definition uart.h:91
const struct device * uart
Definition uart.h:87
uint8_t * transmit_buf
Definition uart.h:90
uint8_t * receive_buf
Definition uart.h:88
atomic_t receive_buf_len
Definition uart.h:28
uint32_t transmit_buf_put_limit
Definition uart.h:30
atomic_t transmit_buf_len
Definition uart.h:27
struct ring_buf transmit_rb
Definition uart.h:26
uint8_t receive_rdb_used
Definition uart.h:29
struct ring_buf receive_rdb[2]
Definition uart.h:25
const struct device * uart
Definition uart.h:70
struct k_work_delayable receive_ready_work
Definition uart.h:72
struct k_work transmit_idle_work
Definition uart.h:73
struct modem_pipe pipe
Definition uart.h:71
A structure to represent a ring buffer.
Definition ring_buffer.h:49