|
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.
|
Data Structures | |
| struct | IoConfig |
| IO Configuration Structure. More... | |
| class | MeshXIoFactory |
| IO Factory Class. More... | |
| class | MeshXIoInterface |
| Abstract IO Interface. More... | |
| class | MeshXGpioImpl |
| Concrete GPIO Implementation Class. More... | |
| class | MeshXPwmImpl |
| Concrete PWM Implementation Class. More... | |
Typedefs | |
| using | IoFactoryFunction = std::unique_ptr<MeshXIoInterface>(*)(uint8_t logical_pin, const char* name) |
| IO Factory function type. | |
Functions | |
| const char * | ioErrorToString (IoError error) |
| Convert IO error to string. | |
| const char * | gpioModeToString (GpioMode mode) |
| Convert GPIO mode to string. | |
| GpioMode | stringToGpioMode (const char *str) |
| Convert string to GPIO mode. | |
| const char * | gpioPullToString (GpioPull pull) |
| Convert GPIO pull to string. | |
| GpioPull | stringToGpioPull (const char *str) |
| Convert string to GPIO pull. | |
| const char * | gpioDriveToString (GpioDrive drive) |
| Convert GPIO drive to string. | |
| GpioDrive | stringToGpioDrive (const char *str) |
| Convert string to GPIO drive. | |
| const char * | intrTriggerToString (GpioIntrTrigger trigger) |
| Convert interrupt trigger to string. | |
| GpioIntrTrigger | stringToIntrTrigger (const char *str) |
| Convert string to interrupt trigger. | |
| static void | meshx_gpio_intr_cb_wrapper (uint8_t logical_pin, void *user_data) |
| Static interrupt callback wrapper for C API. | |
| std::unique_ptr< MeshXIoInterface > | createGpioInstance (uint8_t logical_pin, const char *name) |
| Factory function for creating GPIO instances. | |
| std::unique_ptr< MeshXIoInterface > | createPwmInstance (uint8_t logical_pin, const char *name) |
| Factory function for creating PWM instances. | |
| using meshx::IoFactoryFunction = std::unique_ptr<MeshXIoInterface>(*)(uint8_t logical_pin, const char* name) |
IO Factory function type.
|
strong |
|
strong |
|
strong |
|
strong |
|
strong |
|
strong |
IO Error Codes.
|
strong |
IO Function Types for function-based API.
|
strong |
| std::unique_ptr< MeshXIoInterface > meshx::createGpioInstance | ( | uint8_t | logical_pin, |
| const char * | name ) |
Factory function for creating GPIO instances.
| logical_pin | Logical pin number |
| name | Pin name |
| std::unique_ptr< MeshXIoInterface > meshx::createPwmInstance | ( | uint8_t | logical_pin, |
| const char * | name ) |
Factory function for creating PWM instances.
| logical_pin | Logical pin number |
| name | Pin name |
| const char * meshx::gpioDriveToString | ( | GpioDrive | drive | ) |
Convert GPIO drive to string.
| drive | GPIO drive strength |
| const char * meshx::gpioModeToString | ( | GpioMode | mode | ) |
Convert GPIO mode to string.
| mode | GPIO mode |
| const char * meshx::gpioPullToString | ( | GpioPull | pull | ) |
Convert GPIO pull to string.
| pull | GPIO pull setting |
| const char * meshx::intrTriggerToString | ( | GpioIntrTrigger | trigger | ) |
Convert interrupt trigger to string.
| trigger | Interrupt trigger type |
| const char * meshx::ioErrorToString | ( | IoError | error | ) |
Convert IO error to string.
| error | IO error code |
|
static |
Static interrupt callback wrapper for C API.
| logical_pin | Logical pin number |
| user_data | User data (pointer to MeshXGpioImpl instance) |
| GpioDrive meshx::stringToGpioDrive | ( | const char * | str | ) |
| GpioMode meshx::stringToGpioMode | ( | const char * | str | ) |
| GpioPull meshx::stringToGpioPull | ( | const char * | str | ) |
| GpioIntrTrigger meshx::stringToIntrTrigger | ( | const char * | str | ) |
Convert string to interrupt trigger.
| str | Trigger string |