pub type R = crate::R<P0CSCSZRrs>;
pub type HSIZE_R = crate::FieldReader<u16>;
pub type VSIZE_R = crate::FieldReader<u16>;
pub type POSNEG_R = crate::BitReader;
pub type ENABLE_R = crate::BitReader;
impl R {
#[inline(always)]
pub fn hsize(&self) -> HSIZE_R {
HSIZE_R::new((self.bits & 0x0fff) as u16)
}
#[inline(always)]
pub fn vsize(&self) -> VSIZE_R {
VSIZE_R::new(((self.bits >> 16) & 0x0fff) as u16)
}
#[inline(always)]
pub fn posneg(&self) -> POSNEG_R {
POSNEG_R::new(((self.bits >> 30) & 1) != 0)
}
#[inline(always)]
pub fn enable(&self) -> ENABLE_R {
ENABLE_R::new(((self.bits >> 31) & 1) != 0)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("P0CSCSZR")
.field("hsize", &self.hsize())
.field("vsize", &self.vsize())
.field("posneg", &self.posneg())
.field("enable", &self.enable())
.finish()
}
}
pub struct P0CSCSZRrs;
impl crate::RegisterSpec for P0CSCSZRrs {
type Ux = u32;
}
impl crate::Readable for P0CSCSZRrs {}
impl crate::Resettable for P0CSCSZRrs {}