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.
Loading...
Searching...
No Matches
meshx_gpio_pin_state_t Struct Reference

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.

Detailed Description

GPIO Pin State Structure.

This structure tracks the runtime state of a GPIO pin.

Field Documentation

◆ current_level

uint8_t meshx_gpio_pin_state_t::current_level

Current pin level (0 or 1)

◆ [struct]

struct { ... } meshx_gpio_pin_state_t::custom

Custom function runtime state.

◆ custom_data

void* meshx_gpio_pin_state_t::custom_data

Custom function data pointer

◆ data_size

size_t meshx_gpio_pin_state_t::data_size

Custom data size

◆ duty_cycle

uint8_t meshx_gpio_pin_state_t::duty_cycle

Current PWM duty cycle

◆ frequency

uint32_t meshx_gpio_pin_state_t::frequency

Current PWM frequency

◆ interrupt_registered

bool meshx_gpio_pin_state_t::interrupt_registered

Whether interrupt is registered

◆ intr_callback

meshx_gpio_intr_cb_t meshx_gpio_pin_state_t::intr_callback

Interrupt callback function pointer

◆ intr_type

meshx_gpio_intr_type_t meshx_gpio_pin_state_t::intr_type

Interrupt type (if registered)

◆ intr_user_data

void* meshx_gpio_pin_state_t::intr_user_data

Interrupt user data pointer

◆ [union]

union { ... } meshx_gpio_pin_state_t::mode_state

Mode-specific runtime state.

◆ [struct]

struct { ... } meshx_gpio_pin_state_t::pwm

PWM runtime state.

◆ started

bool meshx_gpio_pin_state_t::started

Whether PWM is started


The documentation for this struct was generated from the following file: