Hall Switch 2.1.0
C++ library of Infineon single Hall-effect switch family for magnetic sensing applications
 
Loading...
Searching...
No Matches
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
26class 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 ();
44 IntEvent_t intEvent ();
45 VLevel_t read ();
46 HallSwitch::Error_t write (VLevel_t level);
49};
50
53#endif
54#endif
Definition hall-pal-wiced.hpp:27
HallSwitch::Error_t write(VLevel_t level)
Writes the WICED GPIO output voltage level.
Definition hall-pal-wiced.cpp:146
HallSwitch::Error_t disable()
Disables the WICED output according to the GPIO logic.
Definition hall-pal-wiced.cpp:197
IntEvent_t intEvent()
Gets the latest WICED interrupt event.
Definition hall-pal-wiced.cpp:111
GPIOWiced()
GPIO WICED default constructor.
Definition hall-pal-wiced.cpp:28
~GPIOWiced()
GPIO WICED destructor.
Definition hall-pal-wiced.cpp:37
HallSwitch::Error_t enable()
Enables the WICED output according to the GPIO logic.
Definition hall-pal-wiced.cpp:172
HallSwitch::Error_t enableInt(HallSwitch *ptr)
Enables the WICED GPIO interrupt.
Definition hall-pal-wiced.cpp:79
HallSwitch::Error_t init()
Initializes the WICED GPIO.
Definition hall-pal-wiced.cpp:49
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
HallSwitch::Error_t deinit()
Initializes the WICED GPIO.
Definition hall-pal-wiced.cpp:64
Definition hall-switch.hpp:23
Error_t
Definition hall-switch.hpp:31
Hall Switch GPIO Platform Abstraction Layer.