docs/ads1115: Add trigger commands to documentation
Updates the ADS1115 documentation with information about the two new commands for triggering conversion and reading the result. Signed-off-by: Matteo Golin <matteo.golin@gmail.com>
This commit is contained in:
parent
4030eb892e
commit
953ab4e287
1 changed files with 10 additions and 0 deletions
|
|
@ -235,3 +235,13 @@ of type uint16_t, which corresponds to the LOW_THRESH register value.
|
|||
|
||||
This command reads a value from a specific channel of the ADS1115. The argument passed should
|
||||
be a pointer to a struct adc_msg_s.
|
||||
|
||||
.. c:macro:: ANIOC_ADS1115_TRIGGER_CONVERSION
|
||||
|
||||
This command triggers an analog conversion on the ADS1115. The argument passed should be a pointer to a ``struct
|
||||
adc_msg_s``, where the member ``am_channel`` is initialized to the channel number the conversion should be started for.
|
||||
|
||||
.. c:macro:: ANIOC_ADS1115_READ_CHANNEL_NO_CONVERSION
|
||||
|
||||
This command reads the result of the last conversion on the ADS1115. The argument passed should be a pointer to a
|
||||
``struct adc_msg_s``, where the result of the conversion will be stored.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue