61typedef enum : uint8_t {
214 uint32_t after_assert_val,
Annotation-attribute framework macros for ra8-firmware.
#define RA8_PRIV
Module-private helper: shared across TUs but only inside one library.
Error Code Definitions for ra8-firmware.
ra8_err_codes_t ra8_err_t
Canonical error-return type used by every ra8-firmware API.
const ra8_lvd_channel_map_t g_lvd_map[k_ra8_lvd_map_idx_count]
Lookup table from ra8_lvd_map_idx_t to register offsets.
Programmable Voltage Detection (PVD / LVD) HAL driver.
bool priv_ra8_lvd_internal_reject_hvd_after(uint32_t hvd_val, uint32_t after_assert_val, uint32_t hysteresis, uint32_t negate)
Pure predicate for "RN=1 prohibited when RHSEL=1" rejection.
ra8_err_t priv_ra8_lvd_internal_channel_to_idx(ra8_lvd_channel_t channel, uint8_t *out_idx)
Translate a public channel id to an index into g_lvd_map.
ra8_err_t priv_ra8_lvd_internal_validate_div(ra8_lvd_loco_div_t div)
Validate FSAMP[1:0] candidate (0..3).
uint8_t priv_ra8_lvd_internal_read_ri(const ra8_lvd_channel_map_t *map)
Read PVDmCR0.RI for an m channel.
bool priv_ra8_lvd_internal_set_ri_bit(uint32_t reset_val, uint32_t reset_on_rise_val, uint32_t response)
Pure predicate for the CR0 "set RI bit" decision.
ra8_lvd_map_idx_t
Indices into g_lvd_map.
@ k_ra8_lvd_map_idx_ch5
PVD5.
@ k_ra8_lvd_map_idx_ch4
PVD4.
@ k_ra8_lvd_map_idx_count
Sentinel.
@ k_ra8_lvd_map_idx_ch2
PVD2.
@ k_ra8_lvd_map_idx_ch1
PVD1.
void priv_ra8_lvd_internal_cr0_rmw(const ra8_lvd_channel_map_t *map, uint8_t clear_mask, uint8_t set_bits)
Read-modify-write helper for PVDmCR0 / PVDnCR0 with reserved-bit rewrite forced.
ra8_lvd_off_t
Absolute addresses of every PVD-related register on the RA8D2.
ra8_lvd_loco_div_t
PVDmCR0.FSAMP[1:0] / PVDnCR0.FSAMP[1:0] sampling-clock divider.
ra8_lvd_channel_t
Voltage-monitor channel selector.
Per-channel register-offset bundle.
ra8_lvd_off_t fcr
PVDxFCR (RHSEL).
ra8_lvd_off_t cmpcr
PVDxCMPCR offset.
ra8_lvd_off_t cr0
PVDxCR0 offset.
ra8_lvd_off_t cr1
PVDxCR1 (m only; n: same as cr0 stub).
ra8_lvd_off_t sr
PVDxSR (m only; n: same as cr0 stub).
bool has_irq
true for monitor m channels (1, 2).