src/C/gpio.c
static bool gpio_is_free(gpioref_t kref)
{
    if (kref.val < gpio_max_num && gpio_state[kref.val] == 0x0) {
        return true;
    }
    return false;
}
/**
 * \brief Check if the GPIO is already used or not
 *
 * \param[in] gpio GPIO identifier, corresponding to the gpio structure
 *            kref field
 * \return true if the GPIO is free to use, false if the GPIO is already used.
 */
\brief Check if the GPIO is already used or not
\param[in] gpio GPIO identifier, corresponding to the gpio structure
kref field
\return true if the GPIO is free to use, false if the GPIO is already used.
\ brief Check if the GPIO is already used or not \ param [ in ] gpio GPIO identifier corresponding to the gpio structure kref field \ return true if the GPIO is free to use false if the GPIO is already used .
static bool gpio_is_free(gpioref_t kref)
{
    if (kref.val < gpio_max_num && gpio_state[kref.val] == 0x0) {
        return true;
    }
    return false;
}
static bool gpio_is_free ( gpioref_t kref ) { if ( kref . val < gpio_max_num && gpio_state [ kref . val ] == 0x0 ) { return true ; } return false ; }
\brief Check if the GPIO is already used or not
 \param[in] gpio GPIO identifier, corresponding to the gpio structure
            kref field
 \return true if the GPIO is free to use, false if the GPIO is already used.
\ brief Check if the GPIO is already used or not \ param [ in ] gpio GPIO identifier corresponding to the gpio structure kref field \ return true if the GPIO is free to use false if the GPIO is already used .