Hall Switch  2.1.0
C++ library of Infineon single Hall-effect switch family for magnetic sensing applications
hall-pal-wiced.hpp
Go to the documentation of this file.
1 
11 #ifndef HALL_PAL_WICED_HPP_
12 #define HALL_PAL_WICED_HPP_
13 
14 #include "../../../config/hall-conf.hpp"
15 
16 #if (HALL_SWITCH_FRAMEWORK == HALL_SWITCH_FRMWK_WICED)
17 
18 #include "hall-pal-gpio.hpp"
19 #include "wiced_platform.h"
20 
26 class GPIOWiced : virtual public HallSwitch::GPIO
27 {
28  private:
29  #define UNUSED_PIN (wiced_gpio_t)(WICED_GPIO_51 + 1)
30  wiced_gpio_t pin;
31  wiced_gpio_config_t config;
32  VLogic_t logic;
34  public:
35  GPIOWiced (wiced_gpio_t pin,
36  wiced_gpio_config_t config,
37  VLogic_t logic);
38  GPIOWiced ();
39  ~GPIOWiced ();
45  VLevel_t read ();
49 };
50 
53 #endif
54 #endif
HallSwitch::Error_t init()
Initializes the WICED GPIO.
Definition: hall-pal-wiced.cpp:49
HallSwitch::Error_t disable()
Disables the WICED output according to the GPIO logic.
Definition: hall-pal-wiced.cpp:197
HallSwitch::Error_t enable()
Enables the WICED output according to the GPIO logic.
Definition: hall-pal-wiced.cpp:172
Hall Switch GPIO Platform Abstraction Layer.
Error_t
Definition: hall-switch.hpp:30
Definition: hall-pal-wiced.hpp:26
HallSwitch::Error_t disableInt()
Disables the WICED GPIO interrupt.
Definition: hall-pal-wiced.cpp:95
VLevel_t read()
Reads the WICED GPIO voltage level.
Definition: hall-pal-wiced.cpp:134
IntEvent_t intEvent()
Gets the latest WICED interrupt event.
Definition: hall-pal-wiced.cpp:111
HallSwitch::Error_t deinit()
Initializes the WICED GPIO.
Definition: hall-pal-wiced.cpp:64
VLevel_t
Definition: hall-pal-gpio.hpp:39
HallSwitch::Error_t enableInt(HallSwitch *ptr)
Enables the WICED GPIO interrupt.
Definition: hall-pal-wiced.cpp:79
Definition: hall-switch.hpp:22
~GPIOWiced()
GPIO WICED destructor.
Definition: hall-pal-wiced.cpp:37
GPIOWiced()
GPIO WICED default constructor.
Definition: hall-pal-wiced.cpp:28
VLogic_t
Definition: hall-pal-gpio.hpp:50
HallSwitch::Error_t write(VLevel_t level)
Writes the WICED GPIO output voltage level.
Definition: hall-pal-wiced.cpp:146
IntEvent_t
Definition: hall-pal-gpio.hpp:28
Definition: hall-pal-gpio.hpp:20