29 if (text ==
nullptr) {
44 uint32_t rest = value;
52 for (uint32_t i = 0U; i < count; i++) {
53 out[i] = digits[count - 1U - i];
64 for (uint8_t i = 0U; i < digits; i++) {
68 ? (uint8_t)(
'0' + nibble)
106 c6_join_puts(
"c6_join: EK-RA8D2 <-> ESP32-C6 Wi-Fi join + DHCP + reachability\r\n");
Shared contract for the C6 Wi-Fi join + DHCP + reachability app.
@ k_c6_join_ip_shift_1
Shift for the second octet.
@ k_c6_join_ip_shift_2
Shift for the third octet.
@ k_c6_join_ip_shift_0
Shift for the first (highest) octet.
@ k_c6_join_ip_shift_3
Shift for the fourth (lowest) octet.
@ k_c6_join_sck_hz
SPI bit rate; the rate silicon ran at.
@ k_c6_join_str_max
Longest string the console helper emits.
@ k_c6_join_hex_byte
Hex digits printed for a byte-wide field.
@ k_c6_join_hex_bits
Bits per hexadecimal digit.
@ k_c6_join_dec_digits
Digits in the widest 32-bit decimal value.
@ k_c6_join_ip_mask
Single-octet mask for IPv4 formatting.
@ k_c6_join_hex_mask
Nibble mask.
@ k_c6_join_dec_radix
Decimal radix.
@ k_c6_join_ip_octets
Octets in an IPv4 address.
@ k_c6_join_hex_digits
Digits in the widest 32-bit hex value.
@ k_c6_join_hex_alpha
First nibble value spelled with a letter.
void c6_join_print_banner(uint32_t cpuclk_hz, uint32_t pclka_hz)
Print the banner: identity, clocks and link parameters.
void c6_join_put_hex(uint32_t value, uint8_t digits)
Emit a value as a fixed-width lower-case hexadecimal field.
void c6_join_put_ip(uint32_t ip)
Implementation of c6_join_put_ip() – four octets, dot-separated.
void c6_join_put_u32(uint32_t value)
Implementation of c6_join_put_u32() – reversed division loop.
void c6_join_put_mac(const ra8_c6link_mac_t *mac)
Emit an IEEE 802 address as six colon-separated hexadecimal octets.
void c6_join_puts(const char *text)
Write a NUL-terminated string to the board console.
Board-support layer for the Renesas EK-RA8D2 v1 evaluation kit.
@ k_ra8_board_pmod1_sci_channel
Pmod1 (J26) Simple-SPI is SCI2.
ra8_err_t ra8_board_uart_console_write(const uint8_t *data, size_t len)
Polled blocking write to the J-Link OB VCOM console.
The single integration boundary between this firmware and the ESP32-C6.
struct ra8_c6link_mac ra8_c6link_mac_t
@ k_ra8_c6link_mac_bytes
Octets in an IEEE 802 address.
@ k_ra8_c6link_max_payload
Largest payload one frame can carry.
@ k_ra8_c6link_frame_bytes
Bytes in one transaction; ESP_TRANSPORT_SPI_MAX_BUF_SIZE upstream.
uint8_t octet[k_ra8_c6link_mac_bytes]
Address octets, first on the wire first.