31static const char*
s_tag =
"NSCIO";
Full-featured High-Speed Analog Comparator (ACMPHS) driver.
ra8_err_t ra8_acmphs_read_output(uint8_t channel, ra8_level_t *out)
Read the live output of a channel.
ra8_err_t ra8_acmphs_init(void)
Legacy init – reset every channel to its power-on state.
Full-featured ADC_B driver.
ra8_err_t ra8_adc_read_channel(uint8_t channel, uint16_t *out_raw)
Blocking single-channel sample.
ra8_err_t ra8_adc_init(void)
Legacy init – 14-bit right-aligned, software trigger.
static const char * s_tag
Logging / check tag.
#define RA8_NSC_VENEER
Mark a TrustZone Secure-to-Non-Secure entry-point veneer.
Validation and Error-Checking Macros for ra8-firmware.
#define RA8_CHECK_NULL_PTR(ptr, tag, message)
Reject nullptr pointer, returning k_ra8_err_null_ptr.
CRC hardware calculator driver header.
ra8_err_t ra8_crc_init(ra8_crc_poly_t poly)
Configure the CRC block for a given polynomial.
ra8_err_t ra8_crc_compute(const uint8_t *data, uint32_t len, uint32_t *out_crc)
Compute a CRC over a byte buffer.
ra8_crc_poly_t
Polynomial selection values written to CRCCR0.GPS[2:0].
Full-featured 12-bit DAC_B driver.
ra8_err_t ra8_dac_b_init(void)
Legacy init – zero every DAC_B register + enable MSTP.
ra8_err_t ra8_dac_b_write(uint8_t channel, uint16_t value)
Programme a DAC channel with a 12-bit code.
Error Code Definitions for ra8-firmware.
ra8_err_codes_t ra8_err_t
Canonical error-return type used by every ra8-firmware API.
Ethernet Switch Module (ESWM) + frame TX/RX driver.
ra8_err_t ra8_eth_init(void)
Initialise the ESWM block (MSTP enable + reset regs).
Graphics LCD Controller driver (two-layer with alpha blending).
ra8_err_t ra8_glcdc_init(const ra8_glcdc_config_t *cfg)
Initialise GLCDC with the EK-RA8D2 1024x600 timings and the supplied graphics layer 1 framebuffer.
Full-featured General PWM Timer (GPT) driver.
ra8_err_t ra8_gpt_init(uint8_t channel, const ra8_gpt_cfg_t *cfg)
Initialise a GPT channel with a full config descriptor.
ra8_err_t ra8_gpt_read(uint8_t channel, uint32_t *out)
Read the current counter value.
ra8_err_t ra8_nsc_dac_b_write(uint8_t channel, uint16_t value)
NSC veneer: write a 12-bit value to a DAC-B channel.
ra8_err_t ra8_nsc_acmphs_init(void)
NSC veneer: bring up the high-speed analog comparator block.
ra8_err_t ra8_nsc_acmphs_read_output(uint8_t channel, ra8_level_t *out)
NSC veneer: read a comparator output level.
ra8_err_t ra8_nsc_glcdc_init(const ra8_glcdc_config_t *cfg)
NSC veneer: bring up the graphics LCD controller.
ra8_err_t ra8_nsc_pdm_init(void)
NSC veneer: bring up the PDM microphone interface.
ra8_err_t ra8_nsc_crc_compute(const uint8_t *data, uint32_t len, uint32_t *out_crc)
NSC veneer: compute CRC over a buffer.
ra8_err_t ra8_nsc_gpt_read(uint8_t channel, uint32_t *out)
NSC veneer: read the current GPT counter value.
ra8_err_t ra8_nsc_gpt_init(uint8_t channel, const ra8_gpt_cfg_t *cfg)
NSC veneer: bring up a GPT channel.
ra8_err_t ra8_nsc_dac_b_init(void)
NSC veneer: bring up the DAC-B unit.
ra8_err_t ra8_nsc_eth_init(void)
NSC veneer: bring up the ethernet switch module.
ra8_err_t ra8_nsc_adc_init(void)
NSC veneer: bring up the ADC.
ra8_err_t ra8_nsc_adc_read_channel(uint8_t channel, uint16_t *out_raw)
NSC veneer: read one ADC channel sample.
ra8_err_t ra8_nsc_crc_init(ra8_crc_poly_t poly)
NSC veneer: bring up the CRC unit with a polynomial.
NSC veneers for the I/O drivers.
Macros for declaring Non-Secure Callable veneer functions.
#define RA8_NSC_CHECK_NS_RANGE_R(ptr, len)
RA8 NSC CHECK NS RANGE r.
#define RA8_NSC_CHECK_NS_RANGE_RW(ptr, len)
RA8 NSC CHECK NS RANGE RW.
Pulse Density Modulation Interface (PDM-IF) capture driver.
ra8_err_t ra8_pdm_init(void)
Release the PDM-IF module stop and reset its common bank.
ra8_level_t
Digital output / input level.
Minimal GLCDC configuration for a single-layer panel.
Configuration descriptor for ra8_gpt_init.