Go to the source code of this file.
|
#define | AD8232_DEFAULT_AREF 3.3 |
|
◆ ad8232_init()
ad8232_context ad8232_init |
( |
int |
lo_plus, |
|
|
int |
lo_minus, |
|
|
int |
output, |
|
|
float |
a_ref |
|
) |
| |
Sensor init function
- Parameters
-
lo_plus | Digital pin to use for LO+ |
lo_minus | Digital pin to use for LO- |
output | Analog pin to read the data |
a_ref | Analog voltage reference |
◆ ad8232_close()
◆ ad8232_get_value()
Returns the current ADC value for the device output pin. If an LO (leads off) event is detected, 0 is returned.
- Parameters
-
dev | sensor context pointer |
value | ADC value |
- Returns
- result status code
◆ ad8232_context