MeshX 0.3
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.
|
Implementation of MeshX Semaphore APIs using FreeRTOS. This file provides functions to create, delete, take, and give semaphores for synchronization in the MeshX framework. More...
#include "interface/rtos/meshx_sem.h"
#include "freertos/FreeRTOS.h"
#include "freertos/semphr.h"
#include "esp_system.h"
Go to the source code of this file.
Functions | |
meshx_err_t | meshx_sem_create (meshx_sem_t *sem_handle) |
Create a MeshX Semaphore. | |
meshx_err_t | meshx_sem_delete (meshx_sem_t *sem_handle) |
Delete a MeshX Semaphore. | |
meshx_err_t | meshx_sem_take (meshx_sem_t *sem_handle, uint32_t delay_ms) |
Take a MeshX Semaphore. | |
meshx_err_t | meshx_sem_give (meshx_sem_t *sem_handle) |
Give a MeshX Semaphore. | |
Implementation of MeshX Semaphore APIs using FreeRTOS. This file provides functions to create, delete, take, and give semaphores for synchronization in the MeshX framework.
Copyright (c) 2024 - 2025 MeshX
Definition in file meshx_sem.c.
meshx_err_t meshx_sem_create | ( | meshx_sem_t * | sem_handle | ) |
Create a MeshX Semaphore.
This function creates a MeshX Semaphore.
[in,out] | sem_handle | Semaphore Handle |
Definition at line 27 of file meshx_sem.c.
meshx_err_t meshx_sem_delete | ( | meshx_sem_t * | sem_handle | ) |
Delete a MeshX Semaphore.
This function deletes a MeshX Semaphore.
[in] | sem_handle | Semaphore Handle |
Definition at line 52 of file meshx_sem.c.
meshx_err_t meshx_sem_give | ( | meshx_sem_t * | sem_handle | ) |
Give a MeshX Semaphore.
This function gives a MeshX Semaphore.
[in] | sem_handle | Semaphore Handle |
Definition at line 99 of file meshx_sem.c.
meshx_err_t meshx_sem_take | ( | meshx_sem_t * | sem_handle, |
uint32_t | delay_ms ) |
Take a MeshX Semaphore.
This function takes a MeshX Semaphore.
[in] | sem_handle | Semaphore Handle |
[in] | delay_ms | Delay in milliseconds |
Definition at line 74 of file meshx_sem.c.