Hall Switch  2.1.0
C++ library of Infineon single Hall-effect switch family for magnetic sensing applications
hall-switch-rpi.hpp
Go to the documentation of this file.
1 
10 #ifndef HALL_SWITCH_RPI_H_
11 #define HALL_SWITCH_RPI_H_
12 
13 #include "../../../config/hall-conf.hpp"
14 
15 #if (HALL_SWITCH_FRAMEWORK == HALL_SWITCH_FRMWK_RPI)
16 
17 #include <stdint.h>
18 #include "hall-switch.hpp"
19 #include "hall-platf-rpi.hpp"
20 
26 class HallSwitchRpi : public HallSwitch
27 {
28  public:
29 
30  HallSwitchRpi( uint8_t outputPin,
31  CBack_t cBack = NULL,
32  uint8_t powerPin = UNUSED_PIN);
33 
35  CBack_t cBack = NULL);
36 
37 };
38 
41 #endif
42 #endif
Hall Switch API.
CBack_t cBack
Definition: hall-switch.hpp:122
HallSwitchRpi(uint8_t outputPin, CBack_t cBack=NULL, uint8_t powerPin=UNUSED_PIN)
Hall switch Raspberry Pi instance constructor with Raspberry Pi pins.
Definition: hall-switch-rpi.cpp:30
Definition: hall-switch-rpi.hpp:26
void(* CBack_t)(Result_t)
Callback function type for interrupt mode.
Definition: hall-switch.hpp:91
Definition: hall-switch.hpp:22
Raspberry Pi Hardware Platform Pins.
Definition: hall-platf-rpi.hpp:25
Hall Raspberry Pi Hardware Platforms.