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_io_types.hpp File Reference

MeshX IO Type Definitions. More...

#include <cstdint>
#include <cstddef>

Go to the source code of this file.

Namespaces

namespace  meshx

Enumerations

enum class  meshx::GpioMode {
  meshx::INPUT = 0 ,
  meshx::OUTPUT ,
  meshx::INPUT_OUTPUT ,
  meshx::OPEN_DRAIN ,
  meshx::OPEN_DRAIN_INPUT_OUTPUT ,
  meshx::PWM_OUTPUT ,
  meshx::MODE_MAX
}
 GPIO Mode enumeration. More...
enum class  meshx::GpioPull {
  meshx::NONE = 0 ,
  meshx::PULL_UP ,
  meshx::PULL_DOWN ,
  meshx::PULL_UP_DOWN ,
  meshx::PULL_MAX
}
 GPIO Pull Resistor enumeration. More...
enum class  meshx::GpioDrive {
  meshx::WEAK = 0 ,
  meshx::MEDIUM ,
  meshx::STRONG ,
  meshx::MAX_STRONG ,
  meshx::DRIVE_MAX
}
 GPIO Drive Strength enumeration. More...
enum class  meshx::GpioIntrTrigger {
  meshx::DISABLED = 0 ,
  meshx::POSITIVE_EDGE ,
  meshx::NEGATIVE_EDGE ,
  meshx::ANY_EDGE ,
  meshx::LOW_LEVEL ,
  meshx::HIGH_LEVEL ,
  meshx::INTR_MAX
}
 GPIO Interrupt Trigger enumeration. More...
enum class  meshx::HostedMode {
  meshx::NON_HOSTED = 0 ,
  meshx::HOSTED ,
  meshx::TRANSITIONING
}
 Hosted Mode enumeration. More...
enum class  meshx::IoError {
  meshx::SUCCESS = 0 ,
  meshx::INVALID_PIN ,
  meshx::INVALID_MODE ,
  meshx::INVALID_LEVEL ,
  meshx::INVALID_ARG ,
  meshx::INTR_NOT_SUPPORTED ,
  meshx::INTR_ALREADY_REGISTERED ,
  meshx::PWM_NOT_SUPPORTED ,
  meshx::PWM_INVALID_PARAM ,
  meshx::NOT_SUPPORTED ,
  meshx::NOT_INITIALIZED ,
  meshx::CONFIG_INVALID ,
  meshx::HOSTED_MODE ,
  meshx::KV_STORAGE ,
  meshx::SERIALIZATION ,
  meshx::ERROR_MAX
}
 IO Error Codes. More...

Functions

const char * meshx::ioErrorToString (IoError error)
 Convert IO error to string.
const char * meshx::gpioModeToString (GpioMode mode)
 Convert GPIO mode to string.
GpioMode meshx::stringToGpioMode (const char *str)
 Convert string to GPIO mode.
const char * meshx::gpioPullToString (GpioPull pull)
 Convert GPIO pull to string.
GpioPull meshx::stringToGpioPull (const char *str)
 Convert string to GPIO pull.
const char * meshx::gpioDriveToString (GpioDrive drive)
 Convert GPIO drive to string.
GpioDrive meshx::stringToGpioDrive (const char *str)
 Convert string to GPIO drive.
const char * meshx::intrTriggerToString (GpioIntrTrigger trigger)
 Convert interrupt trigger to string.
GpioIntrTrigger meshx::stringToIntrTrigger (const char *str)
 Convert string to interrupt trigger.

Detailed Description

MeshX IO Type Definitions.

This file defines data structures and types for IO configuration.

Author
MeshX Team
Date
2024