WarpTwin
Documentation for WarpTwin models and classes.
Loading...
Searching...
No Matches
Command.h File Reference
#include "Telemetry.h"

Go to the source code of this file.

Macros

#define COMMAND(NAME, APID, SIZE, ...)

Macro Definition Documentation

◆ COMMAND

#define COMMAND ( NAME,
APID,
SIZE,
... )
Value:
static_assert(((APID) & 0x00F) >= CMD_APID_MIN_ALLOWABLE && ((APID) & 0x00F) <= CMD_APID_MAX_ALLOWABLE, \
"Creating CMD NAME failed. APID must be between TLM_APID_MIN_ALLOWABLE and TLM_APID_MAX_ALLOWABLE"); \
static_assert(SIZE <= CMD_TLM_PKT_MAX_SIZE_BYTES, "Creating CMD NAME failed. SIZE must be <=> configuration/CMD_TLM_PKT_MAX_SIZE_BYTES");\
CMD_TLM_COMMON(NAME, APID, SIZE, __VA_ARGS__)
#define CMD_APID_MIN_ALLOWABLE
Definition Telemetry.h:33
#define CMD_APID_MAX_ALLOWABLE
Definition Telemetry.h:35

Command Macro. This macro is a replacement for a standard struct and comes with packetize and unpacketize functions. Because it operates almost exactly the same as TELEMETRY, it is just a wrapper around that.