ra8-firmware 0.1.0
Bare-metal firmware for the Renesas RA8 family (RA8D2 / RA8P1)
Loading...
Searching...
No Matches
port_esp_hosted_host_spi_hd.h File Reference

esp-hosted port header: half-duplex SPI transport buffer size. More...

#include <stdint.h>
#include "esp_hosted_transport.h"
Include dependency graph for port_esp_hosted_host_spi_hd.h:

Go to the source code of this file.

Macros

#define MAX_TRANSPORT_BUFFER_SIZE   (ESP_TRANSPORT_SPI_HD_MAX_BUF_SIZE)
 Bytes moved in one half-duplex SPI transaction.

Detailed Description

esp-hosted port header: half-duplex SPI transport buffer size.

Tag
[Ring 4 / PORT] {World: NS}

One of the ten port headers the vendored esp-hosted core includes by name (see docs/SOUP/esp-hosted-host.md). This project selects the full-duplex SPI transport, but transport selection is a preprocessor chain evaluated inside shared vendored files, so the half-duplex header must exist with its upstream name and its one upstream macro.

Since
0.1.0

Definition in file port_esp_hosted_host_spi_hd.h.

Macro Definition Documentation

◆ MAX_TRANSPORT_BUFFER_SIZE

#define MAX_TRANSPORT_BUFFER_SIZE   (ESP_TRANSPORT_SPI_HD_MAX_BUF_SIZE)

Bytes moved in one half-duplex SPI transaction.

Derived from the vendored ESP_TRANSPORT_SPI_HD_MAX_BUF_SIZE (1600). Half-duplex splits a transaction into command, address and data phases, so unlike the full-duplex transport the buffer bounds one direction at a time rather than both at once.

Note
Read-only build configuration.
Warning
Only meaningful when H_TRANSPORT_IN_USE == H_TRANSPORT_SPI_HD.
Example:
uint8_t *buf = malloc(MAX_TRANSPORT_BUFFER_SIZE);
#define MAX_TRANSPORT_BUFFER_SIZE
Bytes moved in one half-duplex SPI transaction.
Since
0.1.0

Definition at line 45 of file port_esp_hosted_host_spi_hd.h.