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

Snapshot of the regulator state. More...

#include <ra8_vreg.h>

Data Fields

uint8_t dcdcctl
 Raw DCDCCTL value.
uint8_t vccsel
 Raw VCCSEL value.
uint8_t lvocr
 Raw LVOCR value.
ra8_vreg_mode_t mode
 Decoded mode (LDO / DCDC).
ra8_vreg_vccsel_t vccsel_dec
 Decoded VCCSEL.
ra8_vreg_lv_profile_t lv_profile
 Decoded LVOCR profile.
ra8_vreg_ocp_t ocp
 Decoded OCP setting.
bool dcdc_ready
 True when DCDCON=1 and PD=0.
bool fast_startup
 True when DCDCCTL.FST is set.
bool ldo_boost
 True when DCDCCTL.LCBOOST is set.
bool io_buf_on
 True when DCDCCTL.STOPZA is set.

Detailed Description

Snapshot of the regulator state.

Decoded view returned by ra8_vreg_get_status(). Both the raw register values and the decoded enum forms are exposed so a caller can pick whichever level of detail it needs.

Definition at line 234 of file ra8_vreg.h.

Field Documentation

◆ dcdc_ready

bool ra8_vreg_status_t::dcdc_ready

True when DCDCON=1 and PD=0.

Definition at line 242 of file ra8_vreg.h.

Referenced by ra8_vreg_get_status().

◆ dcdcctl

uint8_t ra8_vreg_status_t::dcdcctl

Raw DCDCCTL value.

Definition at line 235 of file ra8_vreg.h.

Referenced by ra8_vreg_get_status().

◆ fast_startup

bool ra8_vreg_status_t::fast_startup

True when DCDCCTL.FST is set.

Definition at line 243 of file ra8_vreg.h.

Referenced by ra8_vreg_get_status().

◆ io_buf_on

bool ra8_vreg_status_t::io_buf_on

True when DCDCCTL.STOPZA is set.

Definition at line 245 of file ra8_vreg.h.

Referenced by ra8_vreg_get_status().

◆ ldo_boost

bool ra8_vreg_status_t::ldo_boost

True when DCDCCTL.LCBOOST is set.

Definition at line 244 of file ra8_vreg.h.

Referenced by ra8_vreg_get_status().

◆ lv_profile

ra8_vreg_lv_profile_t ra8_vreg_status_t::lv_profile

Decoded LVOCR profile.

Definition at line 240 of file ra8_vreg.h.

Referenced by ra8_vreg_get_status().

◆ lvocr

uint8_t ra8_vreg_status_t::lvocr

Raw LVOCR value.

Definition at line 237 of file ra8_vreg.h.

Referenced by ra8_vreg_get_status().

◆ mode

ra8_vreg_mode_t ra8_vreg_status_t::mode

Decoded mode (LDO / DCDC).

Definition at line 238 of file ra8_vreg.h.

Referenced by ra8_vreg_get_status().

◆ ocp

ra8_vreg_ocp_t ra8_vreg_status_t::ocp

Decoded OCP setting.

Definition at line 241 of file ra8_vreg.h.

Referenced by ra8_vreg_get_status().

◆ vccsel

uint8_t ra8_vreg_status_t::vccsel

Raw VCCSEL value.

Definition at line 236 of file ra8_vreg.h.

Referenced by ra8_vreg_get_status().

◆ vccsel_dec

ra8_vreg_vccsel_t ra8_vreg_status_t::vccsel_dec

Decoded VCCSEL.

Definition at line 239 of file ra8_vreg.h.

Referenced by ra8_vreg_get_status().


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