nuttx/drivers/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
..
ad5410.c sourcefiles: Fix relative path in file header 2021-03-09 23:18:28 +08:00
adc.c adc: add IOCTL commands ANIOC_RESET_FIFO and ANIOC_SAMPLES_ON_READ 2021-08-06 21:10:59 -07:00
ads1242.c Include assert.h in necessary place 2021-06-08 13:06:08 -07:00
ads1255.c sourcefiles: Fix relative path in file header 2021-03-09 23:18:28 +08:00
ads7828.c Kernel module should prefer functions with nx/kmm prefix 2021-01-13 08:57:58 +01:00
comp.c Don't include assert.h from public header file 2021-06-03 08:36:03 -07:00
dac7554.c Don't include assert.h from public header file 2021-06-03 08:36:03 -07:00
dac7571.c Don't include assert.h from public header file 2021-06-03 08:36:03 -07:00
dac.c drivers/: Fix some drivers mode priviliges. It's not used but it's 2020-06-12 17:51:23 -03:00
Kconfig Support for MAX1161X family of I2C 12 bit ADC chips: 2020-11-15 05:59:01 -08:00
lmp92001.c Don't include assert.h from public header file 2021-06-03 08:36:03 -07:00
ltc1867l.c NuttX: DS Automotion GmbH: update licenses to Apache 2021-04-01 12:13:12 -05:00
Make.defs drivers: Author Gregory Nutt: update licenses to Apache 2021-03-04 18:32:27 -08:00
max1161x.c drivers: Fix typos reported by codespell 2021-02-25 18:57:18 -08:00
opamp.c drivers: Changed headers for apache 2.0 license 2020-10-10 12:24:28 -06:00
pga11x.c drivers: nxstyle fixes 2021-03-04 18:32:27 -08:00