39static const char*
s_tag =
"BSCAN";
51typedef enum : uint32_t {
75 .expected_idcode = 0U,
static const char * s_tag
Logging / check tag.
Annotation-attribute framework macros for ra8-firmware.
#define RA8_INTERNAL
Marker that a function is intended to be static (file-local).
ra8_err_t ra8_bscan_get_status(ra8_bscan_status_t *out)
Get a snapshot of the driver's TAP bookkeeping state.
ra8_err_t ra8_bscan_clear_status(uint32_t mask)
Clear the recorded last-instruction state (no hardware effect).
ra8_err_t ra8_bscan_deinit(void)
Tear down the bookkeeping object.
ra8_err_t ra8_bscan_set_instruction(ra8_bscan_instr_t instr)
Record the JTIR opcode the external fixture is currently driving.
ra8_err_t ra8_bscan_init(void)
Initialise the firmware-side TAP bookkeeping object.
static ra8_bscan_state_t s_bscan_state
Singleton bookkeeping state.
static bool internal_is_known_instruction(ra8_bscan_instr_t instr)
Validate that an instruction code is one of the named opcodes.
ra8_bscan_clear_arg_t
Allowed values for the mask argument of ra8_bscan_clear_status.
@ k_ra8_bscan_clear_mask_none
No-op mask – the only legal value.
ra8_err_t ra8_bscan_get_idcode(uint32_t *out)
Get the chip's hardwired JTIDR device ID code.
JTAG / IEEE-1149.1 Boundary Scan TAP HAL surface.
JTAG / IEEE-1149.1 Boundary Scan TAP constants for the RA8D2.
@ k_ra8_bscan_jtidr_reset
JTIDR fixed device ID.
ra8_bscan_instr_t
JTIR Test Bit Set (TS[3:0]) command codes.
@ k_ra8_bscan_instr_idcode
Read JTIDR (Renesas code).
@ k_ra8_bscan_instr_clamp
Clamp output pins.
@ k_ra8_bscan_instr_extest
External test mode.
@ k_ra8_bscan_instr_bypass
Bypass register selected.
@ k_ra8_bscan_instr_sample_preload
Sample / preload.
@ k_ra8_bscan_instr_highz
High-impedance output.
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.
Error Code Definitions for ra8-firmware.
@ k_ra8_err_invalid_arg
Invalid function argument.
@ k_ra8_err_not_initialized
Module not initialized – _init() not yet called successfully.
@ k_ra8_ok
Success – operation completed with all postconditions satisfied.
ra8_err_codes_t ra8_err_t
Canonical error-return type used by every ra8-firmware API.
Lightweight Logging Interface for ra8-firmware.
#define ra8_log_info_val(tag, message, value)
RA8 log info val.
#define ra8_log_info(tag, message)
RA8 log info.
Firmware-side TAP bookkeeping object.
bool initialized
True between init and deinit.
uint32_t expected_idcode
JTIDR value the fixture should see.
ra8_bscan_instr_t last_instruction
Last opcode the fixture reported.
Snapshot of the firmware-side TAP bookkeeping object.
uint32_t expected_idcode
JTIDR value the fixture should observe.
ra8_bscan_instr_t last_instruction
Last JTIR opcode reported by the fixture.
bool initialized
True once ra8_bscan_init ran.