mirror of
https://github.com/apache/nuttx.git
synced 2026-09-28 18:13:53 +00:00
analog: add ANIOC_COMP_ENABLE and ANIOC_COMP_DISABLE commands
Define standard IOCTL commands to enable and disable analog comparator devices from user-space applications. Assisted-by: Gemini:gemini-2.5-pro Signed-off-by: Daniel P. Carvalho <danieloak@gmail.com>
This commit is contained in:
parent
66703d0957
commit
fc9fec46da
1 changed files with 10 additions and 1 deletions
|
|
@ -86,8 +86,17 @@
|
|||
* IN: None
|
||||
* OUT: struct dac_info_s * */
|
||||
|
||||
/* COMP */
|
||||
|
||||
#define ANIOC_COMP_ENABLE _ANIOC(0x000d) /* Enable comparator
|
||||
* IN: None
|
||||
* OUT: None */
|
||||
#define ANIOC_COMP_DISABLE _ANIOC(0x000e) /* Disable comparator
|
||||
* IN: None
|
||||
* OUT: None */
|
||||
|
||||
#define AN_FIRST 0x0001 /* First common command */
|
||||
#define AN_NCMDS 12 /* Number of common commands */
|
||||
#define AN_NCMDS 14 /* Number of common commands */
|
||||
|
||||
/* User defined ioctl commands are also supported. These will be forwarded
|
||||
* by the upper-half driver to the lower-half driver via the ioctl()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue