#[doc = r" Value read from the register"]
pub struct R {
bits: u32,
}
impl super::FLASH_P_R_PV {
#[doc = r" Reads the contents of the register"]
#[inline]
pub fn read(&self) -> R {
R { bits: self.register.get() }
}
}
#[doc = r" Value of the field"]
pub struct PHR {
bits: u8,
}
impl PHR {
#[doc = r" Value of the field as raw bits"]
#[inline]
pub fn bits(&self) -> u8 {
self.bits
}
}
#[doc = r" Value of the field"]
pub struct RHR {
bits: u8,
}
impl RHR {
#[doc = r" Value of the field as raw bits"]
#[inline]
pub fn bits(&self) -> u8 {
self.bits
}
}
#[doc = r" Value of the field"]
pub struct PVHR {
bits: u8,
}
impl PVHR {
#[doc = r" Value of the field as raw bits"]
#[inline]
pub fn bits(&self) -> u8 {
self.bits
}
}
#[doc = r" Value of the field"]
pub struct PVH2R {
bits: u8,
}
impl PVH2R {
#[doc = r" Value of the field as raw bits"]
#[inline]
pub fn bits(&self) -> u8 {
self.bits
}
}
impl R {
#[doc = r" Value of the register as raw bits"]
#[inline]
pub fn bits(&self) -> u32 {
self.bits
}
#[doc = "Bits 24:31 - Internal. Only to be used through TI provided API."]
#[inline]
pub fn ph(&self) -> PHR {
let bits = {
const MASK: u8 = 255;
const OFFSET: u8 = 24;
((self.bits >> OFFSET) & MASK as u32) as u8
};
PHR { bits }
}
#[doc = "Bits 16:23 - Internal. Only to be used through TI provided API."]
#[inline]
pub fn rh(&self) -> RHR {
let bits = {
const MASK: u8 = 255;
const OFFSET: u8 = 16;
((self.bits >> OFFSET) & MASK as u32) as u8
};
RHR { bits }
}
#[doc = "Bits 8:15 - Internal. Only to be used through TI provided API."]
#[inline]
pub fn pvh(&self) -> PVHR {
let bits = {
const MASK: u8 = 255;
const OFFSET: u8 = 8;
((self.bits >> OFFSET) & MASK as u32) as u8
};
PVHR { bits }
}
#[doc = "Bits 0:7 - Internal. Only to be used through TI provided API."]
#[inline]
pub fn pvh2(&self) -> PVH2R {
let bits = {
const MASK: u8 = 255;
const OFFSET: u8 = 0;
((self.bits >> OFFSET) & MASK as u32) as u8
};
PVH2R { bits }
}
}