Potentiometer module implements functions to obtain the relative position in a scale from 0% to 100%.
| #define POTENTIOMETER_ADC_INSTANCE |
ADC instance for the potentiometer input.
| #define POTENTIOMETER_ADC_RESOLUTION |
Expanded ADC resolution (2^n)
Potentiometer driver status.
| Enumerator |
|---|
| kPotentiometerOk |
No error.
|
| kPotentiometerInitError |
Initialization error.
|
| kPotentiometerConversionStartError |
Error starting the channel conversion.
|
| uint8_t potentiometer_get_position |
( |
void |
| ) |
|
Returns the current potentiometer position in percentage
- Parameters
-
- Returns
- Potentiometer position in percentage (from 0 % to 100 %)