CTS-SAT-1-OBC-Firmware
Loading...
Searching...
No Matches
debug_uart.c File Reference
#include "main.h"
#include "debug_tools/debug_i2c.h"
#include "debug_tools/debug_uart.h"
#include "transforms/arrays.h"
#include <stdint.h>
#include <string.h>
#include <stdio.h>
#include <ctype.h>
Include dependency graph for debug_uart.c:

Functions

void DEBUG_uart_print_str (const char *str)
 
void DEBUG_uart_print_str_max_len (const char *str, size_t n)
 
void DEBUG_uart_print_uint32 (uint32_t value)
 
void DEBUG_uart_print_int32 (int32_t value)
 
void DEBUG_uart_print_uint64 (uint64_t value)
 
void DEBUG_uart_print_array_hex (const uint8_t *array, uint32_t array_len)
 Print an array of bytes in hex format, like 00 01 02 ...
 
void DEBUG_uart_write_bytes (const uint8_t *data, uint32_t data_len)
 
void DEBUG_uart_print_mixed_array (const uint8_t *array, uint16_t array_len, const char *prefix)
 Print array in hex + ASCII format for UART debugging, aligned.
 

Function Documentation

◆ DEBUG_uart_print_array_hex()

void DEBUG_uart_print_array_hex ( const uint8_t * array,
uint32_t array_len )

Print an array of bytes in hex format, like 00 01 02 ...

Parameters
arrayA pointer to the array of bytes.
array_lenThe length of the array.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ DEBUG_uart_print_int32()

void DEBUG_uart_print_int32 ( int32_t value)
Here is the call graph for this function:

◆ DEBUG_uart_print_mixed_array()

void DEBUG_uart_print_mixed_array ( const uint8_t * array,
uint16_t array_len,
const char * prefix )

Print array in hex + ASCII format for UART debugging, aligned.

Parameters
arrayPointer to the byte array.
array_lenLength of the array.
prefixPrefix string to prepend to the hex line (e.g., "AX100 Down")
Here is the call graph for this function:
Here is the caller graph for this function:

◆ DEBUG_uart_print_str()

void DEBUG_uart_print_str ( const char * str)
Here is the caller graph for this function:

◆ DEBUG_uart_print_str_max_len()

void DEBUG_uart_print_str_max_len ( const char * str,
size_t n )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ DEBUG_uart_print_uint32()

void DEBUG_uart_print_uint32 ( uint32_t value)
Here is the call graph for this function:

◆ DEBUG_uart_print_uint64()

void DEBUG_uart_print_uint64 ( uint64_t value)
Here is the call graph for this function:

◆ DEBUG_uart_write_bytes()

void DEBUG_uart_write_bytes ( const uint8_t * data,
uint32_t data_len )