11#include <zephyr/kernel.h>
12#include <zephyr/drivers/gpio.h>
13#include <zephyr/modem/pipe.h>
14#include <zephyr/sys/ring_buffer.h>
Common state for u-blox modem backends.
Definition common.h:23
struct modem_pipe pipe
Communication pipe.
Definition common.h:27
struct k_poll_signal read_result
Signal to notify when FIFO read completes.
Definition common.h:33
uint8_t pipe_memory[CONFIG_GNSS_U_BLOX_PIPE_SIZE]
Backing memory for pipe data stream.
Definition common.h:45
struct k_work_delayable fifo_read
Worker that reads the FIFO.
Definition common.h:31
uint8_t flags
Internal state flags.
Definition common.h:43
struct ring_buf pipe_ring_buf
Ring buffer for holding pipe data stream.
Definition common.h:29
uint16_t bytes_pending
Number of bytes pending on FIFO.
Definition common.h:41
struct k_sem bus_sem
Bus (RTIO SQE) contention semaphore.
Definition common.h:37
struct gpio_callback data_ready_cb
Callback for data ready GPIO.
Definition common.h:35
const struct gpio_dt_spec * data_ready
Pointer to data ready pin configuration.
Definition common.h:25
k_timeout_t poll_period
Duration between polls.
Definition common.h:39