Loading...
Searching...
No Matches
util_macros.h File Reference

Utility macros for unicoap More...

Detailed Description

Utility macros for unicoap

Author
Carl Seifert carl..nosp@m.seif.nosp@m.ert@t.nosp@m.u-dr.nosp@m.esden.nosp@m..de

Definition in file util_macros.h.

#include "modules.h"
#include "macros/utils.h"
+ Include dependency graph for util_macros.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define UNICOAP_BITFIELD(...)
 Creates a bitfield where each argument i indicates the i-th bit is to be set.
 

Macro Definition Documentation

◆ UNICOAP_BITFIELD

#define UNICOAP_BITFIELD ( ...)
Value:
__unicoap_create_bitfield(__VA_ARGS__,,,,,,,,,,,,,,,) 0

Creates a bitfield where each argument i indicates the i-th bit is to be set.

For example, UNICOAP_BITFIELD(11, 8, 9) will return a bitfield with the 11th, 8th, and 9th bit set, i.e. (1 << 11) | (1 << 8) | (1 << 9)

Definition at line 83 of file util_macros.h.