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.
Loading...
Searching...
No Matches
meshx_rtos_utils.h
Go to the documentation of this file.
1
15
16#ifndef __MESHX_RTOS_UTILS_H__
17#define __MESHX_RTOS_UTILS_H__
18
19#include "meshx_err.h"
20#include "stddef.h"
21
38meshx_err_t meshx_rtos_get_sys_time(unsigned int *millis);
39
56meshx_err_t meshx_rtos_malloc(void** ptr, size_t size);
57
73meshx_err_t meshx_rtos_calloc(void **ptr, size_t num, size_t size);
74
91
102size_t meshx_rtos_get_free_heap(void);
103
119meshx_err_t meshx_rtos_get_curr_task_id_prio(unsigned int *task_id);
120
121#endif /* __MESHX_RTOS_UTILS_H__ */
122
MeshX Error Codes.
meshx_err_t
MeshX Error Codes.
Definition meshx_err.h:39
meshx_err_t meshx_rtos_get_sys_time(unsigned int *millis)
Retrieves the current system time in milliseconds.
Definition meshx_utils.c:36
meshx_err_t meshx_rtos_get_curr_task_id_prio(unsigned int *task_id)
Retrieves the current task ID.
meshx_err_t meshx_rtos_calloc(void **ptr, size_t num, size_t size)
Allocates memory for an array of elements and initializes it to zero.
Definition meshx_utils.c:96
meshx_err_t meshx_rtos_free(void **ptr)
Frees memory allocated to a pointer and sets it to NULL.
meshx_err_t meshx_rtos_malloc(void **ptr, size_t size)
Allocates memory dynamically in a thread-safe manner using FreeRTOS.
Definition meshx_utils.c:65
size_t meshx_rtos_get_free_heap(void)
Retrieves the amount of free heap memory available in the system.