CTS-SAT-1-OBC-Firmware
Loading...
Searching...
No Matches
extract_radio_packets_from_uart_logs Namespace Reference

Functions

list[bytes] extract_radio_packets_from_logs (int packet_type, Path log_file_path)
 
None reconstruct_bulk_downlinked_file (Path log_file_path, Path output_file_path)
 
str calculate_sha256 (Path file_path)
 
None main ()
 

Function Documentation

◆ calculate_sha256()

str extract_radio_packets_from_uart_logs.calculate_sha256 ( Path file_path)
Calculates the SHA-256 hash of a file.

Args:
    file_path: Path to the file.

Returns:
    The SHA-256 hash of the file as a hexadecimal string.

◆ extract_radio_packets_from_logs()

list[bytes] extract_radio_packets_from_uart_logs.extract_radio_packets_from_logs ( int packet_type,
Path log_file_path )
Extracts radio packets from the log file.

Args:
    packet_type: The number of packets to extract.
    log_file_path: Path to the log file.

Returns:
    A list of bytes representing the extracted radio packets.
Here is the caller graph for this function:

◆ main()

None extract_radio_packets_from_uart_logs.main ( void )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ reconstruct_bulk_downlinked_file()

None extract_radio_packets_from_uart_logs.reconstruct_bulk_downlinked_file ( Path log_file_path,
Path output_file_path )
Reconstructs a bulk downlinked file from the log file.

Args:
    log_file_path: Path to the log file.
    output_file_path: Path to save the reconstructed file.
Here is the call graph for this function:
Here is the caller graph for this function: