1#ifndef MAGNETICSENSORPWM_LIB_H
2#define MAGNETICSENSORPWM_LIB_H
5#include "../common/base_classes/Sensor.h"
6#include "../common/foc_utils.h"
7#include "../common/time_utils.h"
29 MagneticSensorPWM(uint8_t _pinPWM,
int freqHz,
int _total_pwm_clocks,
int _min_pwm_clocks,
int _max_pwm_clocks);
57 bool is_interrupt_based;
68 unsigned long last_call_us;
70 unsigned long pulse_timestamp;
float getSensorAngle() override
void enableInterrupt(void(*doPWM)())
unsigned long pulse_length_us