mirror of
https://github.com/eclipse/upm.git
synced 2025-07-01 01:11:10 +03:00
docs: updated @param tags, added missing function descriptions, other minor changes
Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
This commit is contained in:
@ -58,12 +58,28 @@ typedef struct _ad8232_context {
|
||||
} *ad8232_context;
|
||||
|
||||
/**
|
||||
* Sensor Init function
|
||||
* Sensor init function
|
||||
*
|
||||
* @param lo_plus Digital pin to use for LO+
|
||||
* @param lo_minus Digital pin to use for LO-
|
||||
* @param output Analog pin to read the data
|
||||
* @param a_ref Analog voltage reference
|
||||
*/
|
||||
ad8232_context ad8232_init(int lo_plus, int lo_minus, int output, float a_ref);
|
||||
|
||||
/**
|
||||
* Sensor destructor
|
||||
*/
|
||||
void ad8232_close(ad8232_context dev);
|
||||
|
||||
/**
|
||||
* Returns the current ADC value for the device output pin. If an
|
||||
* LO (leads off) event is detected, 0 is returned.
|
||||
*
|
||||
* @param dev sensor context pointer
|
||||
* @param value ADC value
|
||||
* @return result status code
|
||||
*/
|
||||
upm_result_t ad8232_get_value(ad8232_context dev, int* value);
|
||||
|
||||
#endif /* AD8232_H_ */
|
@ -80,6 +80,7 @@ namespace upm {
|
||||
* @param loPlus Digital pin to use for LO+
|
||||
* @param loMinus Digital pin to use for LO-
|
||||
* @param output Analog pin to read the data
|
||||
* @param aref Analog voltage reference
|
||||
*/
|
||||
AD8232(int loPlus, int loMinus, int output, float aref=AD8232_DEFAULT_AREF);
|
||||
|
||||
|
Reference in New Issue
Block a user