incubator-nuttx/include/nuttx/analog
Michal Lenc 87c5cc1a5d adc: add IOCTL commands ANIOC_RESET_FIFO and ANIOC_SAMPLES_ON_READ
This commit adds two new IOCTL commnands for ADC driver. Command
ANIOC_RESET_FIFO resets FIFO head and tail which causes the driver
to wait for the new data to be received. Calling this command before
reading ADC data in user space ensures that the read data are newly
sampled.

Command ANIOC_SAMPLES_ON_READ return the number of read channels in
the buffer. This can be useful in nonblocking mode when the application
needs to get the samples received before the app was started.

Both IOCTL commands are used only in generic driver section only and do
not have any effect on existing architecture specific drivers.

Signed-off-by: Michal Lenc <michallenc@seznam.cz>
2021-08-06 21:10:59 -07:00
..
adc.h stm32h7 fix adc port to handle overrun and the DR's fifo, adapt adc driver 2021-06-16 04:58:06 -07:00
ads1242.h NuttX: DS Automotion GmbH: update licenses to Apache 2021-04-01 12:13:12 -05:00
ads7828.h
comp.h NuttX: Mateusz Tomasz Szafoni: update licenses to Apache 2021-04-01 12:13:12 -05:00
dac.h
ioctl.h adc: add IOCTL commands ANIOC_RESET_FIFO and ANIOC_SAMPLES_ON_READ 2021-08-06 21:10:59 -07:00
lmp92001.h
ltc1867l.h NuttX: DS Automotion GmbH: update licenses to Apache 2021-04-01 12:13:12 -05:00
max1161x.h
opamp.h
pga11x.h