36#include "esp_hosted_header.h"
59typedef enum : uint32_t {
87typedef enum : uint16_t {
118typedef enum : uint16_t {
void c6_hosted_print_banner(uint32_t cpuclk_hz, uint32_t pclka_hz)
Print the port identity, the clocks and the SPI parameters.
void c6_hosted_report_sideband(void)
Sample both side-band lines through the vtable and report them.
void c6_hosted_run_transaction(void)
Clock one full-duplex transaction and report the verdict.
union c6_hosted_frame c6_hosted_frame_t
uint32_t c6_hosted_event_count(void)
Report how many events c6_hosted_on_event has seen.
c6_hosted_link_t
Frame geometry both ends of the link must agree on.
@ k_c6_hosted_frame_bytes
Bytes clocked in one full-duplex transaction.
void c6_hosted_puts(const char *text)
Write a NUL-terminated string to the board console.
void c6_hosted_put_i32(int32_t value)
Emit a signed 32-bit value in decimal.
void c6_hosted_put_u32(uint32_t value)
Emit an unsigned 32-bit value in decimal.
void c6_hosted_put_hex(uint32_t value, uint8_t digits)
Emit a value as a fixed-width lower-case hexadecimal field.
void c6_hosted_print_pin_map(void)
Print the resolved pin map, bus pins and side-band alike.
void c6_hosted_print_pin(const char *label, ra8_esp_hosted_pin_t pin)
Print one packed board pin as <label>=port<n>.pin<n>.
c6_hosted_cfg_t
Link and storage parameters this application chooses.
@ k_c6_hosted_worker_stack
Worker-thread stack, in bytes.
@ k_c6_hosted_worker_prio
Worker priority and preemption threshold.
@ k_c6_hosted_sck_hz
SPI bit rate: the 5 MHz upstream recommends for first light, an order above the probe's 1 MHz.
@ k_c6_hosted_dma_align
Transaction-buffer alignment, in bytes.
@ k_c6_hosted_uart_baud
Console rate, 8N1, over the J-Link OB VCOM.
@ k_c6_hosted_edge_poll_ms
Poll period for a side-band pin with no ICU channel.
@ k_c6_hosted_boot_wait_ms
Settling delay before the first vtable read.
@ k_c6_hosted_heartbeat_ms
Heartbeat gap; the ThreadX tick is 1 ms, so this is also the sleep expressed in ticks.
void c6_hosted_on_event(void *ctx, const char *base, int32_t event_id, const void *data, size_t data_len)
Report an event the port delivered from the vendored core.
c6_hosted_fmt_t
Bounds for the console formatters in src/c6_hosted_console.c.
@ k_c6_hosted_hex_alpha
First nibble value spelled with a letter.
@ k_c6_hosted_str_max
Longest string the console helper emits.
@ k_c6_hosted_hex_byte
Hex digits printed for a byte-wide field.
@ k_c6_hosted_dec_digits
Digits in the widest 32-bit decimal value.
@ k_c6_hosted_hex_bits
Bits per hexadecimal digit.
@ k_c6_hosted_hex_digits
Digits in the widest 32-bit hex value.
@ k_c6_hosted_hex_csum
Hex digits printed for a 16-bit checksum.
@ k_c6_hosted_hex_mask
Nibble mask.
@ k_c6_hosted_dec_radix
Decimal radix.
void c6_hosted_print_gpio(const char *label, const void *gpio_port, int32_t gpio_pin)
Print an H_GPIO_*_Port / H_GPIO_*_Pin pair as one field.
#define MAX_TRANSPORT_BUFFER_SIZE
Bytes moved in one SDIO block transfer.
esp-hosted port header: full-duplex SPI transport buffer size.
ra8_board_eth_pin_t pin
Pin.
THE single point of change for the RA8 <-> ESP32-C6 harness map.
ra8_esp_hosted_pin_t
RA8-side pin assignment for every esp-hosted link signal.
One esp-hosted transaction buffer, addressable either way.
uint8_t bytes[k_c6_hosted_frame_bytes]
The transaction as the transport sees it: flat bytes.
struct esp_payload_header header
The same storage as the protocol sees it: a payload header.