no-OS
Loading...
Searching...
No Matches
maxm86161_iio_desc Struct Reference

#include <iio_maxm86161.h>

Public Attributes

uint8_t fifo_read_buf [MAXM86161_FIFO_DEPTH *MAXM86161_FIFO_DATA_SIZE]
 
struct no_os_circular_buffer * fifo_buf
 
struct maxm86161_dev * drv_dev
 
struct iio_device * iio_dev
 
struct no_os_irq_ctrl_desc * irq_ctrl
 
uint32_t irq_id
 
uint32_t samples_available
 
uint32_t sample_ovf_count
 
uint32_t fifo_ovf_count
 
void * samples_lock
 
bool data_capture
 

Member Data Documentation

◆ data_capture

bool maxm86161_iio_desc::data_capture

True while a libiio client is actively streaming.

◆ drv_dev

struct maxm86161_dev* maxm86161_iio_desc::drv_dev

Underlying MAXM86161 driver device.

◆ fifo_buf

struct no_os_circular_buffer* maxm86161_iio_desc::fifo_buf

Circular buffer bridging the INTB handler and the submit callback.

◆ fifo_ovf_count

uint32_t maxm86161_iio_desc::fifo_ovf_count

Samples lost due to hardware FIFO overflow (device-side).

◆ fifo_read_buf

uint8_t maxm86161_iio_desc::fifo_read_buf[MAXM86161_FIFO_DEPTH *MAXM86161_FIFO_DATA_SIZE]

Scratch buffer for one FIFO drain in the INTB handler.

◆ iio_dev

struct iio_device* maxm86161_iio_desc::iio_dev

IIO device structure registered with the IIO framework.

◆ irq_ctrl

struct no_os_irq_ctrl_desc* maxm86161_iio_desc::irq_ctrl

IRQ controller — used to gate the INTB line during buffer resets.

◆ irq_id

uint32_t maxm86161_iio_desc::irq_id

IRQ id for the INTB line.

◆ sample_ovf_count

uint32_t maxm86161_iio_desc::sample_ovf_count

Samples dropped from buffer due to software overflow

◆ samples_available

uint32_t maxm86161_iio_desc::samples_available

Number of decoded samples currently queued in fifo_buf.

◆ samples_lock

void* maxm86161_iio_desc::samples_lock

Mutex guarding samples_available across IRQ/submit contexts.


The documentation for this struct was generated from the following file: