WarpTwin
Documentation for WarpTwin models and classes.
Loading...
Searching...
No Matches
cmd_CommandManager.h
Go to the documentation of this file.
1/******************************************************************************
2* Copyright (c) ATTX INC 2025. All Rights Reserved.
3*
4* This software and associated documentation (the "Software") are the
5* proprietary and confidential information of ATTX, INC. The Software is
6* furnished under a license agreement between ATTX and the user organization
7* and may be used or copied only in accordance with the terms of the agreement.
8* Refer to 'license/attx_license.adoc' for standard license terms.
9*
10* EXPORT CONTROL NOTICE: THIS SOFTWARE MAY INCLUDE CONTENT CONTROLLED UNDER THE
11* INTERNATIONAL TRAFFIC IN ARMS REGULATIONS (ITAR) OR THE EXPORT ADMINISTRATION
12* REGULATIONS (EAR99). No part of the Software may be used, reproduced, or
13* transmitted in any form or by any means, for any purpose, without the express
14* written permission of ATTX, INC.
15******************************************************************************/
16/*
17Command Manager command definition header file
18
19Author: Will Burken
20*/
21
22#ifndef COMMAND_CMD_CMD_MANAGER_H
23#define COMMAND_CMD_CMD_MANAGER_H
24
25#include "flight/Command.h"
26#include "apps/app_apids.h"
27
28// Define the command base for the Command Manager
29#define CMD_CMD_MANAGER_BASE APP_APID_COMMAND_MANAGER + CMD_APID_BASE
30
31
32// -------------------------------------------------------------------------------------
33// COMMAND MANAGER COMMAND APID DEFINITIONS
34// -------------------------------------------------------------------------------------
36#define CMD_SOFT_RESET CMD_CMD_MANAGER_BASE + 0x000
38#define CMD_LOG_LEVEL CMD_CMD_MANAGER_BASE + 0x001
40#define CMD_SCHEDULE CMD_CMD_MANAGER_BASE + 0x002
42#define CMD_NO_OP CMD_CMD_MANAGER_BASE + 0x003
44#define CMD_ACTIVATE_APP CMD_CMD_MANAGER_BASE + 0x004
46#define CMD_DEACTIVATE_APP CMD_CMD_MANAGER_BASE + 0x005
47
52 ((uint16), target_apid), // The APID of the app to reset
53 ((uint8), instance) // The instance of the app to reset
56
60 ((uint16), target_apid), // The APID of the app to change
61 ((uint8), instance), // The instance of the app to reset
62 ((uint8), log_level) // The log level to set the app to
70 ((uint16), target_apid), // The APID of the app to schedule
71 ((uint16), slot), // The slot to schedule the app in (0 to unregister)
72 ((uint8), instance) // The instance of the app to reset
75/**
76 * A No operation command
77 */
79 ((bool), no_op) // Boolean value. Not used
80)
81
86 ((uint16), target_apid), // The APID of the app to activate
87 ((uint8), instance) // The instance of the app to reset
88
89)
90
95 ((uint16), target_apid), // The APID of the app to deactivate
96 ((uint8), instance) // The instance of the app to reset
98)
99
100#endif
#define COMMAND(NAME, APID, SIZE,...)
Definition Command.h:33
#define CMD_SCHEDULE
Command code to change an apps scheduled slot.
Definition cmd_CommandManager.h:40
#define CMD_NO_OP
Command code for a no-op command.
Definition cmd_CommandManager.h:42
#define CMD_SOFT_RESET
Command code to soft reset an app.
Definition cmd_CommandManager.h:36
#define CMD_DEACTIVATE_APP
Command code to deactivate an app.
Definition cmd_CommandManager.h:46
#define CMD_LOG_LEVEL
Command code to change a specified apps log level.
Definition cmd_CommandManager.h:38
#define CMD_ACTIVATE_APP
Command code to activate an app.
Definition cmd_CommandManager.h:44
Definition cmd_CommandManager.h:94
uint16 target_apid
Definition cmd_CommandManager.h:94
uint8 instance
Definition cmd_CommandManager.h:94
Definition cmd_CommandManager.h:105
Definition cmd_CommandManager.h:62
uint8 instance
Definition cmd_CommandManager.h:62
uint16 target_apid
Definition cmd_CommandManager.h:62
uint8 log_level
Definition cmd_CommandManager.h:62
Definition cmd_CommandManager.h:83
Definition cmd_CommandManager.h:73
Definition cmd_CommandManager.h:52
uint8 instance
Definition cmd_CommandManager.h:52
uint16 target_apid
Definition cmd_CommandManager.h:52