gpio_level()
Get or set the GPIO level for a pin
Synopsis:
#include <hw/gpio_hw.h>
int32_t (*gpio_level)( gpio_header_t *gpio_hdr,
gpio_level_t *level,
uint8_t set );
Arguments:
- gpio_hdr
- A pointer to the GPIO header.
- level
- A pointer to the GPIO level.
- set
- The operation selector. The
GPIO_CFG_SETflag sets the output level. Otherwise, the function returns the current level.
Description:
The gpio_enable() function gets or sets the GPIO enable state. Using this function is optional.
Returns:
EOK on success or errno if an error occurred.
Page updated:
