#[doc = "Register `DIR%s` reader"]
pub type R = crate::R<DirSpec>;
#[doc = "Register `DIR%s` writer"]
pub type W = crate::W<DirSpec>;
#[doc = "Field `PINDIR0` reader - Fast GPIO Direction PORTx control bits. Bit 0 in DIRx controls pin Px\\[0\\], bit 31 in DIRx controls pin Px\\[31\\]. 0 = Controlled pin is input. 1 = Controlled pin is output."]
pub type Pindir0R = crate::BitReader;
#[doc = "Field `PINDIR0` writer - Fast GPIO Direction PORTx control bits. Bit 0 in DIRx controls pin Px\\[0\\], bit 31 in DIRx controls pin Px\\[31\\]. 0 = Controlled pin is input. 1 = Controlled pin is output."]
pub type Pindir0W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `PINDIR1` reader - Fast GPIO Direction PORTx control bits. Bit 0 in DIRx controls pin Px\\[0\\], bit 31 in DIRx controls pin Px\\[31\\]. 0 = Controlled pin is input. 1 = Controlled pin is output."]
pub type Pindir1R = crate::BitReader;
#[doc = "Field `PINDIR1` writer - Fast GPIO Direction PORTx control bits. Bit 0 in DIRx controls pin Px\\[0\\], bit 31 in DIRx controls pin Px\\[31\\]. 0 = Controlled pin is input. 1 = Controlled pin is output."]
pub type Pindir1W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `PINDIR2` reader - Fast GPIO Direction PORTx control bits. Bit 0 in DIRx controls pin Px\\[0\\], bit 31 in DIRx controls pin Px\\[31\\]. 0 = Controlled pin is input. 1 = Controlled pin is output."]
pub type Pindir2R = crate::BitReader;
#[doc = "Field `PINDIR2` writer - Fast GPIO Direction PORTx control bits. Bit 0 in DIRx controls pin Px\\[0\\], bit 31 in DIRx controls pin Px\\[31\\]. 0 = Controlled pin is input. 1 = Controlled pin is output."]
pub type Pindir2W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `PINDIR3` reader - Fast GPIO Direction PORTx control bits. Bit 0 in DIRx controls pin Px\\[0\\], bit 31 in DIRx controls pin Px\\[31\\]. 0 = Controlled pin is input. 1 = Controlled pin is output."]
pub type Pindir3R = crate::BitReader;
#[doc = "Field `PINDIR3` writer - Fast GPIO Direction PORTx control bits. Bit 0 in DIRx controls pin Px\\[0\\], bit 31 in DIRx controls pin Px\\[31\\]. 0 = Controlled pin is input. 1 = Controlled pin is output."]
pub type Pindir3W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `PINDIR4` reader - Fast GPIO Direction PORTx control bits. Bit 0 in DIRx controls pin Px\\[0\\], bit 31 in DIRx controls pin Px\\[31\\]. 0 = Controlled pin is input. 1 = Controlled pin is output."]
pub type Pindir4R = crate::BitReader;
#[doc = "Field `PINDIR4` writer - Fast GPIO Direction PORTx control bits. Bit 0 in DIRx controls pin Px\\[0\\], bit 31 in DIRx controls pin Px\\[31\\]. 0 = Controlled pin is input. 1 = Controlled pin is output."]
pub type Pindir4W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `PINDIR5` reader - Fast GPIO Direction PORTx control bits. Bit 0 in DIRx controls pin Px\\[0\\], bit 31 in DIRx controls pin Px\\[31\\]. 0 = Controlled pin is input. 1 = Controlled pin is output."]
pub type Pindir5R = crate::BitReader;
#[doc = "Field `PINDIR5` writer - Fast GPIO Direction PORTx control bits. Bit 0 in DIRx controls pin Px\\[0\\], bit 31 in DIRx controls pin Px\\[31\\]. 0 = Controlled pin is input. 1 = Controlled pin is output."]
pub type Pindir5W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `PINDIR6` reader - Fast GPIO Direction PORTx control bits. Bit 0 in DIRx controls pin Px\\[0\\], bit 31 in DIRx controls pin Px\\[31\\]. 0 = Controlled pin is input. 1 = Controlled pin is output."]
pub type Pindir6R = crate::BitReader;
#[doc = "Field `PINDIR6` writer - Fast GPIO Direction PORTx control bits. Bit 0 in DIRx controls pin Px\\[0\\], bit 31 in DIRx controls pin Px\\[31\\]. 0 = Controlled pin is input. 1 = Controlled pin is output."]
pub type Pindir6W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `PINDIR7` reader - Fast GPIO Direction PORTx control bits. Bit 0 in DIRx controls pin Px\\[0\\], bit 31 in DIRx controls pin Px\\[31\\]. 0 = Controlled pin is input. 1 = Controlled pin is output."]
pub type Pindir7R = crate::BitReader;
#[doc = "Field `PINDIR7` writer - Fast GPIO Direction PORTx control bits. Bit 0 in DIRx controls pin Px\\[0\\], bit 31 in DIRx controls pin Px\\[31\\]. 0 = Controlled pin is input. 1 = Controlled pin is output."]
pub type Pindir7W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `PINDIR8` reader - Fast GPIO Direction PORTx control bits. Bit 0 in DIRx controls pin Px\\[0\\], bit 31 in DIRx controls pin Px\\[31\\]. 0 = Controlled pin is input. 1 = Controlled pin is output."]
pub type Pindir8R = crate::BitReader;
#[doc = "Field `PINDIR8` writer - Fast GPIO Direction PORTx control bits. Bit 0 in DIRx controls pin Px\\[0\\], bit 31 in DIRx controls pin Px\\[31\\]. 0 = Controlled pin is input. 1 = Controlled pin is output."]
pub type Pindir8W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `PINDIR9` reader - Fast GPIO Direction PORTx control bits. Bit 0 in DIRx controls pin Px\\[0\\], bit 31 in DIRx controls pin Px\\[31\\]. 0 = Controlled pin is input. 1 = Controlled pin is output."]
pub type Pindir9R = crate::BitReader;
#[doc = "Field `PINDIR9` writer - Fast GPIO Direction PORTx control bits. Bit 0 in DIRx controls pin Px\\[0\\], bit 31 in DIRx controls pin Px\\[31\\]. 0 = Controlled pin is input. 1 = Controlled pin is output."]
pub type Pindir9W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `PINDIR10` reader - Fast GPIO Direction PORTx control bits. Bit 0 in DIRx controls pin Px\\[0\\], bit 31 in DIRx controls pin Px\\[31\\]. 0 = Controlled pin is input. 1 = Controlled pin is output."]
pub type Pindir10R = crate::BitReader;
#[doc = "Field `PINDIR10` writer - Fast GPIO Direction PORTx control bits. Bit 0 in DIRx controls pin Px\\[0\\], bit 31 in DIRx controls pin Px\\[31\\]. 0 = Controlled pin is input. 1 = Controlled pin is output."]
pub type Pindir10W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `PINDIR11` reader - Fast GPIO Direction PORTx control bits. Bit 0 in DIRx controls pin Px\\[0\\], bit 31 in DIRx controls pin Px\\[31\\]. 0 = Controlled pin is input. 1 = Controlled pin is output."]
pub type Pindir11R = crate::BitReader;
#[doc = "Field `PINDIR11` writer - Fast GPIO Direction PORTx control bits. Bit 0 in DIRx controls pin Px\\[0\\], bit 31 in DIRx controls pin Px\\[31\\]. 0 = Controlled pin is input. 1 = Controlled pin is output."]
pub type Pindir11W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `PINDIR12` reader - Fast GPIO Direction PORTx control bits. Bit 0 in DIRx controls pin Px\\[0\\], bit 31 in DIRx controls pin Px\\[31\\]. 0 = Controlled pin is input. 1 = Controlled pin is output."]
pub type Pindir12R = crate::BitReader;
#[doc = "Field `PINDIR12` writer - Fast GPIO Direction PORTx control bits. Bit 0 in DIRx controls pin Px\\[0\\], bit 31 in DIRx controls pin Px\\[31\\]. 0 = Controlled pin is input. 1 = Controlled pin is output."]
pub type Pindir12W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `PINDIR13` reader - Fast GPIO Direction PORTx control bits. Bit 0 in DIRx controls pin Px\\[0\\], bit 31 in DIRx controls pin Px\\[31\\]. 0 = Controlled pin is input. 1 = Controlled pin is output."]
pub type Pindir13R = crate::BitReader;
#[doc = "Field `PINDIR13` writer - Fast GPIO Direction PORTx control bits. Bit 0 in DIRx controls pin Px\\[0\\], bit 31 in DIRx controls pin Px\\[31\\]. 0 = Controlled pin is input. 1 = Controlled pin is output."]
pub type Pindir13W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `PINDIR14` reader - Fast GPIO Direction PORTx control bits. Bit 0 in DIRx controls pin Px\\[0\\], bit 31 in DIRx controls pin Px\\[31\\]. 0 = Controlled pin is input. 1 = Controlled pin is output."]
pub type Pindir14R = crate::BitReader;
#[doc = "Field `PINDIR14` writer - Fast GPIO Direction PORTx control bits. Bit 0 in DIRx controls pin Px\\[0\\], bit 31 in DIRx controls pin Px\\[31\\]. 0 = Controlled pin is input. 1 = Controlled pin is output."]
pub type Pindir14W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `PINDIR15` reader - Fast GPIO Direction PORTx control bits. Bit 0 in DIRx controls pin Px\\[0\\], bit 31 in DIRx controls pin Px\\[31\\]. 0 = Controlled pin is input. 1 = Controlled pin is output."]
pub type Pindir15R = crate::BitReader;
#[doc = "Field `PINDIR15` writer - Fast GPIO Direction PORTx control bits. Bit 0 in DIRx controls pin Px\\[0\\], bit 31 in DIRx controls pin Px\\[31\\]. 0 = Controlled pin is input. 1 = Controlled pin is output."]
pub type Pindir15W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `PINDIR16` reader - Fast GPIO Direction PORTx control bits. Bit 0 in DIRx controls pin Px\\[0\\], bit 31 in DIRx controls pin Px\\[31\\]. 0 = Controlled pin is input. 1 = Controlled pin is output."]
pub type Pindir16R = crate::BitReader;
#[doc = "Field `PINDIR16` writer - Fast GPIO Direction PORTx control bits. Bit 0 in DIRx controls pin Px\\[0\\], bit 31 in DIRx controls pin Px\\[31\\]. 0 = Controlled pin is input. 1 = Controlled pin is output."]
pub type Pindir16W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `PINDIR17` reader - Fast GPIO Direction PORTx control bits. Bit 0 in DIRx controls pin Px\\[0\\], bit 31 in DIRx controls pin Px\\[31\\]. 0 = Controlled pin is input. 1 = Controlled pin is output."]
pub type Pindir17R = crate::BitReader;
#[doc = "Field `PINDIR17` writer - Fast GPIO Direction PORTx control bits. Bit 0 in DIRx controls pin Px\\[0\\], bit 31 in DIRx controls pin Px\\[31\\]. 0 = Controlled pin is input. 1 = Controlled pin is output."]
pub type Pindir17W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `PINDIR18` reader - Fast GPIO Direction PORTx control bits. Bit 0 in DIRx controls pin Px\\[0\\], bit 31 in DIRx controls pin Px\\[31\\]. 0 = Controlled pin is input. 1 = Controlled pin is output."]
pub type Pindir18R = crate::BitReader;
#[doc = "Field `PINDIR18` writer - Fast GPIO Direction PORTx control bits. Bit 0 in DIRx controls pin Px\\[0\\], bit 31 in DIRx controls pin Px\\[31\\]. 0 = Controlled pin is input. 1 = Controlled pin is output."]
pub type Pindir18W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `PINDIR19` reader - Fast GPIO Direction PORTx control bits. Bit 0 in DIRx controls pin Px\\[0\\], bit 31 in DIRx controls pin Px\\[31\\]. 0 = Controlled pin is input. 1 = Controlled pin is output."]
pub type Pindir19R = crate::BitReader;
#[doc = "Field `PINDIR19` writer - Fast GPIO Direction PORTx control bits. Bit 0 in DIRx controls pin Px\\[0\\], bit 31 in DIRx controls pin Px\\[31\\]. 0 = Controlled pin is input. 1 = Controlled pin is output."]
pub type Pindir19W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `PINDIR20` reader - Fast GPIO Direction PORTx control bits. Bit 0 in DIRx controls pin Px\\[0\\], bit 31 in DIRx controls pin Px\\[31\\]. 0 = Controlled pin is input. 1 = Controlled pin is output."]
pub type Pindir20R = crate::BitReader;
#[doc = "Field `PINDIR20` writer - Fast GPIO Direction PORTx control bits. Bit 0 in DIRx controls pin Px\\[0\\], bit 31 in DIRx controls pin Px\\[31\\]. 0 = Controlled pin is input. 1 = Controlled pin is output."]
pub type Pindir20W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `PINDIR21` reader - Fast GPIO Direction PORTx control bits. Bit 0 in DIRx controls pin Px\\[0\\], bit 31 in DIRx controls pin Px\\[31\\]. 0 = Controlled pin is input. 1 = Controlled pin is output."]
pub type Pindir21R = crate::BitReader;
#[doc = "Field `PINDIR21` writer - Fast GPIO Direction PORTx control bits. Bit 0 in DIRx controls pin Px\\[0\\], bit 31 in DIRx controls pin Px\\[31\\]. 0 = Controlled pin is input. 1 = Controlled pin is output."]
pub type Pindir21W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `PINDIR22` reader - Fast GPIO Direction PORTx control bits. Bit 0 in DIRx controls pin Px\\[0\\], bit 31 in DIRx controls pin Px\\[31\\]. 0 = Controlled pin is input. 1 = Controlled pin is output."]
pub type Pindir22R = crate::BitReader;
#[doc = "Field `PINDIR22` writer - Fast GPIO Direction PORTx control bits. Bit 0 in DIRx controls pin Px\\[0\\], bit 31 in DIRx controls pin Px\\[31\\]. 0 = Controlled pin is input. 1 = Controlled pin is output."]
pub type Pindir22W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `PINDIR23` reader - Fast GPIO Direction PORTx control bits. Bit 0 in DIRx controls pin Px\\[0\\], bit 31 in DIRx controls pin Px\\[31\\]. 0 = Controlled pin is input. 1 = Controlled pin is output."]
pub type Pindir23R = crate::BitReader;
#[doc = "Field `PINDIR23` writer - Fast GPIO Direction PORTx control bits. Bit 0 in DIRx controls pin Px\\[0\\], bit 31 in DIRx controls pin Px\\[31\\]. 0 = Controlled pin is input. 1 = Controlled pin is output."]
pub type Pindir23W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `PINDIR24` reader - Fast GPIO Direction PORTx control bits. Bit 0 in DIRx controls pin Px\\[0\\], bit 31 in DIRx controls pin Px\\[31\\]. 0 = Controlled pin is input. 1 = Controlled pin is output."]
pub type Pindir24R = crate::BitReader;
#[doc = "Field `PINDIR24` writer - Fast GPIO Direction PORTx control bits. Bit 0 in DIRx controls pin Px\\[0\\], bit 31 in DIRx controls pin Px\\[31\\]. 0 = Controlled pin is input. 1 = Controlled pin is output."]
pub type Pindir24W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `PINDIR25` reader - Fast GPIO Direction PORTx control bits. Bit 0 in DIRx controls pin Px\\[0\\], bit 31 in DIRx controls pin Px\\[31\\]. 0 = Controlled pin is input. 1 = Controlled pin is output."]
pub type Pindir25R = crate::BitReader;
#[doc = "Field `PINDIR25` writer - Fast GPIO Direction PORTx control bits. Bit 0 in DIRx controls pin Px\\[0\\], bit 31 in DIRx controls pin Px\\[31\\]. 0 = Controlled pin is input. 1 = Controlled pin is output."]
pub type Pindir25W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `PINDIR26` reader - Fast GPIO Direction PORTx control bits. Bit 0 in DIRx controls pin Px\\[0\\], bit 31 in DIRx controls pin Px\\[31\\]. 0 = Controlled pin is input. 1 = Controlled pin is output."]
pub type Pindir26R = crate::BitReader;
#[doc = "Field `PINDIR26` writer - Fast GPIO Direction PORTx control bits. Bit 0 in DIRx controls pin Px\\[0\\], bit 31 in DIRx controls pin Px\\[31\\]. 0 = Controlled pin is input. 1 = Controlled pin is output."]
pub type Pindir26W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `PINDIR27` reader - Fast GPIO Direction PORTx control bits. Bit 0 in DIRx controls pin Px\\[0\\], bit 31 in DIRx controls pin Px\\[31\\]. 0 = Controlled pin is input. 1 = Controlled pin is output."]
pub type Pindir27R = crate::BitReader;
#[doc = "Field `PINDIR27` writer - Fast GPIO Direction PORTx control bits. Bit 0 in DIRx controls pin Px\\[0\\], bit 31 in DIRx controls pin Px\\[31\\]. 0 = Controlled pin is input. 1 = Controlled pin is output."]
pub type Pindir27W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `PINDIR28` reader - Fast GPIO Direction PORTx control bits. Bit 0 in DIRx controls pin Px\\[0\\], bit 31 in DIRx controls pin Px\\[31\\]. 0 = Controlled pin is input. 1 = Controlled pin is output."]
pub type Pindir28R = crate::BitReader;
#[doc = "Field `PINDIR28` writer - Fast GPIO Direction PORTx control bits. Bit 0 in DIRx controls pin Px\\[0\\], bit 31 in DIRx controls pin Px\\[31\\]. 0 = Controlled pin is input. 1 = Controlled pin is output."]
pub type Pindir28W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `PINDIR29` reader - Fast GPIO Direction PORTx control bits. Bit 0 in DIRx controls pin Px\\[0\\], bit 31 in DIRx controls pin Px\\[31\\]. 0 = Controlled pin is input. 1 = Controlled pin is output."]
pub type Pindir29R = crate::BitReader;
#[doc = "Field `PINDIR29` writer - Fast GPIO Direction PORTx control bits. Bit 0 in DIRx controls pin Px\\[0\\], bit 31 in DIRx controls pin Px\\[31\\]. 0 = Controlled pin is input. 1 = Controlled pin is output."]
pub type Pindir29W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `PINDIR30` reader - Fast GPIO Direction PORTx control bits. Bit 0 in DIRx controls pin Px\\[0\\], bit 31 in DIRx controls pin Px\\[31\\]. 0 = Controlled pin is input. 1 = Controlled pin is output."]
pub type Pindir30R = crate::BitReader;
#[doc = "Field `PINDIR30` writer - Fast GPIO Direction PORTx control bits. Bit 0 in DIRx controls pin Px\\[0\\], bit 31 in DIRx controls pin Px\\[31\\]. 0 = Controlled pin is input. 1 = Controlled pin is output."]
pub type Pindir30W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `PINDIR31` reader - Fast GPIO Direction PORTx control bits. Bit 0 in DIRx controls pin Px\\[0\\], bit 31 in DIRx controls pin Px\\[31\\]. 0 = Controlled pin is input. 1 = Controlled pin is output."]
pub type Pindir31R = crate::BitReader;
#[doc = "Field `PINDIR31` writer - Fast GPIO Direction PORTx control bits. Bit 0 in DIRx controls pin Px\\[0\\], bit 31 in DIRx controls pin Px\\[31\\]. 0 = Controlled pin is input. 1 = Controlled pin is output."]
pub type Pindir31W<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
    #[doc = "Bit 0 - Fast GPIO Direction PORTx control bits. Bit 0 in DIRx controls pin Px\\[0\\], bit 31 in DIRx controls pin Px\\[31\\]. 0 = Controlled pin is input. 1 = Controlled pin is output."]
    #[inline(always)]
    pub fn pindir0(&self) -> Pindir0R {
        Pindir0R::new((self.bits & 1) != 0)
    }
    #[doc = "Bit 1 - Fast GPIO Direction PORTx control bits. Bit 0 in DIRx controls pin Px\\[0\\], bit 31 in DIRx controls pin Px\\[31\\]. 0 = Controlled pin is input. 1 = Controlled pin is output."]
    #[inline(always)]
    pub fn pindir1(&self) -> Pindir1R {
        Pindir1R::new(((self.bits >> 1) & 1) != 0)
    }
    #[doc = "Bit 2 - Fast GPIO Direction PORTx control bits. Bit 0 in DIRx controls pin Px\\[0\\], bit 31 in DIRx controls pin Px\\[31\\]. 0 = Controlled pin is input. 1 = Controlled pin is output."]
    #[inline(always)]
    pub fn pindir2(&self) -> Pindir2R {
        Pindir2R::new(((self.bits >> 2) & 1) != 0)
    }
    #[doc = "Bit 3 - Fast GPIO Direction PORTx control bits. Bit 0 in DIRx controls pin Px\\[0\\], bit 31 in DIRx controls pin Px\\[31\\]. 0 = Controlled pin is input. 1 = Controlled pin is output."]
    #[inline(always)]
    pub fn pindir3(&self) -> Pindir3R {
        Pindir3R::new(((self.bits >> 3) & 1) != 0)
    }
    #[doc = "Bit 4 - Fast GPIO Direction PORTx control bits. Bit 0 in DIRx controls pin Px\\[0\\], bit 31 in DIRx controls pin Px\\[31\\]. 0 = Controlled pin is input. 1 = Controlled pin is output."]
    #[inline(always)]
    pub fn pindir4(&self) -> Pindir4R {
        Pindir4R::new(((self.bits >> 4) & 1) != 0)
    }
    #[doc = "Bit 5 - Fast GPIO Direction PORTx control bits. Bit 0 in DIRx controls pin Px\\[0\\], bit 31 in DIRx controls pin Px\\[31\\]. 0 = Controlled pin is input. 1 = Controlled pin is output."]
    #[inline(always)]
    pub fn pindir5(&self) -> Pindir5R {
        Pindir5R::new(((self.bits >> 5) & 1) != 0)
    }
    #[doc = "Bit 6 - Fast GPIO Direction PORTx control bits. Bit 0 in DIRx controls pin Px\\[0\\], bit 31 in DIRx controls pin Px\\[31\\]. 0 = Controlled pin is input. 1 = Controlled pin is output."]
    #[inline(always)]
    pub fn pindir6(&self) -> Pindir6R {
        Pindir6R::new(((self.bits >> 6) & 1) != 0)
    }
    #[doc = "Bit 7 - Fast GPIO Direction PORTx control bits. Bit 0 in DIRx controls pin Px\\[0\\], bit 31 in DIRx controls pin Px\\[31\\]. 0 = Controlled pin is input. 1 = Controlled pin is output."]
    #[inline(always)]
    pub fn pindir7(&self) -> Pindir7R {
        Pindir7R::new(((self.bits >> 7) & 1) != 0)
    }
    #[doc = "Bit 8 - Fast GPIO Direction PORTx control bits. Bit 0 in DIRx controls pin Px\\[0\\], bit 31 in DIRx controls pin Px\\[31\\]. 0 = Controlled pin is input. 1 = Controlled pin is output."]
    #[inline(always)]
    pub fn pindir8(&self) -> Pindir8R {
        Pindir8R::new(((self.bits >> 8) & 1) != 0)
    }
    #[doc = "Bit 9 - Fast GPIO Direction PORTx control bits. Bit 0 in DIRx controls pin Px\\[0\\], bit 31 in DIRx controls pin Px\\[31\\]. 0 = Controlled pin is input. 1 = Controlled pin is output."]
    #[inline(always)]
    pub fn pindir9(&self) -> Pindir9R {
        Pindir9R::new(((self.bits >> 9) & 1) != 0)
    }
    #[doc = "Bit 10 - Fast GPIO Direction PORTx control bits. Bit 0 in DIRx controls pin Px\\[0\\], bit 31 in DIRx controls pin Px\\[31\\]. 0 = Controlled pin is input. 1 = Controlled pin is output."]
    #[inline(always)]
    pub fn pindir10(&self) -> Pindir10R {
        Pindir10R::new(((self.bits >> 10) & 1) != 0)
    }
    #[doc = "Bit 11 - Fast GPIO Direction PORTx control bits. Bit 0 in DIRx controls pin Px\\[0\\], bit 31 in DIRx controls pin Px\\[31\\]. 0 = Controlled pin is input. 1 = Controlled pin is output."]
    #[inline(always)]
    pub fn pindir11(&self) -> Pindir11R {
        Pindir11R::new(((self.bits >> 11) & 1) != 0)
    }
    #[doc = "Bit 12 - Fast GPIO Direction PORTx control bits. Bit 0 in DIRx controls pin Px\\[0\\], bit 31 in DIRx controls pin Px\\[31\\]. 0 = Controlled pin is input. 1 = Controlled pin is output."]
    #[inline(always)]
    pub fn pindir12(&self) -> Pindir12R {
        Pindir12R::new(((self.bits >> 12) & 1) != 0)
    }
    #[doc = "Bit 13 - Fast GPIO Direction PORTx control bits. Bit 0 in DIRx controls pin Px\\[0\\], bit 31 in DIRx controls pin Px\\[31\\]. 0 = Controlled pin is input. 1 = Controlled pin is output."]
    #[inline(always)]
    pub fn pindir13(&self) -> Pindir13R {
        Pindir13R::new(((self.bits >> 13) & 1) != 0)
    }
    #[doc = "Bit 14 - Fast GPIO Direction PORTx control bits. Bit 0 in DIRx controls pin Px\\[0\\], bit 31 in DIRx controls pin Px\\[31\\]. 0 = Controlled pin is input. 1 = Controlled pin is output."]
    #[inline(always)]
    pub fn pindir14(&self) -> Pindir14R {
        Pindir14R::new(((self.bits >> 14) & 1) != 0)
    }
    #[doc = "Bit 15 - Fast GPIO Direction PORTx control bits. Bit 0 in DIRx controls pin Px\\[0\\], bit 31 in DIRx controls pin Px\\[31\\]. 0 = Controlled pin is input. 1 = Controlled pin is output."]
    #[inline(always)]
    pub fn pindir15(&self) -> Pindir15R {
        Pindir15R::new(((self.bits >> 15) & 1) != 0)
    }
    #[doc = "Bit 16 - Fast GPIO Direction PORTx control bits. Bit 0 in DIRx controls pin Px\\[0\\], bit 31 in DIRx controls pin Px\\[31\\]. 0 = Controlled pin is input. 1 = Controlled pin is output."]
    #[inline(always)]
    pub fn pindir16(&self) -> Pindir16R {
        Pindir16R::new(((self.bits >> 16) & 1) != 0)
    }
    #[doc = "Bit 17 - Fast GPIO Direction PORTx control bits. Bit 0 in DIRx controls pin Px\\[0\\], bit 31 in DIRx controls pin Px\\[31\\]. 0 = Controlled pin is input. 1 = Controlled pin is output."]
    #[inline(always)]
    pub fn pindir17(&self) -> Pindir17R {
        Pindir17R::new(((self.bits >> 17) & 1) != 0)
    }
    #[doc = "Bit 18 - Fast GPIO Direction PORTx control bits. Bit 0 in DIRx controls pin Px\\[0\\], bit 31 in DIRx controls pin Px\\[31\\]. 0 = Controlled pin is input. 1 = Controlled pin is output."]
    #[inline(always)]
    pub fn pindir18(&self) -> Pindir18R {
        Pindir18R::new(((self.bits >> 18) & 1) != 0)
    }
    #[doc = "Bit 19 - Fast GPIO Direction PORTx control bits. Bit 0 in DIRx controls pin Px\\[0\\], bit 31 in DIRx controls pin Px\\[31\\]. 0 = Controlled pin is input. 1 = Controlled pin is output."]
    #[inline(always)]
    pub fn pindir19(&self) -> Pindir19R {
        Pindir19R::new(((self.bits >> 19) & 1) != 0)
    }
    #[doc = "Bit 20 - Fast GPIO Direction PORTx control bits. Bit 0 in DIRx controls pin Px\\[0\\], bit 31 in DIRx controls pin Px\\[31\\]. 0 = Controlled pin is input. 1 = Controlled pin is output."]
    #[inline(always)]
    pub fn pindir20(&self) -> Pindir20R {
        Pindir20R::new(((self.bits >> 20) & 1) != 0)
    }
    #[doc = "Bit 21 - Fast GPIO Direction PORTx control bits. Bit 0 in DIRx controls pin Px\\[0\\], bit 31 in DIRx controls pin Px\\[31\\]. 0 = Controlled pin is input. 1 = Controlled pin is output."]
    #[inline(always)]
    pub fn pindir21(&self) -> Pindir21R {
        Pindir21R::new(((self.bits >> 21) & 1) != 0)
    }
    #[doc = "Bit 22 - Fast GPIO Direction PORTx control bits. Bit 0 in DIRx controls pin Px\\[0\\], bit 31 in DIRx controls pin Px\\[31\\]. 0 = Controlled pin is input. 1 = Controlled pin is output."]
    #[inline(always)]
    pub fn pindir22(&self) -> Pindir22R {
        Pindir22R::new(((self.bits >> 22) & 1) != 0)
    }
    #[doc = "Bit 23 - Fast GPIO Direction PORTx control bits. Bit 0 in DIRx controls pin Px\\[0\\], bit 31 in DIRx controls pin Px\\[31\\]. 0 = Controlled pin is input. 1 = Controlled pin is output."]
    #[inline(always)]
    pub fn pindir23(&self) -> Pindir23R {
        Pindir23R::new(((self.bits >> 23) & 1) != 0)
    }
    #[doc = "Bit 24 - Fast GPIO Direction PORTx control bits. Bit 0 in DIRx controls pin Px\\[0\\], bit 31 in DIRx controls pin Px\\[31\\]. 0 = Controlled pin is input. 1 = Controlled pin is output."]
    #[inline(always)]
    pub fn pindir24(&self) -> Pindir24R {
        Pindir24R::new(((self.bits >> 24) & 1) != 0)
    }
    #[doc = "Bit 25 - Fast GPIO Direction PORTx control bits. Bit 0 in DIRx controls pin Px\\[0\\], bit 31 in DIRx controls pin Px\\[31\\]. 0 = Controlled pin is input. 1 = Controlled pin is output."]
    #[inline(always)]
    pub fn pindir25(&self) -> Pindir25R {
        Pindir25R::new(((self.bits >> 25) & 1) != 0)
    }
    #[doc = "Bit 26 - Fast GPIO Direction PORTx control bits. Bit 0 in DIRx controls pin Px\\[0\\], bit 31 in DIRx controls pin Px\\[31\\]. 0 = Controlled pin is input. 1 = Controlled pin is output."]
    #[inline(always)]
    pub fn pindir26(&self) -> Pindir26R {
        Pindir26R::new(((self.bits >> 26) & 1) != 0)
    }
    #[doc = "Bit 27 - Fast GPIO Direction PORTx control bits. Bit 0 in DIRx controls pin Px\\[0\\], bit 31 in DIRx controls pin Px\\[31\\]. 0 = Controlled pin is input. 1 = Controlled pin is output."]
    #[inline(always)]
    pub fn pindir27(&self) -> Pindir27R {
        Pindir27R::new(((self.bits >> 27) & 1) != 0)
    }
    #[doc = "Bit 28 - Fast GPIO Direction PORTx control bits. Bit 0 in DIRx controls pin Px\\[0\\], bit 31 in DIRx controls pin Px\\[31\\]. 0 = Controlled pin is input. 1 = Controlled pin is output."]
    #[inline(always)]
    pub fn pindir28(&self) -> Pindir28R {
        Pindir28R::new(((self.bits >> 28) & 1) != 0)
    }
    #[doc = "Bit 29 - Fast GPIO Direction PORTx control bits. Bit 0 in DIRx controls pin Px\\[0\\], bit 31 in DIRx controls pin Px\\[31\\]. 0 = Controlled pin is input. 1 = Controlled pin is output."]
    #[inline(always)]
    pub fn pindir29(&self) -> Pindir29R {
        Pindir29R::new(((self.bits >> 29) & 1) != 0)
    }
    #[doc = "Bit 30 - Fast GPIO Direction PORTx control bits. Bit 0 in DIRx controls pin Px\\[0\\], bit 31 in DIRx controls pin Px\\[31\\]. 0 = Controlled pin is input. 1 = Controlled pin is output."]
    #[inline(always)]
    pub fn pindir30(&self) -> Pindir30R {
        Pindir30R::new(((self.bits >> 30) & 1) != 0)
    }
    #[doc = "Bit 31 - Fast GPIO Direction PORTx control bits. Bit 0 in DIRx controls pin Px\\[0\\], bit 31 in DIRx controls pin Px\\[31\\]. 0 = Controlled pin is input. 1 = Controlled pin is output."]
    #[inline(always)]
    pub fn pindir31(&self) -> Pindir31R {
        Pindir31R::new(((self.bits >> 31) & 1) != 0)
    }
}
impl W {
    #[doc = "Bit 0 - Fast GPIO Direction PORTx control bits. Bit 0 in DIRx controls pin Px\\[0\\], bit 31 in DIRx controls pin Px\\[31\\]. 0 = Controlled pin is input. 1 = Controlled pin is output."]
    #[inline(always)]
    pub fn pindir0(&mut self) -> Pindir0W<'_, DirSpec> {
        Pindir0W::new(self, 0)
    }
    #[doc = "Bit 1 - Fast GPIO Direction PORTx control bits. Bit 0 in DIRx controls pin Px\\[0\\], bit 31 in DIRx controls pin Px\\[31\\]. 0 = Controlled pin is input. 1 = Controlled pin is output."]
    #[inline(always)]
    pub fn pindir1(&mut self) -> Pindir1W<'_, DirSpec> {
        Pindir1W::new(self, 1)
    }
    #[doc = "Bit 2 - Fast GPIO Direction PORTx control bits. Bit 0 in DIRx controls pin Px\\[0\\], bit 31 in DIRx controls pin Px\\[31\\]. 0 = Controlled pin is input. 1 = Controlled pin is output."]
    #[inline(always)]
    pub fn pindir2(&mut self) -> Pindir2W<'_, DirSpec> {
        Pindir2W::new(self, 2)
    }
    #[doc = "Bit 3 - Fast GPIO Direction PORTx control bits. Bit 0 in DIRx controls pin Px\\[0\\], bit 31 in DIRx controls pin Px\\[31\\]. 0 = Controlled pin is input. 1 = Controlled pin is output."]
    #[inline(always)]
    pub fn pindir3(&mut self) -> Pindir3W<'_, DirSpec> {
        Pindir3W::new(self, 3)
    }
    #[doc = "Bit 4 - Fast GPIO Direction PORTx control bits. Bit 0 in DIRx controls pin Px\\[0\\], bit 31 in DIRx controls pin Px\\[31\\]. 0 = Controlled pin is input. 1 = Controlled pin is output."]
    #[inline(always)]
    pub fn pindir4(&mut self) -> Pindir4W<'_, DirSpec> {
        Pindir4W::new(self, 4)
    }
    #[doc = "Bit 5 - Fast GPIO Direction PORTx control bits. Bit 0 in DIRx controls pin Px\\[0\\], bit 31 in DIRx controls pin Px\\[31\\]. 0 = Controlled pin is input. 1 = Controlled pin is output."]
    #[inline(always)]
    pub fn pindir5(&mut self) -> Pindir5W<'_, DirSpec> {
        Pindir5W::new(self, 5)
    }
    #[doc = "Bit 6 - Fast GPIO Direction PORTx control bits. Bit 0 in DIRx controls pin Px\\[0\\], bit 31 in DIRx controls pin Px\\[31\\]. 0 = Controlled pin is input. 1 = Controlled pin is output."]
    #[inline(always)]
    pub fn pindir6(&mut self) -> Pindir6W<'_, DirSpec> {
        Pindir6W::new(self, 6)
    }
    #[doc = "Bit 7 - Fast GPIO Direction PORTx control bits. Bit 0 in DIRx controls pin Px\\[0\\], bit 31 in DIRx controls pin Px\\[31\\]. 0 = Controlled pin is input. 1 = Controlled pin is output."]
    #[inline(always)]
    pub fn pindir7(&mut self) -> Pindir7W<'_, DirSpec> {
        Pindir7W::new(self, 7)
    }
    #[doc = "Bit 8 - Fast GPIO Direction PORTx control bits. Bit 0 in DIRx controls pin Px\\[0\\], bit 31 in DIRx controls pin Px\\[31\\]. 0 = Controlled pin is input. 1 = Controlled pin is output."]
    #[inline(always)]
    pub fn pindir8(&mut self) -> Pindir8W<'_, DirSpec> {
        Pindir8W::new(self, 8)
    }
    #[doc = "Bit 9 - Fast GPIO Direction PORTx control bits. Bit 0 in DIRx controls pin Px\\[0\\], bit 31 in DIRx controls pin Px\\[31\\]. 0 = Controlled pin is input. 1 = Controlled pin is output."]
    #[inline(always)]
    pub fn pindir9(&mut self) -> Pindir9W<'_, DirSpec> {
        Pindir9W::new(self, 9)
    }
    #[doc = "Bit 10 - Fast GPIO Direction PORTx control bits. Bit 0 in DIRx controls pin Px\\[0\\], bit 31 in DIRx controls pin Px\\[31\\]. 0 = Controlled pin is input. 1 = Controlled pin is output."]
    #[inline(always)]
    pub fn pindir10(&mut self) -> Pindir10W<'_, DirSpec> {
        Pindir10W::new(self, 10)
    }
    #[doc = "Bit 11 - Fast GPIO Direction PORTx control bits. Bit 0 in DIRx controls pin Px\\[0\\], bit 31 in DIRx controls pin Px\\[31\\]. 0 = Controlled pin is input. 1 = Controlled pin is output."]
    #[inline(always)]
    pub fn pindir11(&mut self) -> Pindir11W<'_, DirSpec> {
        Pindir11W::new(self, 11)
    }
    #[doc = "Bit 12 - Fast GPIO Direction PORTx control bits. Bit 0 in DIRx controls pin Px\\[0\\], bit 31 in DIRx controls pin Px\\[31\\]. 0 = Controlled pin is input. 1 = Controlled pin is output."]
    #[inline(always)]
    pub fn pindir12(&mut self) -> Pindir12W<'_, DirSpec> {
        Pindir12W::new(self, 12)
    }
    #[doc = "Bit 13 - Fast GPIO Direction PORTx control bits. Bit 0 in DIRx controls pin Px\\[0\\], bit 31 in DIRx controls pin Px\\[31\\]. 0 = Controlled pin is input. 1 = Controlled pin is output."]
    #[inline(always)]
    pub fn pindir13(&mut self) -> Pindir13W<'_, DirSpec> {
        Pindir13W::new(self, 13)
    }
    #[doc = "Bit 14 - Fast GPIO Direction PORTx control bits. Bit 0 in DIRx controls pin Px\\[0\\], bit 31 in DIRx controls pin Px\\[31\\]. 0 = Controlled pin is input. 1 = Controlled pin is output."]
    #[inline(always)]
    pub fn pindir14(&mut self) -> Pindir14W<'_, DirSpec> {
        Pindir14W::new(self, 14)
    }
    #[doc = "Bit 15 - Fast GPIO Direction PORTx control bits. Bit 0 in DIRx controls pin Px\\[0\\], bit 31 in DIRx controls pin Px\\[31\\]. 0 = Controlled pin is input. 1 = Controlled pin is output."]
    #[inline(always)]
    pub fn pindir15(&mut self) -> Pindir15W<'_, DirSpec> {
        Pindir15W::new(self, 15)
    }
    #[doc = "Bit 16 - Fast GPIO Direction PORTx control bits. Bit 0 in DIRx controls pin Px\\[0\\], bit 31 in DIRx controls pin Px\\[31\\]. 0 = Controlled pin is input. 1 = Controlled pin is output."]
    #[inline(always)]
    pub fn pindir16(&mut self) -> Pindir16W<'_, DirSpec> {
        Pindir16W::new(self, 16)
    }
    #[doc = "Bit 17 - Fast GPIO Direction PORTx control bits. Bit 0 in DIRx controls pin Px\\[0\\], bit 31 in DIRx controls pin Px\\[31\\]. 0 = Controlled pin is input. 1 = Controlled pin is output."]
    #[inline(always)]
    pub fn pindir17(&mut self) -> Pindir17W<'_, DirSpec> {
        Pindir17W::new(self, 17)
    }
    #[doc = "Bit 18 - Fast GPIO Direction PORTx control bits. Bit 0 in DIRx controls pin Px\\[0\\], bit 31 in DIRx controls pin Px\\[31\\]. 0 = Controlled pin is input. 1 = Controlled pin is output."]
    #[inline(always)]
    pub fn pindir18(&mut self) -> Pindir18W<'_, DirSpec> {
        Pindir18W::new(self, 18)
    }
    #[doc = "Bit 19 - Fast GPIO Direction PORTx control bits. Bit 0 in DIRx controls pin Px\\[0\\], bit 31 in DIRx controls pin Px\\[31\\]. 0 = Controlled pin is input. 1 = Controlled pin is output."]
    #[inline(always)]
    pub fn pindir19(&mut self) -> Pindir19W<'_, DirSpec> {
        Pindir19W::new(self, 19)
    }
    #[doc = "Bit 20 - Fast GPIO Direction PORTx control bits. Bit 0 in DIRx controls pin Px\\[0\\], bit 31 in DIRx controls pin Px\\[31\\]. 0 = Controlled pin is input. 1 = Controlled pin is output."]
    #[inline(always)]
    pub fn pindir20(&mut self) -> Pindir20W<'_, DirSpec> {
        Pindir20W::new(self, 20)
    }
    #[doc = "Bit 21 - Fast GPIO Direction PORTx control bits. Bit 0 in DIRx controls pin Px\\[0\\], bit 31 in DIRx controls pin Px\\[31\\]. 0 = Controlled pin is input. 1 = Controlled pin is output."]
    #[inline(always)]
    pub fn pindir21(&mut self) -> Pindir21W<'_, DirSpec> {
        Pindir21W::new(self, 21)
    }
    #[doc = "Bit 22 - Fast GPIO Direction PORTx control bits. Bit 0 in DIRx controls pin Px\\[0\\], bit 31 in DIRx controls pin Px\\[31\\]. 0 = Controlled pin is input. 1 = Controlled pin is output."]
    #[inline(always)]
    pub fn pindir22(&mut self) -> Pindir22W<'_, DirSpec> {
        Pindir22W::new(self, 22)
    }
    #[doc = "Bit 23 - Fast GPIO Direction PORTx control bits. Bit 0 in DIRx controls pin Px\\[0\\], bit 31 in DIRx controls pin Px\\[31\\]. 0 = Controlled pin is input. 1 = Controlled pin is output."]
    #[inline(always)]
    pub fn pindir23(&mut self) -> Pindir23W<'_, DirSpec> {
        Pindir23W::new(self, 23)
    }
    #[doc = "Bit 24 - Fast GPIO Direction PORTx control bits. Bit 0 in DIRx controls pin Px\\[0\\], bit 31 in DIRx controls pin Px\\[31\\]. 0 = Controlled pin is input. 1 = Controlled pin is output."]
    #[inline(always)]
    pub fn pindir24(&mut self) -> Pindir24W<'_, DirSpec> {
        Pindir24W::new(self, 24)
    }
    #[doc = "Bit 25 - Fast GPIO Direction PORTx control bits. Bit 0 in DIRx controls pin Px\\[0\\], bit 31 in DIRx controls pin Px\\[31\\]. 0 = Controlled pin is input. 1 = Controlled pin is output."]
    #[inline(always)]
    pub fn pindir25(&mut self) -> Pindir25W<'_, DirSpec> {
        Pindir25W::new(self, 25)
    }
    #[doc = "Bit 26 - Fast GPIO Direction PORTx control bits. Bit 0 in DIRx controls pin Px\\[0\\], bit 31 in DIRx controls pin Px\\[31\\]. 0 = Controlled pin is input. 1 = Controlled pin is output."]
    #[inline(always)]
    pub fn pindir26(&mut self) -> Pindir26W<'_, DirSpec> {
        Pindir26W::new(self, 26)
    }
    #[doc = "Bit 27 - Fast GPIO Direction PORTx control bits. Bit 0 in DIRx controls pin Px\\[0\\], bit 31 in DIRx controls pin Px\\[31\\]. 0 = Controlled pin is input. 1 = Controlled pin is output."]
    #[inline(always)]
    pub fn pindir27(&mut self) -> Pindir27W<'_, DirSpec> {
        Pindir27W::new(self, 27)
    }
    #[doc = "Bit 28 - Fast GPIO Direction PORTx control bits. Bit 0 in DIRx controls pin Px\\[0\\], bit 31 in DIRx controls pin Px\\[31\\]. 0 = Controlled pin is input. 1 = Controlled pin is output."]
    #[inline(always)]
    pub fn pindir28(&mut self) -> Pindir28W<'_, DirSpec> {
        Pindir28W::new(self, 28)
    }
    #[doc = "Bit 29 - Fast GPIO Direction PORTx control bits. Bit 0 in DIRx controls pin Px\\[0\\], bit 31 in DIRx controls pin Px\\[31\\]. 0 = Controlled pin is input. 1 = Controlled pin is output."]
    #[inline(always)]
    pub fn pindir29(&mut self) -> Pindir29W<'_, DirSpec> {
        Pindir29W::new(self, 29)
    }
    #[doc = "Bit 30 - Fast GPIO Direction PORTx control bits. Bit 0 in DIRx controls pin Px\\[0\\], bit 31 in DIRx controls pin Px\\[31\\]. 0 = Controlled pin is input. 1 = Controlled pin is output."]
    #[inline(always)]
    pub fn pindir30(&mut self) -> Pindir30W<'_, DirSpec> {
        Pindir30W::new(self, 30)
    }
    #[doc = "Bit 31 - Fast GPIO Direction PORTx control bits. Bit 0 in DIRx controls pin Px\\[0\\], bit 31 in DIRx controls pin Px\\[31\\]. 0 = Controlled pin is input. 1 = Controlled pin is output."]
    #[inline(always)]
    pub fn pindir31(&mut self) -> Pindir31W<'_, DirSpec> {
        Pindir31W::new(self, 31)
    }
}
#[doc = "GPIO Port Direction control register.\n\nYou can [`read`](crate::Reg::read) this register and get [`dir::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`dir::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct DirSpec;
impl crate::RegisterSpec for DirSpec {
    type Ux = u32;
}
#[doc = "`read()` method returns [`dir::R`](R) reader structure"]
impl crate::Readable for DirSpec {}
#[doc = "`write(|w| ..)` method takes [`dir::W`](W) writer structure"]
impl crate::Writable for DirSpec {
    type Safety = crate::Unsafe;
}
#[doc = "`reset()` method sets DIR%s to value 0"]
impl crate::Resettable for DirSpec {}
