Applibs gpio.h
Header: #include <applibs/gpio.h>
The Applibs gpio header contains functions and types that interact with GPIOs.
Application manifest requirements
To access individual GPIOs, your application must identify them in the Gpio field of the application manifest.
Thread safety
GPIO functions are thread-safe between calls to different GPIOs; however, it is the caller's responsibility to ensure thread safety for accesses to the same GPIO.
Hardware dependent IDs
Some GPIO functions reference identifiers that are hardware dependent. Hardware dependent IDs are constants that are defined in the hardware definition files for a device. For more information, see Manage target hardware dependencies.
Concepts and samples
- Sample: GPIO
- Sample: CurlMultiHttps
- Sample: System Time
- Sample: External MCU update - reference solution
Functions
| Function | Description |
|---|---|
| GPIO_GetValue | Gets the current value of a GPIO. |
| GPIO_OpenAsInput | Opens a GPIO as an input. |
| GPIO_OpenAsOutput | Opens a GPIO as an output. |
| GPIO_SetValue | Sets the output value for an output GPIO. |
Structs
| Struct | Description |
|---|---|
| gpiopin_request | The drive strength configuration for one or more GPIO pins. |
Enums
| Enum | Description |
|---|---|
| GPIO_OutputMode | The options for the output mode of a GPIO. |
| GPIO_Value | The possible read/write values for a GPIO. |
| pin_config_param_type | The possible units for the current that drives a GPIO pin. |
Typedefs
| Typedef | Description |
|---|---|
| GPIO_Id | Specifies the type of a GPIO ID, which is used to specify a GPIO peripheral instance. |
| GPIO_OutputMode_Type | Specifies the type of the GPIO output mode. |
| GPIO_Value_Type | Specifies the type of a GPIO value. |
I/O Controls (IOCTLs)
| IOCTL | Description |
|---|---|
| GPIO_SET_PIN_CONFIG_IOCTL | Sets the drive strength of one or more GPIO pins, as specified in the gpiopin_request structure. |
Feedback
Issottometti u ara feedback għal