pub type R = crate::R<LBARrs>;
pub type W = crate::W<LBARrs>;
pub type LBA_R = crate::FieldReader<u16>;
pub type LBA_W<'a, REG> = crate::FieldWriter<'a, REG, 16, u16>;
impl R {
#[inline(always)]
pub fn lba(&self) -> LBA_R {
LBA_R::new(((self.bits >> 16) & 0xffff) as u16)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("LBAR").field("lba", &self.lba()).finish()
}
}
impl W {
#[inline(always)]
pub fn lba(&mut self) -> LBA_W<LBARrs> {
LBA_W::new(self, 16)
}
}
pub struct LBARrs;
impl crate::RegisterSpec for LBARrs {
type Ux = u32;
}
impl crate::Readable for LBARrs {}
impl crate::Writable for LBARrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for LBARrs {}