Hall Switch 2.1.0
C++ library of Infineon single Hall-effect switch family for magnetic sensing applications
 
Loading...
Searching...
No Matches
hall-switch-ino.hpp
Go to the documentation of this file.
1
10#ifndef HALL_SWITCH_INO_HPP_
11#define HALL_SWITCH_INO_HPP_
12
13#include "config/hall-conf.hpp"
14
15#if (HALL_SWITCH_FRAMEWORK == HALL_SWITCH_FRMWK_ARDUINO)
16
19
26{
27 public:
28
29
30 HallSwitchIno (uint8_t outputPin,
31 HallSwitch::CBack_t cBack = NULL,
32 uint8_t powerPin = UNUSED_PIN);
34 HallSwitch::CBack_t cBack = NULL);
36 int begin ();
37 int end ();
38 int getBField ();
39
40
41 private:
42 HallSwitch sw;
43};
44
47#endif
48#endif
Definition hall-switch-ino.hpp:26
int begin()
Begins the switch.
Definition hall-switch-ino.cpp:71
int end()
Ends the switch.
Definition hall-switch-ino.cpp:89
~HallSwitchIno()
Hall Switch Ino Destructor
Definition hall-switch-ino.cpp:60
int getBField()
Gets the switch output value.
Definition hall-switch-ino.cpp:108
Definition hall-switch.hpp:23
void(* CBack_t)(Result_t)
Callback function type for interrupt mode.
Definition hall-switch.hpp:91
Hall Switch Library Configuration.
Hall Arduino Hardware Platforms.
Hall Switch API.
Arduino Hardware Platform Pins.
Definition hall-platf-ino.hpp:26