///Register `VVACCR` reader
pub type R = crate::R<VVACCRrs>;
///Field `VA` reader - Vertical active duration
pub type VA_R = crate::FieldReader<u16>;
impl R {
///Bits 0:13 - Vertical active duration
#[inline(always)]
pub fn va(&self) -> VA_R {
VA_R::new((self.bits & 0x3fff) as u16)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("VVACCR").field("va", &self.va()).finish()
}
}
/**DSI Host video VA current configuration register
You can [`read`](crate::Reg::read) this register and get [`vvaccr::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api).*/
pub struct VVACCRrs;
impl crate::RegisterSpec for VVACCRrs {
type Ux = u32;
}
///`read()` method returns [`vvaccr::R`](R) reader structure
impl crate::Readable for VVACCRrs {}
///`reset()` method sets VVACCR to value 0
impl crate::Resettable for VVACCRrs {}