|
ra8-firmware 0.1.0
Bare-metal firmware for the Renesas RA8 family (RA8D2 / RA8P1)
|
Heap-free console formatting for camera livestream diagnostics. More...
#include <stddef.h>#include <stdint.h>#include "c6_camera_server.h"#include "ra8_board_ek_ra8d2.h"Go to the source code of this file.
Enumerations | |
| enum | c6_cam_console_t : uint32_t { k_c6_cam_console_text_max = 512U , k_c6_cam_decimal_digits = 10U , k_c6_cam_ipv4_high_shift = 24U , k_c6_cam_ipv4_octet_mask = 0xFFU } |
| Bounded formatting sizes and IPv4 extraction constants. More... | |
Functions | |
| void | c6_cam_puts (const char *text) |
| Write a bounded NUL-terminated string to SCI8. | |
| void | c6_cam_put_u32 (uint32_t value) |
| Write one unsigned decimal value to SCI8. | |
| void | c6_cam_put_ip (uint32_t ip) |
| Write one IPv4 address to SCI8. | |
Heap-free console formatting for camera livestream diagnostics.
Implements bounded string, integer, and IPv4 output through the EK-RA8D2 UART console without allocating temporary storage.
Provides bounded decimal, IPv4, and string formatting directly to SCI8 using fixed-size stack buffers and no heap allocation.
Definition in file c6_cam_console.c.
| enum c6_cam_console_t : uint32_t |
Bounded formatting sizes and IPv4 extraction constants.
Definition at line 25 of file c6_cam_console.c.
| void c6_cam_put_ip | ( | uint32_t | ip | ) |
Write one IPv4 address to SCI8.
Formats the network-order address as four dotted decimal octets.
| [in] | ip | IPv4 address in the representation used by the C6/NetX path. |
Definition at line 60 of file c6_cam_console.c.
References c6_cam_put_u32(), c6_cam_puts(), k_c6_cam_ipv4_high_shift, and k_c6_cam_ipv4_octet_mask.
Referenced by internal_c6_cam_worker_entry().
| void c6_cam_put_u32 | ( | uint32_t | value | ) |
Write one unsigned decimal value to SCI8.
Formats the value into fixed stack storage without libc allocation.
| [in] | value | Value to emit. |
Definition at line 44 of file c6_cam_console.c.
References k_c6_cam_decimal_digits, and ra8_board_uart_console_write().
Referenced by c6_cam_camera_report_last_error(), c6_cam_put_ip(), internal_c6_cam_associate(), internal_c6_cam_http_audio(), internal_c6_cam_http_frame(), internal_c6_cam_http_stream(), internal_c6_cam_prepare_camera(), internal_c6_cam_prepare_link(), internal_report_capture_events(), internal_report_jpeg_status_detail(), internal_report_sccb_state(), and sensor_report_register().
| void c6_cam_puts | ( | const char * | text | ) |
Write a bounded NUL-terminated string to SCI8.
Measures at most the helper's fixed string bound before one board-console write.
| [in] | text | NUL-terminated text to emit. |
Definition at line 32 of file c6_cam_console.c.
References k_c6_cam_console_text_max, and ra8_board_uart_console_write().
Referenced by c6_cam_app_run(), c6_cam_camera_report_last_error(), c6_cam_http_serve(), c6_cam_put_ip(), internal_c6_cam_associate(), internal_c6_cam_http_audio(), internal_c6_cam_http_frame(), internal_c6_cam_http_stream(), internal_c6_cam_join(), internal_c6_cam_prepare_camera(), internal_c6_cam_prepare_link(), internal_c6_cam_prepare_media(), internal_c6_cam_report_fault(), internal_c6_cam_setup_or_halt(), internal_c6_cam_worker_entry(), internal_report_capture_events(), internal_report_jpeg_status_detail(), internal_report_sccb_state(), sensor_report_register(), and tx_application_define().