pub type R = crate::R<IOGCSRrs>;
pub type W = crate::W<IOGCSRrs>;
pub type G1E_R = crate::BitReader;
pub type G1E_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type G2E_R = crate::BitReader;
pub type G2E_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type G3E_R = crate::BitReader;
pub type G3E_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type G4E_R = crate::BitReader;
pub type G4E_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type G5E_R = crate::BitReader;
pub type G5E_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type G6E_R = crate::BitReader;
pub type G6E_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type G7E_R = crate::BitReader;
pub type G7E_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type G8E_R = crate::BitReader;
pub type G8E_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type G1S_R = crate::BitReader;
pub type G2S_R = crate::BitReader;
pub type G3S_R = crate::BitReader;
pub type G4S_R = crate::BitReader;
pub type G5S_R = crate::BitReader;
pub type G6S_R = crate::BitReader;
pub type G7S_R = crate::BitReader;
pub type G7S_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type G8S_R = crate::BitReader;
pub type G8S_W<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
#[inline(always)]
pub fn g1e(&self) -> G1E_R {
G1E_R::new((self.bits & 1) != 0)
}
#[inline(always)]
pub fn g2e(&self) -> G2E_R {
G2E_R::new(((self.bits >> 1) & 1) != 0)
}
#[inline(always)]
pub fn g3e(&self) -> G3E_R {
G3E_R::new(((self.bits >> 2) & 1) != 0)
}
#[inline(always)]
pub fn g4e(&self) -> G4E_R {
G4E_R::new(((self.bits >> 3) & 1) != 0)
}
#[inline(always)]
pub fn g5e(&self) -> G5E_R {
G5E_R::new(((self.bits >> 4) & 1) != 0)
}
#[inline(always)]
pub fn g6e(&self) -> G6E_R {
G6E_R::new(((self.bits >> 5) & 1) != 0)
}
#[inline(always)]
pub fn g7e(&self) -> G7E_R {
G7E_R::new(((self.bits >> 6) & 1) != 0)
}
#[inline(always)]
pub fn g8e(&self) -> G8E_R {
G8E_R::new(((self.bits >> 7) & 1) != 0)
}
#[inline(always)]
pub fn g1s(&self) -> G1S_R {
G1S_R::new(((self.bits >> 16) & 1) != 0)
}
#[inline(always)]
pub fn g2s(&self) -> G2S_R {
G2S_R::new(((self.bits >> 17) & 1) != 0)
}
#[inline(always)]
pub fn g3s(&self) -> G3S_R {
G3S_R::new(((self.bits >> 18) & 1) != 0)
}
#[inline(always)]
pub fn g4s(&self) -> G4S_R {
G4S_R::new(((self.bits >> 19) & 1) != 0)
}
#[inline(always)]
pub fn g5s(&self) -> G5S_R {
G5S_R::new(((self.bits >> 20) & 1) != 0)
}
#[inline(always)]
pub fn g6s(&self) -> G6S_R {
G6S_R::new(((self.bits >> 21) & 1) != 0)
}
#[inline(always)]
pub fn g7s(&self) -> G7S_R {
G7S_R::new(((self.bits >> 22) & 1) != 0)
}
#[inline(always)]
pub fn g8s(&self) -> G8S_R {
G8S_R::new(((self.bits >> 23) & 1) != 0)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("IOGCSR")
.field("g8s", &self.g8s())
.field("g7s", &self.g7s())
.field("g6s", &self.g6s())
.field("g5s", &self.g5s())
.field("g4s", &self.g4s())
.field("g3s", &self.g3s())
.field("g2s", &self.g2s())
.field("g1s", &self.g1s())
.field("g8e", &self.g8e())
.field("g7e", &self.g7e())
.field("g6e", &self.g6e())
.field("g5e", &self.g5e())
.field("g4e", &self.g4e())
.field("g3e", &self.g3e())
.field("g2e", &self.g2e())
.field("g1e", &self.g1e())
.finish()
}
}
impl W {
#[inline(always)]
pub fn g1e(&mut self) -> G1E_W<IOGCSRrs> {
G1E_W::new(self, 0)
}
#[inline(always)]
pub fn g2e(&mut self) -> G2E_W<IOGCSRrs> {
G2E_W::new(self, 1)
}
#[inline(always)]
pub fn g3e(&mut self) -> G3E_W<IOGCSRrs> {
G3E_W::new(self, 2)
}
#[inline(always)]
pub fn g4e(&mut self) -> G4E_W<IOGCSRrs> {
G4E_W::new(self, 3)
}
#[inline(always)]
pub fn g5e(&mut self) -> G5E_W<IOGCSRrs> {
G5E_W::new(self, 4)
}
#[inline(always)]
pub fn g6e(&mut self) -> G6E_W<IOGCSRrs> {
G6E_W::new(self, 5)
}
#[inline(always)]
pub fn g7e(&mut self) -> G7E_W<IOGCSRrs> {
G7E_W::new(self, 6)
}
#[inline(always)]
pub fn g8e(&mut self) -> G8E_W<IOGCSRrs> {
G8E_W::new(self, 7)
}
#[inline(always)]
pub fn g7s(&mut self) -> G7S_W<IOGCSRrs> {
G7S_W::new(self, 22)
}
#[inline(always)]
pub fn g8s(&mut self) -> G8S_W<IOGCSRrs> {
G8S_W::new(self, 23)
}
}
pub struct IOGCSRrs;
impl crate::RegisterSpec for IOGCSRrs {
type Ux = u32;
}
impl crate::Readable for IOGCSRrs {}
impl crate::Writable for IOGCSRrs {
type Safety = crate::Unsafe;
const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
}
impl crate::Resettable for IOGCSRrs {
const RESET_VALUE: u32 = 0;
}