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

Decoded snapshot of VBTBPSR. More...

#include <ra8_bkup.h>

Data Fields

ra8_bkup_source_t source
 Active power source right now.
bool vbatt_r_ok
 VBPORM: VBATT_R > VPORBATT (post-OK).
bool por_detected
 VBPORF: VBATT_POR reset latched (W0C).
uint8_t tamper_flags
 Raw VBTADSR.VBTADF[2:0] mask.
uint8_t raw_vbtbpsr
 Unmodified VBTBPSR (debug aid).

Detailed Description

Decoded snapshot of VBTBPSR.

cppcheck cannot see tests/ so it flags every field as unused; the fields are written by ra8_bkup_get_status and consumed by application code / tests.

Definition at line 162 of file ra8_bkup.h.

Field Documentation

◆ por_detected

bool ra8_bkup_status_t::por_detected

VBPORF: VBATT_POR reset latched (W0C).

Definition at line 165 of file ra8_bkup.h.

Referenced by ra8_bkup_get_status().

◆ raw_vbtbpsr

uint8_t ra8_bkup_status_t::raw_vbtbpsr

Unmodified VBTBPSR (debug aid).

Definition at line 167 of file ra8_bkup.h.

Referenced by ra8_bkup_get_status().

◆ source

ra8_bkup_source_t ra8_bkup_status_t::source

Active power source right now.

Definition at line 163 of file ra8_bkup.h.

Referenced by ra8_bkup_get_status().

◆ tamper_flags

uint8_t ra8_bkup_status_t::tamper_flags

Raw VBTADSR.VBTADF[2:0] mask.

Definition at line 166 of file ra8_bkup.h.

Referenced by ra8_bkup_get_status().

◆ vbatt_r_ok

bool ra8_bkup_status_t::vbatt_r_ok

VBPORM: VBATT_R > VPORBATT (post-OK).

Definition at line 164 of file ra8_bkup.h.

Referenced by ra8_bkup_get_status().


The documentation for this struct was generated from the following file: