70typedef enum : uint8_t {
Error Code Definitions for ra8-firmware.
ra8_err_codes_t ra8_err_t
Canonical error-return type used by every ra8-firmware API.
Typed Port / Pin Constants for the RA8D2 IOPORT Module.
ra8_port_pin_t
Packed (port << 8) | pin pin identifier.
ra8_err_t ra8_sdfont_load(const ra8_sdfont_cfg_t *cfg, uint8_t *buf, uint32_t cap, uint32_t *out_len, ra8_sdfont_source_t *out_source)
Mount the Pmod SD card and load a font, provisioning it if absent.
ra8_sdfont_source_t
Provenance of the font bytes returned by ra8_sdfont_load.
@ k_ra8_sdfont_source_card
File already on the card; read as-is.
@ k_ra8_sdfont_source_provisioned
File was absent; written from the blob, then read back from the card.
SD-card font-store bus description + provisioning policy.
ra8_port_pin_t copi
Controller-Out / Peripheral-In pin.
uint32_t provision_len
Length of provision_blob in bytes.
ra8_port_pin_t sck
SPI clock pin.
ra8_port_pin_t cipo
Controller-In / Peripheral-Out pin.
uint8_t spi_channel
SCI channel in Simple-SPI mode (Pmod2 = SCI0 = 0).
ra8_port_pin_t cs
Chip-select pin, driven as a GPIO output.
const char * filename
8.3 file to load; NULL selects "FONT.OTF".
const uint8_t * provision_blob
Fallback font written if the file is absent; NULL disables provisioning (read-only load).
uint32_t pclka_hz
PCLKA rate (Hz) feeding the SCI baud divider.