10 #ifndef HALL_SWITCH_HPP_ 11 #define HALL_SWITCH_HPP_ Definition: hall-switch.hpp:33
CBack_t cBack
Definition: hall-switch.hpp:122
Definition: hall-switch.hpp:57
Error_t init()
Initializes the hardware interfaces.
Definition: hall-switch.cpp:90
Status_t getStatus()
Gets the sensor status.
Definition: hall-switch.cpp:241
MeasMode_t
Definition: hall-switch.hpp:66
Definition: hall-switch.hpp:34
Definition: hall-switch-int.hpp:15
Error_t
Definition: hall-switch.hpp:30
Error_t disable()
Disables the sensor.
Definition: hall-switch.cpp:188
Definition: hall-switch.hpp:45
Status_t
Definition: hall-switch.hpp:53
Result_t
Definition: hall-switch.hpp:77
GPIO * output
Definition: hall-switch.hpp:119
virtual void callback()
Interrupt mode callback function.
Definition: hall-switch.cpp:272
Definition: hall-switch.hpp:44
Error_t updateBField()
Updates instance magnetic field value.
Definition: hall-switch.cpp:221
HallSwitch()
Hall Switch Default Constructor.
Definition: hall-switch.cpp:19
void(* CBack_t)(Result_t)
Callback function type for interrupt mode.
Definition: hall-switch.hpp:91
Result_t getBField()
Gets magnetic field.
Definition: hall-switch.cpp:258
Definition: hall-switch.hpp:58
Definition: hall-switch.hpp:80
Error_t deinit()
Deinitializes the hardware interfaces.
Definition: hall-switch.cpp:122
~HallSwitch()
Hall Switch Destructor Disables the sensor:
Definition: hall-switch.cpp:75
Definition: hall-switch.hpp:81
Definition: hall-switch.hpp:68
Definition: hall-switch.hpp:32
Definition: hall-switch.hpp:56
MeasMode_t measMode
Definition: hall-switch.hpp:123
Status_t status
Definition: hall-switch.hpp:118
Result_t bfieldVal
Definition: hall-switch.hpp:120
Definition: hall-switch.hpp:22
Definition: hall-switch.hpp:79
PowerMode_t powerMode
Definition: hall-switch.hpp:126
Error_t enable()
Enables the sensor.
Definition: hall-switch.cpp:157
GPIO * power
Definition: hall-switch.hpp:125
Definition: hall-switch.hpp:69
Definition: hall-switch.hpp:55
Definition: hall-pal-gpio.hpp:20
PowerMode_t
Definition: hall-switch.hpp:42