gpio_get_fsel()

Retrieve FSEL value

Synopsis:

#include <hw/gpio_hw.h>

int32_t (*gpio_get_fsel)( gpio_header_t *gpio_hdr,
                          int32_t *fsel );

Arguments:

gpio_hdr
A pointer to the GPIO header.
fsel
The address to store the FSEL value.

Description:

The gpio_get_fsel() function retrieves the FSEL value and prints the alternative functionality for a GPIO pin. Using this function is optional.

Returns:

EOK on success or errno if an error occurred.

Page updated: