#[doc = r" Value read from the register"]
pub struct R {
bits: u32,
}
impl super::FLASH_PROG_EP {
#[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 MAX_EPR {
bits: u16,
}
impl MAX_EPR {
#[doc = r" Value of the field as raw bits"]
#[inline]
pub fn bits(&self) -> u16 {
self.bits
}
}
#[doc = r" Value of the field"]
pub struct PROGRAM_PWR {
bits: u16,
}
impl PROGRAM_PWR {
#[doc = r" Value of the field as raw bits"]
#[inline]
pub fn bits(&self) -> u16 {
self.bits
}
}
impl R {
#[doc = r" Value of the register as raw bits"]
#[inline]
pub fn bits(&self) -> u32 {
self.bits
}
#[doc = "Bits 16:31 - Internal. Only to be used through TI provided API."]
#[inline]
pub fn max_ep(&self) -> MAX_EPR {
let bits = {
const MASK: u16 = 65535;
const OFFSET: u8 = 16;
((self.bits >> OFFSET) & MASK as u32) as u16
};
MAX_EPR { bits }
}
#[doc = "Bits 0:15 - Internal. Only to be used through TI provided API."]
#[inline]
pub fn program_pw(&self) -> PROGRAM_PWR {
let bits = {
const MASK: u16 = 65535;
const OFFSET: u8 = 0;
((self.bits >> OFFSET) & MASK as u32) as u16
};
PROGRAM_PWR { bits }
}
}