CTS-SAT-1-OBC-Firmware
Loading...
Searching...
No Matches
comms_tx.h File Reference
Include dependency graph for comms_tx.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  COMMS_beacon_basic_packet_t
 
struct  COMMS_log_message_packet_t
 
struct  COMMS_tcmd_response_packet_t
 
struct  COMMS_bulk_file_downlink_packet_t
 

Macros

#define COMMS_LOG_MESSAGE_PACKET_MAX_DATA_BYTES_PER_PACKET   199
 
#define COMMS_TCMD_RESPONSE_PACKET_MAX_DATA_BYTES_PER_PACKET   186
 
#define COMMS_BULK_FILE_DOWNLINK_PACKET_MAX_DATA_BYTES_PER_PACKET   193
 

Enumerations

enum  COMMS_packet_type_enum_t {
  COMMS_PACKET_TYPE_BEACON_BASIC = 0x01 , COMMS_PACKET_TYPE_BEACON_PERIPHERAL = 0x02 , COMMS_PACKET_TYPE_LOG_MESSAGE = 0x03 , COMMS_PACKET_TYPE_TCMD_RESPONSE = 0x04 ,
  COMMS_PACKET_TYPE_BULK_FILE_DOWNLINK = 0x10
}
 Packet types for the COMMS downlink packets. More...
 

Functions

uint8_t COMMS_downlink_tcmd_response (uint64_t ts_sent, uint8_t response_code, uint16_t duration_ms, char *response, uint32_t response_len)
 
uint8_t COMMS_downlink_log_message (const char log_message_str[])
 
uint8_t COMMS_downlink_bulk_file_downlink (uint8_t file_seq_num, uint8_t file_max_seq_num, uint32_t file_offset, uint8_t data[], uint16_t data_len)
 
uint8_t COMMS_downlink_beacon_basic_packet ()
 

Macro Definition Documentation

◆ COMMS_BULK_FILE_DOWNLINK_PACKET_MAX_DATA_BYTES_PER_PACKET

#define COMMS_BULK_FILE_DOWNLINK_PACKET_MAX_DATA_BYTES_PER_PACKET   193

◆ COMMS_LOG_MESSAGE_PACKET_MAX_DATA_BYTES_PER_PACKET

#define COMMS_LOG_MESSAGE_PACKET_MAX_DATA_BYTES_PER_PACKET   199

◆ COMMS_TCMD_RESPONSE_PACKET_MAX_DATA_BYTES_PER_PACKET

#define COMMS_TCMD_RESPONSE_PACKET_MAX_DATA_BYTES_PER_PACKET   186

Enumeration Type Documentation

◆ COMMS_packet_type_enum_t

Packet types for the COMMS downlink packets.

This is the first byte (after the CSP header) of the downlink packets.

Enumerator
COMMS_PACKET_TYPE_BEACON_BASIC 
COMMS_PACKET_TYPE_BEACON_PERIPHERAL 
COMMS_PACKET_TYPE_LOG_MESSAGE 
COMMS_PACKET_TYPE_TCMD_RESPONSE 
COMMS_PACKET_TYPE_BULK_FILE_DOWNLINK 

Function Documentation

◆ COMMS_downlink_beacon_basic_packet()

uint8_t COMMS_downlink_beacon_basic_packet ( )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ COMMS_downlink_bulk_file_downlink()

uint8_t COMMS_downlink_bulk_file_downlink ( uint8_t file_seq_num,
uint8_t file_max_seq_num,
uint32_t file_offset,
uint8_t data[],
uint16_t data_len )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ COMMS_downlink_log_message()

uint8_t COMMS_downlink_log_message ( const char log_message_str[])
Here is the call graph for this function:
Here is the caller graph for this function:

◆ COMMS_downlink_tcmd_response()

uint8_t COMMS_downlink_tcmd_response ( uint64_t ts_sent,
uint8_t response_code,
uint16_t duration_ms,
char * response,
uint32_t response_len )
Here is the call graph for this function:
Here is the caller graph for this function: