|
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.
|
Flash Abstraction Layer (FAL) Interface for MeshX. More...
Go to the source code of this file.
Data Structures | |
| struct | meshx_fal_partition_t |
Functions | |
| meshx_err_t | meshx_fal_read (const meshx_fal_partition_t *part, uint32_t offset, void *buf, size_t len) |
| Read data from a flash partition. | |
| meshx_err_t | meshx_fal_write (const meshx_fal_partition_t *part, uint32_t offset, const void *buf, size_t len) |
| Write data to a flash partition. | |
| meshx_err_t | meshx_fal_erase (const meshx_fal_partition_t *part, uint32_t offset, size_t len) |
| Erase a range of a flash partition. | |
| meshx_err_t | meshx_fal_find_partition (const char *name, meshx_fal_partition_t *part) |
| Find a flash partition by name. | |
Flash Abstraction Layer (FAL) Interface for MeshX.
Copyright © 2024 - 2025 MeshX
This header defines the interface for interacting with raw flash partitions.
| meshx_err_t meshx_fal_erase | ( | const meshx_fal_partition_t * | part, |
| uint32_t | offset, | ||
| size_t | len ) |
Erase a range of a flash partition.
| [in] | part | Pointer to the partition structure. |
| [in] | offset | Offset from the start of the partition (must be sector aligned). |
| [in] | len | Number of bytes to erase (must be sector aligned). |
| meshx_err_t meshx_fal_find_partition | ( | const char * | name, |
| meshx_fal_partition_t * | part ) |
Find a flash partition by name.
| [in] | name | Name of the partition to find. |
| [out] | part | Pointer to the partition structure to populate. |
| meshx_err_t meshx_fal_read | ( | const meshx_fal_partition_t * | part, |
| uint32_t | offset, | ||
| void * | buf, | ||
| size_t | len ) |
Read data from a flash partition.
| [in] | part | Pointer to the partition structure. |
| [in] | offset | Offset from the start of the partition. |
| [out] | buf | Pointer to the buffer to store read data. |
| [in] | len | Number of bytes to read. |
| meshx_err_t meshx_fal_write | ( | const meshx_fal_partition_t * | part, |
| uint32_t | offset, | ||
| const void * | buf, | ||
| size_t | len ) |
Write data to a flash partition.
| [in] | part | Pointer to the partition structure. |
| [in] | offset | Offset from the start of the partition. |
| [in] | buf | Pointer to the buffer containing data to write. |
| [in] | len | Number of bytes to write. |