pub type R = crate::R<BRRrs>;
pub type W = crate::W<BRRrs>;
pub type BR_R = crate::FieldReader;
pub type BR_W<'a, REG> = crate::FieldWriter<'a, REG, 8>;
impl R {
#[inline(always)]
pub fn br(&self) -> BR_R {
BR_R::new((self.bits & 0xff) as u8)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("BRR").field("br", &self.br()).finish()
}
}
impl W {
#[inline(always)]
pub fn br(&mut self) -> BR_W<BRRrs> {
BR_W::new(self, 0)
}
}
pub struct BRRrs;
impl crate::RegisterSpec for BRRrs {
type Ux = u32;
}
impl crate::Readable for BRRrs {}
impl crate::Writable for BRRrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for BRRrs {
const RESET_VALUE: u32 = 0x01;
}