Mod Library
Sun Devil Rocketry's hardware agnostic utility library
Loading...
Searching...
No Matches
commands.h File Reference

: Contains general command functions common to all embedded controllers More...

#include "math_sdr.h"

Go to the source code of this file.

Macros

#define PING_OP   0x01
#define CONNECT_OP   0x02
#define IGNITE_OP   0x20
#define POWER_OP   0x21
#define FLASH_OP   0x22
#define SENSOR_OP   0x03
#define SOL_OP   0x51
#define VALVE_OP   0x52
#define DUAL_DEPLOY_OP   0xA0
#define SERVO_OP   0x08
#define PRESET_OP   0x24
#define DASHBOARD_OP   0x30
#define LORA_OP   0x31
#define FIN_OP   0x21
#define FIRMWARE_TERMINAL   ( 0x01 )
#define FIRMWARE_DATA_LOGGER   ( 0x02 )
#define FIRMWARE_DUAL_DEPLOY   ( 0x03 )
#define FIRMWARE_HOTFIRE   ( 0x04 )
#define FIRMWARE_CANARD   ( 0x05 )
#define FIRMWARE_APPA   ( 0x06 )
#define FIRMWARE_RECEIVER   ( 0x11 )
#define DASHBOARD_DUMP_SIZE   ( 36 )

Functions

struct __attribute__ ((packed)) _DASHBOARD_DUMP_TYPE
void ping (void)
 Sends a single response byte back to sender.

Variables

 DASHBOARD_DUMP_TYPE

Detailed Description

: Contains general command functions common to all embedded controllers

Copyright (c) 2025 Sun Devil Rocketry. All rights reserved.

This software is licensed under terms that can be found in the LICENSE file in the root directory of this software component. If no LICENSE file comes with this software, it is covered under the BSD-3-Clause.

https://opensource.org/license/bsd-3-clause

Function Documentation

◆ ping()

void ping ( void )

Sends a single response byte back to sender.

Sends a 1 byte response back to host PC to signal a functioning serial connection.

Parameters
cmd_sourceThe source of the command when building for a valve controller.

Sends a single response byte back to sender.