#include <hall-pal-wiced.hpp>
◆ GPIOWiced() [1/2]
| GPIOWiced::GPIOWiced |
( |
wiced_gpio_t |
pin, |
|
|
wiced_gpio_config_t |
config, |
|
|
VLogic_t |
logic |
|
) |
| |
GPIO WICED default constructor.
◆ GPIOWiced() [2/2]
GPIO WICED default constructor.
◆ ~GPIOWiced()
| GPIOWiced::~GPIOWiced |
( |
| ) |
|
◆ init()
Initializes the WICED GPIO.
- Returns
- GPIO error code
- Return values
-
| OK | if success |
| INTF_ERROR | if initialization error |
◆ deinit()
Initializes the WICED GPIO.
- Returns
- GPIO error code
- Return values
-
| OK | if success |
| INTF_ERROR | if deinitialization error |
◆ enableInt()
Enables the WICED GPIO interrupt.
- Returns
- GPIO error code
- Return values
-
| OK | if success |
| INTF_ERROR | if error |
◆ disableInt()
Disables the WICED GPIO interrupt.
- Returns
- GPIO error code
- Return values
-
| OK | if success |
| INTF_ERROR | if error |
◆ intEvent()
| GPIOWiced::IntEvent_t GPIOWiced::intEvent |
( |
| ) |
|
|
inline |
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 |
◆ read()
| GPIOWiced::VLevel_t GPIOWiced::read |
( |
| ) |
|
|
inline |
Reads the WICED GPIO voltage level.
- Returns
- GPIO voltage level
- Return values
-
| GPIO_LOW | if voltage low |
| GPIO_HIGH | if voltage high |
◆ write()
Writes the WICED GPIO output voltage level.
- Parameters
-
- Returns
- GPIO error code
- Return values
-
| OK | if success |
| INTF_ERROR | if error |
◆ enable()
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 |
◆ disable()
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 |
The documentation for this class was generated from the following files: