CTS-SAT-1-OBC-Firmware
Toggle main menu visibility
Loading...
Searching...
No Matches
firmware
Core
Inc
debug_tools
debug_uart.h
Go to the documentation of this file.
1
// debug_uart.h
2
// Functions for debug printing to the Debug UART interface.
3
4
#ifndef INCLUDE_GUARD__DEBUG_UART_H__
5
#define INCLUDE_GUARD__DEBUG_UART_H__
6
7
#include "
main.h
"
8
#include <stdint.h>
9
10
void
DEBUG_uart_print_str
(
const
char
*str);
11
void
DEBUG_uart_print_str_max_len
(
const
char
* str,
size_t
n);
12
13
void
DEBUG_uart_print_uint32
(uint32_t value);
14
void
DEBUG_uart_print_int32
(int32_t value);
15
void
DEBUG_uart_print_uint64
(uint64_t value);
16
void
DEBUG_uart_print_array_hex
(
const
uint8_t *array, uint32_t array_len);
17
void
DEBUG_uart_write_bytes
(
const
uint8_t *data, uint32_t data_len);
18
void
DEBUG_uart_print_mixed_array
(
const
uint8_t *array, uint16_t array_len,
const
char
*prefix);
19
20
21
#endif
// INCLUDE_GUARD__DEBUG_UART_H__
DEBUG_uart_print_int32
void DEBUG_uart_print_int32(int32_t value)
Definition
debug_uart.c:31
DEBUG_uart_write_bytes
void DEBUG_uart_write_bytes(const uint8_t *data, uint32_t data_len)
Definition
debug_uart.c:56
DEBUG_uart_print_uint64
void DEBUG_uart_print_uint64(uint64_t value)
Definition
debug_uart.c:37
DEBUG_uart_print_str_max_len
void DEBUG_uart_print_str_max_len(const char *str, size_t n)
Definition
debug_uart.c:17
DEBUG_uart_print_str
void DEBUG_uart_print_str(const char *str)
Definition
debug_uart.c:13
DEBUG_uart_print_uint32
void DEBUG_uart_print_uint32(uint32_t value)
Definition
debug_uart.c:25
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.
Definition
debug_uart.c:64
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 ....
Definition
debug_uart.c:48
main.h
: Header for main.c file. This file contains the common defines of the application.
Generated by
1.17.0