You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by GitBox <gi...@apache.org> on 2021/08/05 10:57:33 UTC

[GitHub] [incubator-nuttx] michallenc opened a new pull request #4288: adc: add IOCTL commands ANIOC_RESET_FIFO and ANIOC_SAMPLES_ON_READ

michallenc opened a new pull request #4288:
URL: https://github.com/apache/incubator-nuttx/pull/4288


   ## Summary
   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.
   
   ## Impact
   ADC driver, no impact for current applications.
   
   ## Testing
   Tested on Teensy 4.1
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [incubator-nuttx] xiaoxiang781216 merged pull request #4288: adc: add IOCTL commands ANIOC_RESET_FIFO and ANIOC_SAMPLES_ON_READ

Posted by GitBox <gi...@apache.org>.
xiaoxiang781216 merged pull request #4288:
URL: https://github.com/apache/incubator-nuttx/pull/4288


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org