mirror of
https://github.com/DarkFlippers/unleashed-firmware
synced 2025-02-18 22:38:35 +00:00
29 lines
626 B
C
29 lines
626 B
C
#pragma once
|
|
|
|
#include <furi_hal_gpio.h>
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
typedef struct GPIOItems GPIOItems;
|
|
|
|
GPIOItems* gpio_items_alloc(void);
|
|
|
|
void gpio_items_free(GPIOItems* items);
|
|
|
|
uint8_t gpio_items_get_count(GPIOItems* items);
|
|
|
|
void gpio_items_configure_pin(GPIOItems* items, uint8_t index, GpioMode mode);
|
|
|
|
void gpio_items_configure_all_pins(GPIOItems* items, GpioMode mode);
|
|
|
|
void gpio_items_set_pin(GPIOItems* items, uint8_t index, bool level);
|
|
|
|
void gpio_items_set_all_pins(GPIOItems* items, bool level);
|
|
|
|
const char* gpio_items_get_pin_name(GPIOItems* items, uint8_t index);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|