Astarte device API for Zephyr 0.7.2
Astarte device SDK for Zephyr RTOS
Loading...
Searching...
No Matches

Utility macros and functions. More...

Macros

#define ASTARTE_UTIL_DEFINE_ARRAY(NAME, TYPE)
 Define a struct that contains a pointer of type TYPE and a length.
 

Detailed Description

Utility macros and functions.

Macro Definition Documentation

◆ ASTARTE_UTIL_DEFINE_ARRAY

#define ASTARTE_UTIL_DEFINE_ARRAY ( NAME,
TYPE )
Value:
typedef struct \
{ \
TYPE *buf; \
size_t len; \
} NAME;

Define a struct that contains a pointer of type TYPE and a length.

Parameters
[in]NAMEname of the type
[in]TYPEtype of an element of the array.