This module provides parsing and lookup functions for GPIO settings.
More...
This module provides parsing and lookup functions for GPIO settings.
◆ mygpio_gpio_lookup_bias()
Lookups the name for the gpio bias.
- Parameters
-
- Returns
- gpio bias name
◆ mygpio_gpio_lookup_direction()
Lookups the name for the gpio direction.
- Parameters
-
| direction | the gpio direction. |
- Returns
- gpio direction name
◆ mygpio_gpio_lookup_drive()
| const char * mygpio_gpio_lookup_drive |
( |
enum mygpio_drive | drive | ) |
|
Lookups the name for the gpio drive setting.
- Parameters
-
- Returns
- gpio drive name
◆ mygpio_gpio_lookup_event_clock()
Lookups the name for the gpio event clock.
- Parameters
-
- Returns
- gpio clock name
◆ mygpio_gpio_lookup_event_request()
Lookups the name for an event request.
- Parameters
-
| event_request | the gpio event request. |
- Returns
- gpio event request name
◆ mygpio_gpio_lookup_value()
Lookups the name for the gpio value.
- Parameters
-
- Returns
- gpio value name
◆ mygpio_gpio_parse_bias()
Parses a string to a gpio bias.
- Parameters
-
- Returns
- gpio bias or GPIO_BIAS_UNKNOWN on error
◆ mygpio_gpio_parse_direction()
Parses a string to the gpio direction.
- Parameters
-
- Returns
- direction of the gpio
◆ mygpio_gpio_parse_drive()
| enum mygpio_drive mygpio_gpio_parse_drive |
( |
const char * | str | ) |
|
Parses a string to a gpio drive.
- Parameters
-
- Returns
- gpio bias or MYGPIO_DRIVE_UNKNOWN on error
◆ mygpio_gpio_parse_event_clock()
Parses a string to a gpio event clock.
- Parameters
-
- Returns
- gpio event clock or MYGPIO_EVENT_CLOCK_UNKNOWN on error
◆ mygpio_gpio_parse_event_request()
Parses a string to an event request.
- Parameters
-
- Returns
- gpio event request or GPIO_EVENT_REQUEST_UNKNOWN on error
◆ mygpio_gpio_parse_value()
Parses a string to a gpio value.
- Parameters
-
- Returns
- gpio value or GPIO_VALUE_UNKNOWN on error