|
MeshX 0.4
This repository provides an implementation for Bluetooth Low Energy (BLE) Mesh network nodes. The project allows you to create BLE mesh nodes that can communicate with each other, enabling the development of smart home solutions or other IoT-based applications.
|
GPIO Pin State Structure. More...
#include <meshx_gpio_types.h>
Data Fields | |
| uint8_t | current_level |
| bool | interrupt_registered |
| meshx_gpio_intr_type_t | intr_type |
| meshx_gpio_intr_cb_t | intr_callback |
| void * | intr_user_data |
| union { | |
| struct { | |
| bool started | |
| uint32_t frequency | |
| uint8_t duty_cycle | |
| } pwm | |
| PWM runtime state. More... | |
| struct { | |
| void * custom_data | |
| size_t data_size | |
| } custom | |
| Custom function runtime state. More... | |
| } | mode_state |
| Mode-specific runtime state. | |
GPIO Pin State Structure.
This structure tracks the runtime state of a GPIO pin.
| uint8_t meshx_gpio_pin_state_t::current_level |
Current pin level (0 or 1)
| struct { ... } meshx_gpio_pin_state_t::custom |
Custom function runtime state.
| void* meshx_gpio_pin_state_t::custom_data |
Custom function data pointer
| size_t meshx_gpio_pin_state_t::data_size |
Custom data size
| uint8_t meshx_gpio_pin_state_t::duty_cycle |
Current PWM duty cycle
| uint32_t meshx_gpio_pin_state_t::frequency |
Current PWM frequency
| bool meshx_gpio_pin_state_t::interrupt_registered |
Whether interrupt is registered
| meshx_gpio_intr_cb_t meshx_gpio_pin_state_t::intr_callback |
Interrupt callback function pointer
| meshx_gpio_intr_type_t meshx_gpio_pin_state_t::intr_type |
Interrupt type (if registered)
| void* meshx_gpio_pin_state_t::intr_user_data |
Interrupt user data pointer
| union { ... } meshx_gpio_pin_state_t::mode_state |
Mode-specific runtime state.
| struct { ... } meshx_gpio_pin_state_t::pwm |
PWM runtime state.
| bool meshx_gpio_pin_state_t::started |
Whether PWM is started