#include <hall-pal-wiced.hpp>
| GPIOWiced::GPIOWiced |
( |
wiced_gpio_t |
pin, |
|
|
wiced_gpio_config_t |
config, |
|
|
VLogic_t |
logic |
|
) |
| |
GPIO WICED default constructor.
GPIO WICED default constructor.
| GPIOWiced::~GPIOWiced |
( |
| ) |
|
Initializes the WICED GPIO.
- Returns
- GPIO error code
- Return values
-
| OK | if success |
| INTF_ERROR | if initialization error |
Implements HallSwitch::GPIO.
Initializes the WICED GPIO.
- Returns
- GPIO error code
- Return values
-
| OK | if success |
| INTF_ERROR | if deinitialization error |
Implements HallSwitch::GPIO.
Enables the WICED GPIO interrupt.
- Returns
- GPIO error code
- Return values
-
| OK | if success |
| INTF_ERROR | if error |
Implements HallSwitch::GPIO.
Disables the WICED GPIO interrupt.
- Returns
- GPIO error code
- Return values
-
| OK | if success |
| INTF_ERROR | if error |
Implements HallSwitch::GPIO.
Gets the latest WICED interrupt event.
- Returns
- GPIO interrupt event
- Return values
-
| INT_FALLING_EDGE | if falling edge event |
| INT_RISING_EDGE | if rising edge event |
Implements HallSwitch::GPIO.
Reads the WICED GPIO voltage level.
- Returns
- GPIO voltage level
- Return values
-
| GPIO_LOW | if voltage low |
| GPIO_HIGH | if voltage high |
Implements HallSwitch::GPIO.
Writes the WICED GPIO output voltage level.
- Parameters
-
- Returns
- GPIO error code
- Return values
-
| OK | if success |
| INTF_ERROR | if error |
Implements HallSwitch::GPIO.
Enables the WICED output according to the GPIO logic.
- Low if negative
- High if positive
- Returns
- GPIO interrupt event
- Return values
-
| OK | if success |
| INTF_ERROR | if error |
Implements HallSwitch::GPIO.
Disables the WICED output according to the GPIO logic.
- Low if positive
- High if negative
- Returns
- GPIO error code
- Return values
-
| OK | if success |
| INTF_ERROR | if error |
Implements HallSwitch::GPIO.
The documentation for this class was generated from the following files: