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::IoConfig Struct Reference

IO Configuration Structure. More...

#include <meshx_io_factory.hpp>

Data Fields

uint8_t logical_pin
IoType type
std::string name
union { 
   struct { 
      uint8_t   mode 
      uint8_t   pull 
      uint8_t   drive 
      uint8_t   initial_level 
      bool   signal_inversion 
   }   gpio
   struct { 
      uint32_t   frequency 
      uint8_t   duty_cycle 
      uint8_t   resolution 
      uint8_t   channel 
   }   pwm
   struct { 
      uint16_t   custom_id 
      uint32_t   custom_data 
   }   custom
config

Detailed Description

IO Configuration Structure.

Field Documentation

◆ channel

uint8_t meshx::IoConfig::channel

Hardware channel

◆ [union]

union { ... } meshx::IoConfig::config

◆ [struct]

struct { ... } meshx::IoConfig::custom

◆ custom_data

uint32_t meshx::IoConfig::custom_data

Custom function data

◆ custom_id

uint16_t meshx::IoConfig::custom_id

Custom function ID

◆ drive

uint8_t meshx::IoConfig::drive

Drive strength

◆ duty_cycle

uint8_t meshx::IoConfig::duty_cycle

Initial duty cycle

◆ frequency

uint32_t meshx::IoConfig::frequency

PWM frequency

◆ [struct]

struct { ... } meshx::IoConfig::gpio

◆ initial_level

uint8_t meshx::IoConfig::initial_level

Initial output level

◆ logical_pin

uint8_t meshx::IoConfig::logical_pin

Logical pin number (0-255)

◆ mode

uint8_t meshx::IoConfig::mode

GPIO mode

◆ name

std::string meshx::IoConfig::name

Pin name

◆ pull

uint8_t meshx::IoConfig::pull

Pull resistor setting

◆ [struct]

struct { ... } meshx::IoConfig::pwm

◆ resolution

uint8_t meshx::IoConfig::resolution

PWM resolution

◆ signal_inversion

bool meshx::IoConfig::signal_inversion

Signal inversion

◆ type

IoType meshx::IoConfig::type

IO type


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