|
| enum | GpioMode { GpioModeInput
, GpioModeOutputPushPull
, GpioModeOutputOpenDrain
} |
| | Gpio modes.
|
| |
| enum | GpioPull { GpioPullNo
, GpioPullUp
, GpioPullDown
} |
| | Gpio pull modes.
|
| |
| enum | GpioSpeed { GpioSpeedLow
, GpioSpeedHigh
} |
| | Gpio speed modes.
|
| |
| enum | GpioAltFn {
GpioAltFnUnused = 0
, GpioAltFn1 = 1
, GpioAltFn2USART0_CLK = 2
, GpioAltFn2USART0_RTS = 2
,
GpioAltFn2USART0_TX = 2
, GpioAltFn2USART0_RX = 2
, GpioAltFn2USART0_CTS = 2
, GpioAltFn3ULP_UART_RX = 3
,
GpioAltFn3ULP_UART_TX = 3
, GpioAltFn3QEI_PHA = 3
, GpioAltFn3QEI_PHB = 3
, GpioAltFn4 = 4
,
GpioAltFn5 = 5
, GpioAltFn6SOCPERH_ON_ULP_GPIO_8 = 6
, GpioAltFn6SOCPERH_ON_ULP_GPIO_9 = 6
, GpioAltFn6SOCPERH_ON_ULP_GPIO_10 = 6
,
GpioAltFn6SOCPERH_ON_ULP_GPIO_11 = 6
, GpioAltFn6UART1_RX = 6
, GpioAltFn7 = 7
, GpioAltFn8 = 8
,
GpioAltFn9ULPPERH_ON_SOC_GPIO_2 = 9
, GpioAltFn9ULPPERH_ON_SOC_GPIO_3 = 9
, GpioAltFn9UART1_TX = 9
, GpioAltFn10 = 10
,
GpioAltFn10PWM_0H = 10
, GpioAltFn10PWM_2H = 10
, GpioAltFn10PWM_3H = 10
, GpioAltFn11 = 11
,
GpioAltFn12 = 12
, GpioAltFn13 = 13
, GpioAltFn14 = 14
, GpioAltFn15 = 15
} |
| | Gpio alternate functions. More...
|
| |
| enum | GpioType { GpioTypeHp
, GpioTypeUlp
, GpioTypeUulp
} |
| |
| enum | GpioCondition { GpioConditionRise
, GpioConditionFall
, GpioConditionRiseFall
} |
| |
|
| void | furi_hal_gpio_init_simple (const GpioPin *gpio, const GpioMode mode) |
| | GPIO initialization function, simple version.
|
| |
| void | furi_hal_gpio_init (const GpioPin *gpio, const GpioMode mode, const GpioPull pull, const GpioSpeed speed) |
| | GPIO initialization function, normal version.
|
| |
| void | furi_hal_gpio_init_ex (const GpioPin *gpio, const GpioMode mode, const GpioPull pull, const GpioSpeed speed, const GpioAltFn alt_fn) |
| | GPIO initialization function, extended version.
|
| |
| void | furi_hal_gpio_enable_ulp_on_hp (const GpioPin *ulp_gpio, const GpioAltFn alt_fn) |
| | Enable ULP to HP GPIO multiplexer.
|
| |
| void | furi_hal_gpio_add_int_callback (const GpioPin *gpio, const GpioCondition cond, GpioExtiCallback cb, void *ctx) |
| | Add and enable interrupt.
|
| |
| void | furi_hal_gpio_enable_int_callback (const GpioPin *gpio) |
| | Enable interrupt.
|
| |
| void | furi_hal_gpio_disable_int_callback (const GpioPin *gpio) |
| | Disable interrupt.
|
| |
| void | furi_hal_gpio_remove_int_callback (const GpioPin *gpio) |
| | Remove interrupt.
|
| |
| void | furi_hal_gpio_write (const GpioPin *gpio, const bool state) |
| | GPIO write pin.
|
| |
| void | furi_hal_gpio_write_open_drain (const GpioPin *gpio, const bool state) |
| | GPIO write pin, open drain mode.
|
| |
| bool | furi_hal_gpio_read (const GpioPin *gpio) |
| | GPIO read pin.
|
| |
GPIO HAL library for Si917.
- Note
- If a pin is configured as open drain output, use furi_hal_gpio_write_open_drain() instead of furi_hal_gpio_write()