pub type R = crate::R<GOTGINTrs>;
pub type W = crate::W<GOTGINTrs>;
pub type SEDET_R = crate::BitReader;
pub type SEDET_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type SRSSCHG_R = crate::BitReader;
pub type SRSSCHG_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type HNSSCHG_R = crate::BitReader;
pub type HNSSCHG_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type HNGDET_R = crate::BitReader;
pub type HNGDET_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type ADTOCHG_R = crate::BitReader;
pub type ADTOCHG_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type DBCDNE_R = crate::BitReader;
pub type DBCDNE_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type IDCHNG_R = crate::BitReader;
pub type IDCHNG_W<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
#[inline(always)]
pub fn sedet(&self) -> SEDET_R {
SEDET_R::new(((self.bits >> 2) & 1) != 0)
}
#[inline(always)]
pub fn srsschg(&self) -> SRSSCHG_R {
SRSSCHG_R::new(((self.bits >> 8) & 1) != 0)
}
#[inline(always)]
pub fn hnsschg(&self) -> HNSSCHG_R {
HNSSCHG_R::new(((self.bits >> 9) & 1) != 0)
}
#[inline(always)]
pub fn hngdet(&self) -> HNGDET_R {
HNGDET_R::new(((self.bits >> 17) & 1) != 0)
}
#[inline(always)]
pub fn adtochg(&self) -> ADTOCHG_R {
ADTOCHG_R::new(((self.bits >> 18) & 1) != 0)
}
#[inline(always)]
pub fn dbcdne(&self) -> DBCDNE_R {
DBCDNE_R::new(((self.bits >> 19) & 1) != 0)
}
#[inline(always)]
pub fn idchng(&self) -> IDCHNG_R {
IDCHNG_R::new(((self.bits >> 20) & 1) != 0)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("GOTGINT")
.field("sedet", &self.sedet())
.field("srsschg", &self.srsschg())
.field("hnsschg", &self.hnsschg())
.field("hngdet", &self.hngdet())
.field("adtochg", &self.adtochg())
.field("dbcdne", &self.dbcdne())
.field("idchng", &self.idchng())
.finish()
}
}
impl W {
#[inline(always)]
pub fn sedet(&mut self) -> SEDET_W<GOTGINTrs> {
SEDET_W::new(self, 2)
}
#[inline(always)]
pub fn srsschg(&mut self) -> SRSSCHG_W<GOTGINTrs> {
SRSSCHG_W::new(self, 8)
}
#[inline(always)]
pub fn hnsschg(&mut self) -> HNSSCHG_W<GOTGINTrs> {
HNSSCHG_W::new(self, 9)
}
#[inline(always)]
pub fn hngdet(&mut self) -> HNGDET_W<GOTGINTrs> {
HNGDET_W::new(self, 17)
}
#[inline(always)]
pub fn adtochg(&mut self) -> ADTOCHG_W<GOTGINTrs> {
ADTOCHG_W::new(self, 18)
}
#[inline(always)]
pub fn dbcdne(&mut self) -> DBCDNE_W<GOTGINTrs> {
DBCDNE_W::new(self, 19)
}
#[inline(always)]
pub fn idchng(&mut self) -> IDCHNG_W<GOTGINTrs> {
IDCHNG_W::new(self, 20)
}
}
pub struct GOTGINTrs;
impl crate::RegisterSpec for GOTGINTrs {
type Ux = u32;
}
impl crate::Readable for GOTGINTrs {}
impl crate::Writable for GOTGINTrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for GOTGINTrs {}