mirror of
https://github.com/DarkFlippers/unleashed-firmware.git
synced 2024-12-19 03:11:52 +03:00
30 lines
622 B
C
30 lines
622 B
C
|
#pragma once
|
||
|
|
||
|
#include <furi_hal_gpio.h>
|
||
|
|
||
|
#ifdef __cplusplus
|
||
|
extern "C" {
|
||
|
#endif
|
||
|
|
||
|
typedef struct GPIOItems GPIOItems;
|
||
|
|
||
|
GPIOItems* gpio_items_alloc();
|
||
|
|
||
|
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
|