|
Smart Knob Controller
|
Class for reading corrected values from an ADC-based Hall effect sensor. More...
#include <hall.h>
Public Member Functions | |
| Hall (ADC_HandleTypeDef *hadc) | |
| Constructs a Hall sensor interface. | |
| int16_t | getReading (uint16_t angle) |
| Returns offset-corrected ADC reading. | |
Class for reading corrected values from an ADC-based Hall effect sensor.
| Hall::Hall | ( | ADC_HandleTypeDef * | hadc | ) |
Constructs a Hall sensor interface.
| hadc | Pointer to the ADC handle used for reading. |
| int16_t Hall::getReading | ( | uint16_t | angle | ) |
Returns offset-corrected ADC reading.
| angle | Current encoder angle to index into offset correction table. |