#[doc = "Reader of register PADREGH"]
pub type R = crate::R<u32, super::PADREGH>;
#[doc = "Writer for register PADREGH"]
pub type W = crate::W<u32, super::PADREGH>;
#[doc = "Register PADREGH `reset()`'s with value 0x1818_1818"]
impl crate::ResetValue for super::PADREGH {
type Type = u32;
#[inline(always)]
fn reset_value() -> Self::Type {
0x1818_1818
}
}
#[doc = "Pad 31 function select\n\nValue on reset: 3"]
#[derive(Clone, Copy, Debug, PartialEq)]
#[repr(u8)]
pub enum PAD31FNCSEL_A {
#[doc = "0: Configure as the analog ADC input 6 signal"]
ADC6 = 0,
#[doc = "1: Configure as the SPI channel 4 nCE signal from IOMSTR0"]
M0NCE4 = 1,
#[doc = "2: Configure as the input/output signal from CTIMER A3"]
TCTA3 = 2,
#[doc = "3: Configure as GPIO31"]
GPIO31 = 3,
}
impl From<PAD31FNCSEL_A> for u8 {
#[inline(always)]
fn from(variant: PAD31FNCSEL_A) -> Self {
variant as _
}
}
#[doc = "Reader of field `PAD31FNCSEL`"]
pub type PAD31FNCSEL_R = crate::R<u8, PAD31FNCSEL_A>;
impl PAD31FNCSEL_R {
#[doc = r"Get enumerated values variant"]
#[inline(always)]
pub fn variant(&self) -> PAD31FNCSEL_A {
match self.bits {
0 => PAD31FNCSEL_A::ADC6,
1 => PAD31FNCSEL_A::M0NCE4,
2 => PAD31FNCSEL_A::TCTA3,
3 => PAD31FNCSEL_A::GPIO31,
_ => unreachable!(),
}
}
#[doc = "Checks if the value of the field is `ADC6`"]
#[inline(always)]
pub fn is_adc6(&self) -> bool {
*self == PAD31FNCSEL_A::ADC6
}
#[doc = "Checks if the value of the field is `M0NCE4`"]
#[inline(always)]
pub fn is_m0n_ce4(&self) -> bool {
*self == PAD31FNCSEL_A::M0NCE4
}
#[doc = "Checks if the value of the field is `TCTA3`"]
#[inline(always)]
pub fn is_tcta3(&self) -> bool {
*self == PAD31FNCSEL_A::TCTA3
}
#[doc = "Checks if the value of the field is `GPIO31`"]
#[inline(always)]
pub fn is_gpio31(&self) -> bool {
*self == PAD31FNCSEL_A::GPIO31
}
}
#[doc = "Write proxy for field `PAD31FNCSEL`"]
pub struct PAD31FNCSEL_W<'a> {
w: &'a mut W,
}
impl<'a> PAD31FNCSEL_W<'a> {
#[doc = r"Writes `variant` to the field"]
#[inline(always)]
pub fn variant(self, variant: PAD31FNCSEL_A) -> &'a mut W {
{
self.bits(variant.into())
}
}
#[doc = "Configure as the analog ADC input 6 signal"]
#[inline(always)]
pub fn adc6(self) -> &'a mut W {
self.variant(PAD31FNCSEL_A::ADC6)
}
#[doc = "Configure as the SPI channel 4 nCE signal from IOMSTR0"]
#[inline(always)]
pub fn m0n_ce4(self) -> &'a mut W {
self.variant(PAD31FNCSEL_A::M0NCE4)
}
#[doc = "Configure as the input/output signal from CTIMER A3"]
#[inline(always)]
pub fn tcta3(self) -> &'a mut W {
self.variant(PAD31FNCSEL_A::TCTA3)
}
#[doc = "Configure as GPIO31"]
#[inline(always)]
pub fn gpio31(self) -> &'a mut W {
self.variant(PAD31FNCSEL_A::GPIO31)
}
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub fn bits(self, value: u8) -> &'a mut W {
self.w.bits = (self.w.bits & !(0x03 << 27)) | (((value as u32) & 0x03) << 27);
self.w
}
}
#[doc = "Pad 31 drive strentgh\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum PAD31STRNG_A {
#[doc = "0: Low drive strength"]
LOW = 0,
#[doc = "1: High drive strength"]
HIGH = 1,
}
impl From<PAD31STRNG_A> for bool {
#[inline(always)]
fn from(variant: PAD31STRNG_A) -> Self {
variant as u8 != 0
}
}
#[doc = "Reader of field `PAD31STRNG`"]
pub type PAD31STRNG_R = crate::R<bool, PAD31STRNG_A>;
impl PAD31STRNG_R {
#[doc = r"Get enumerated values variant"]
#[inline(always)]
pub fn variant(&self) -> PAD31STRNG_A {
match self.bits {
false => PAD31STRNG_A::LOW,
true => PAD31STRNG_A::HIGH,
}
}
#[doc = "Checks if the value of the field is `LOW`"]
#[inline(always)]
pub fn is_low(&self) -> bool {
*self == PAD31STRNG_A::LOW
}
#[doc = "Checks if the value of the field is `HIGH`"]
#[inline(always)]
pub fn is_high(&self) -> bool {
*self == PAD31STRNG_A::HIGH
}
}
#[doc = "Write proxy for field `PAD31STRNG`"]
pub struct PAD31STRNG_W<'a> {
w: &'a mut W,
}
impl<'a> PAD31STRNG_W<'a> {
#[doc = r"Writes `variant` to the field"]
#[inline(always)]
pub fn variant(self, variant: PAD31STRNG_A) -> &'a mut W {
{
self.bit(variant.into())
}
}
#[doc = "Low drive strength"]
#[inline(always)]
pub fn low(self) -> &'a mut W {
self.variant(PAD31STRNG_A::LOW)
}
#[doc = "High drive strength"]
#[inline(always)]
pub fn high(self) -> &'a mut W {
self.variant(PAD31STRNG_A::HIGH)
}
#[doc = r"Sets the field bit"]
#[inline(always)]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r"Clears the field bit"]
#[inline(always)]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub fn bit(self, value: bool) -> &'a mut W {
self.w.bits = (self.w.bits & !(0x01 << 26)) | (((value as u32) & 0x01) << 26);
self.w
}
}
#[doc = "Pad 31 input enable\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum PAD31INPEN_A {
#[doc = "0: Pad input disabled"]
DIS = 0,
#[doc = "1: Pad input enabled"]
EN = 1,
}
impl From<PAD31INPEN_A> for bool {
#[inline(always)]
fn from(variant: PAD31INPEN_A) -> Self {
variant as u8 != 0
}
}
#[doc = "Reader of field `PAD31INPEN`"]
pub type PAD31INPEN_R = crate::R<bool, PAD31INPEN_A>;
impl PAD31INPEN_R {
#[doc = r"Get enumerated values variant"]
#[inline(always)]
pub fn variant(&self) -> PAD31INPEN_A {
match self.bits {
false => PAD31INPEN_A::DIS,
true => PAD31INPEN_A::EN,
}
}
#[doc = "Checks if the value of the field is `DIS`"]
#[inline(always)]
pub fn is_dis(&self) -> bool {
*self == PAD31INPEN_A::DIS
}
#[doc = "Checks if the value of the field is `EN`"]
#[inline(always)]
pub fn is_en(&self) -> bool {
*self == PAD31INPEN_A::EN
}
}
#[doc = "Write proxy for field `PAD31INPEN`"]
pub struct PAD31INPEN_W<'a> {
w: &'a mut W,
}
impl<'a> PAD31INPEN_W<'a> {
#[doc = r"Writes `variant` to the field"]
#[inline(always)]
pub fn variant(self, variant: PAD31INPEN_A) -> &'a mut W {
{
self.bit(variant.into())
}
}
#[doc = "Pad input disabled"]
#[inline(always)]
pub fn dis(self) -> &'a mut W {
self.variant(PAD31INPEN_A::DIS)
}
#[doc = "Pad input enabled"]
#[inline(always)]
pub fn en(self) -> &'a mut W {
self.variant(PAD31INPEN_A::EN)
}
#[doc = r"Sets the field bit"]
#[inline(always)]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r"Clears the field bit"]
#[inline(always)]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub fn bit(self, value: bool) -> &'a mut W {
self.w.bits = (self.w.bits & !(0x01 << 25)) | (((value as u32) & 0x01) << 25);
self.w
}
}
#[doc = "Pad 31 pullup enable\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum PAD31PULL_A {
#[doc = "0: Pullup disabled"]
DIS = 0,
#[doc = "1: Pullup enabled"]
EN = 1,
}
impl From<PAD31PULL_A> for bool {
#[inline(always)]
fn from(variant: PAD31PULL_A) -> Self {
variant as u8 != 0
}
}
#[doc = "Reader of field `PAD31PULL`"]
pub type PAD31PULL_R = crate::R<bool, PAD31PULL_A>;
impl PAD31PULL_R {
#[doc = r"Get enumerated values variant"]
#[inline(always)]
pub fn variant(&self) -> PAD31PULL_A {
match self.bits {
false => PAD31PULL_A::DIS,
true => PAD31PULL_A::EN,
}
}
#[doc = "Checks if the value of the field is `DIS`"]
#[inline(always)]
pub fn is_dis(&self) -> bool {
*self == PAD31PULL_A::DIS
}
#[doc = "Checks if the value of the field is `EN`"]
#[inline(always)]
pub fn is_en(&self) -> bool {
*self == PAD31PULL_A::EN
}
}
#[doc = "Write proxy for field `PAD31PULL`"]
pub struct PAD31PULL_W<'a> {
w: &'a mut W,
}
impl<'a> PAD31PULL_W<'a> {
#[doc = r"Writes `variant` to the field"]
#[inline(always)]
pub fn variant(self, variant: PAD31PULL_A) -> &'a mut W {
{
self.bit(variant.into())
}
}
#[doc = "Pullup disabled"]
#[inline(always)]
pub fn dis(self) -> &'a mut W {
self.variant(PAD31PULL_A::DIS)
}
#[doc = "Pullup enabled"]
#[inline(always)]
pub fn en(self) -> &'a mut W {
self.variant(PAD31PULL_A::EN)
}
#[doc = r"Sets the field bit"]
#[inline(always)]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r"Clears the field bit"]
#[inline(always)]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub fn bit(self, value: bool) -> &'a mut W {
self.w.bits = (self.w.bits & !(0x01 << 24)) | (((value as u32) & 0x01) << 24);
self.w
}
}
#[doc = "Pad 30 function select\n\nValue on reset: 3"]
#[derive(Clone, Copy, Debug, PartialEq)]
#[repr(u8)]
pub enum PAD30FNCSEL_A {
#[doc = "0: Configure as the analog ADC input 5 signal"]
ADC5 = 0,
#[doc = "1: Configure as the SPI channel 7 nCE signal from IOMSTR1"]
M1NCE7 = 1,
#[doc = "2: Configure as the input/output signal from CTIMER B2"]
TCTB2 = 2,
#[doc = "3: Configure as GPIO30"]
GPIO30 = 3,
}
impl From<PAD30FNCSEL_A> for u8 {
#[inline(always)]
fn from(variant: PAD30FNCSEL_A) -> Self {
variant as _
}
}
#[doc = "Reader of field `PAD30FNCSEL`"]
pub type PAD30FNCSEL_R = crate::R<u8, PAD30FNCSEL_A>;
impl PAD30FNCSEL_R {
#[doc = r"Get enumerated values variant"]
#[inline(always)]
pub fn variant(&self) -> PAD30FNCSEL_A {
match self.bits {
0 => PAD30FNCSEL_A::ADC5,
1 => PAD30FNCSEL_A::M1NCE7,
2 => PAD30FNCSEL_A::TCTB2,
3 => PAD30FNCSEL_A::GPIO30,
_ => unreachable!(),
}
}
#[doc = "Checks if the value of the field is `ADC5`"]
#[inline(always)]
pub fn is_adc5(&self) -> bool {
*self == PAD30FNCSEL_A::ADC5
}
#[doc = "Checks if the value of the field is `M1NCE7`"]
#[inline(always)]
pub fn is_m1n_ce7(&self) -> bool {
*self == PAD30FNCSEL_A::M1NCE7
}
#[doc = "Checks if the value of the field is `TCTB2`"]
#[inline(always)]
pub fn is_tctb2(&self) -> bool {
*self == PAD30FNCSEL_A::TCTB2
}
#[doc = "Checks if the value of the field is `GPIO30`"]
#[inline(always)]
pub fn is_gpio30(&self) -> bool {
*self == PAD30FNCSEL_A::GPIO30
}
}
#[doc = "Write proxy for field `PAD30FNCSEL`"]
pub struct PAD30FNCSEL_W<'a> {
w: &'a mut W,
}
impl<'a> PAD30FNCSEL_W<'a> {
#[doc = r"Writes `variant` to the field"]
#[inline(always)]
pub fn variant(self, variant: PAD30FNCSEL_A) -> &'a mut W {
{
self.bits(variant.into())
}
}
#[doc = "Configure as the analog ADC input 5 signal"]
#[inline(always)]
pub fn adc5(self) -> &'a mut W {
self.variant(PAD30FNCSEL_A::ADC5)
}
#[doc = "Configure as the SPI channel 7 nCE signal from IOMSTR1"]
#[inline(always)]
pub fn m1n_ce7(self) -> &'a mut W {
self.variant(PAD30FNCSEL_A::M1NCE7)
}
#[doc = "Configure as the input/output signal from CTIMER B2"]
#[inline(always)]
pub fn tctb2(self) -> &'a mut W {
self.variant(PAD30FNCSEL_A::TCTB2)
}
#[doc = "Configure as GPIO30"]
#[inline(always)]
pub fn gpio30(self) -> &'a mut W {
self.variant(PAD30FNCSEL_A::GPIO30)
}
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub fn bits(self, value: u8) -> &'a mut W {
self.w.bits = (self.w.bits & !(0x03 << 19)) | (((value as u32) & 0x03) << 19);
self.w
}
}
#[doc = "Pad 30 drive strength\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum PAD30STRNG_A {
#[doc = "0: Low drive strength"]
LOW = 0,
#[doc = "1: High drive strength"]
HIGH = 1,
}
impl From<PAD30STRNG_A> for bool {
#[inline(always)]
fn from(variant: PAD30STRNG_A) -> Self {
variant as u8 != 0
}
}
#[doc = "Reader of field `PAD30STRNG`"]
pub type PAD30STRNG_R = crate::R<bool, PAD30STRNG_A>;
impl PAD30STRNG_R {
#[doc = r"Get enumerated values variant"]
#[inline(always)]
pub fn variant(&self) -> PAD30STRNG_A {
match self.bits {
false => PAD30STRNG_A::LOW,
true => PAD30STRNG_A::HIGH,
}
}
#[doc = "Checks if the value of the field is `LOW`"]
#[inline(always)]
pub fn is_low(&self) -> bool {
*self == PAD30STRNG_A::LOW
}
#[doc = "Checks if the value of the field is `HIGH`"]
#[inline(always)]
pub fn is_high(&self) -> bool {
*self == PAD30STRNG_A::HIGH
}
}
#[doc = "Write proxy for field `PAD30STRNG`"]
pub struct PAD30STRNG_W<'a> {
w: &'a mut W,
}
impl<'a> PAD30STRNG_W<'a> {
#[doc = r"Writes `variant` to the field"]
#[inline(always)]
pub fn variant(self, variant: PAD30STRNG_A) -> &'a mut W {
{
self.bit(variant.into())
}
}
#[doc = "Low drive strength"]
#[inline(always)]
pub fn low(self) -> &'a mut W {
self.variant(PAD30STRNG_A::LOW)
}
#[doc = "High drive strength"]
#[inline(always)]
pub fn high(self) -> &'a mut W {
self.variant(PAD30STRNG_A::HIGH)
}
#[doc = r"Sets the field bit"]
#[inline(always)]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r"Clears the field bit"]
#[inline(always)]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub fn bit(self, value: bool) -> &'a mut W {
self.w.bits = (self.w.bits & !(0x01 << 18)) | (((value as u32) & 0x01) << 18);
self.w
}
}
#[doc = "Pad 30 input enable\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum PAD30INPEN_A {
#[doc = "0: Pad input disabled"]
DIS = 0,
#[doc = "1: Pad input enabled"]
EN = 1,
}
impl From<PAD30INPEN_A> for bool {
#[inline(always)]
fn from(variant: PAD30INPEN_A) -> Self {
variant as u8 != 0
}
}
#[doc = "Reader of field `PAD30INPEN`"]
pub type PAD30INPEN_R = crate::R<bool, PAD30INPEN_A>;
impl PAD30INPEN_R {
#[doc = r"Get enumerated values variant"]
#[inline(always)]
pub fn variant(&self) -> PAD30INPEN_A {
match self.bits {
false => PAD30INPEN_A::DIS,
true => PAD30INPEN_A::EN,
}
}
#[doc = "Checks if the value of the field is `DIS`"]
#[inline(always)]
pub fn is_dis(&self) -> bool {
*self == PAD30INPEN_A::DIS
}
#[doc = "Checks if the value of the field is `EN`"]
#[inline(always)]
pub fn is_en(&self) -> bool {
*self == PAD30INPEN_A::EN
}
}
#[doc = "Write proxy for field `PAD30INPEN`"]
pub struct PAD30INPEN_W<'a> {
w: &'a mut W,
}
impl<'a> PAD30INPEN_W<'a> {
#[doc = r"Writes `variant` to the field"]
#[inline(always)]
pub fn variant(self, variant: PAD30INPEN_A) -> &'a mut W {
{
self.bit(variant.into())
}
}
#[doc = "Pad input disabled"]
#[inline(always)]
pub fn dis(self) -> &'a mut W {
self.variant(PAD30INPEN_A::DIS)
}
#[doc = "Pad input enabled"]
#[inline(always)]
pub fn en(self) -> &'a mut W {
self.variant(PAD30INPEN_A::EN)
}
#[doc = r"Sets the field bit"]
#[inline(always)]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r"Clears the field bit"]
#[inline(always)]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub fn bit(self, value: bool) -> &'a mut W {
self.w.bits = (self.w.bits & !(0x01 << 17)) | (((value as u32) & 0x01) << 17);
self.w
}
}
#[doc = "Pad 30 pullup enable\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum PAD30PULL_A {
#[doc = "0: Pullup disabled"]
DIS = 0,
#[doc = "1: Pullup enabled"]
EN = 1,
}
impl From<PAD30PULL_A> for bool {
#[inline(always)]
fn from(variant: PAD30PULL_A) -> Self {
variant as u8 != 0
}
}
#[doc = "Reader of field `PAD30PULL`"]
pub type PAD30PULL_R = crate::R<bool, PAD30PULL_A>;
impl PAD30PULL_R {
#[doc = r"Get enumerated values variant"]
#[inline(always)]
pub fn variant(&self) -> PAD30PULL_A {
match self.bits {
false => PAD30PULL_A::DIS,
true => PAD30PULL_A::EN,
}
}
#[doc = "Checks if the value of the field is `DIS`"]
#[inline(always)]
pub fn is_dis(&self) -> bool {
*self == PAD30PULL_A::DIS
}
#[doc = "Checks if the value of the field is `EN`"]
#[inline(always)]
pub fn is_en(&self) -> bool {
*self == PAD30PULL_A::EN
}
}
#[doc = "Write proxy for field `PAD30PULL`"]
pub struct PAD30PULL_W<'a> {
w: &'a mut W,
}
impl<'a> PAD30PULL_W<'a> {
#[doc = r"Writes `variant` to the field"]
#[inline(always)]
pub fn variant(self, variant: PAD30PULL_A) -> &'a mut W {
{
self.bit(variant.into())
}
}
#[doc = "Pullup disabled"]
#[inline(always)]
pub fn dis(self) -> &'a mut W {
self.variant(PAD30PULL_A::DIS)
}
#[doc = "Pullup enabled"]
#[inline(always)]
pub fn en(self) -> &'a mut W {
self.variant(PAD30PULL_A::EN)
}
#[doc = r"Sets the field bit"]
#[inline(always)]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r"Clears the field bit"]
#[inline(always)]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub fn bit(self, value: bool) -> &'a mut W {
self.w.bits = (self.w.bits & !(0x01 << 16)) | (((value as u32) & 0x01) << 16);
self.w
}
}
#[doc = "Pad 29 function select\n\nValue on reset: 3"]
#[derive(Clone, Copy, Debug, PartialEq)]
#[repr(u8)]
pub enum PAD29FNCSEL_A {
#[doc = "0: Configure as the analog ADC input 4 signal"]
ADC4 = 0,
#[doc = "1: Configure as the SPI channel 6 nCE signal from IOMSTR1"]
M1NCE6 = 1,
#[doc = "2: Configure as the input/output signal from CTIMER A2"]
TCTA2 = 2,
#[doc = "3: Configure as GPIO29"]
GPIO29 = 3,
}
impl From<PAD29FNCSEL_A> for u8 {
#[inline(always)]
fn from(variant: PAD29FNCSEL_A) -> Self {
variant as _
}
}
#[doc = "Reader of field `PAD29FNCSEL`"]
pub type PAD29FNCSEL_R = crate::R<u8, PAD29FNCSEL_A>;
impl PAD29FNCSEL_R {
#[doc = r"Get enumerated values variant"]
#[inline(always)]
pub fn variant(&self) -> PAD29FNCSEL_A {
match self.bits {
0 => PAD29FNCSEL_A::ADC4,
1 => PAD29FNCSEL_A::M1NCE6,
2 => PAD29FNCSEL_A::TCTA2,
3 => PAD29FNCSEL_A::GPIO29,
_ => unreachable!(),
}
}
#[doc = "Checks if the value of the field is `ADC4`"]
#[inline(always)]
pub fn is_adc4(&self) -> bool {
*self == PAD29FNCSEL_A::ADC4
}
#[doc = "Checks if the value of the field is `M1NCE6`"]
#[inline(always)]
pub fn is_m1n_ce6(&self) -> bool {
*self == PAD29FNCSEL_A::M1NCE6
}
#[doc = "Checks if the value of the field is `TCTA2`"]
#[inline(always)]
pub fn is_tcta2(&self) -> bool {
*self == PAD29FNCSEL_A::TCTA2
}
#[doc = "Checks if the value of the field is `GPIO29`"]
#[inline(always)]
pub fn is_gpio29(&self) -> bool {
*self == PAD29FNCSEL_A::GPIO29
}
}
#[doc = "Write proxy for field `PAD29FNCSEL`"]
pub struct PAD29FNCSEL_W<'a> {
w: &'a mut W,
}
impl<'a> PAD29FNCSEL_W<'a> {
#[doc = r"Writes `variant` to the field"]
#[inline(always)]
pub fn variant(self, variant: PAD29FNCSEL_A) -> &'a mut W {
{
self.bits(variant.into())
}
}
#[doc = "Configure as the analog ADC input 4 signal"]
#[inline(always)]
pub fn adc4(self) -> &'a mut W {
self.variant(PAD29FNCSEL_A::ADC4)
}
#[doc = "Configure as the SPI channel 6 nCE signal from IOMSTR1"]
#[inline(always)]
pub fn m1n_ce6(self) -> &'a mut W {
self.variant(PAD29FNCSEL_A::M1NCE6)
}
#[doc = "Configure as the input/output signal from CTIMER A2"]
#[inline(always)]
pub fn tcta2(self) -> &'a mut W {
self.variant(PAD29FNCSEL_A::TCTA2)
}
#[doc = "Configure as GPIO29"]
#[inline(always)]
pub fn gpio29(self) -> &'a mut W {
self.variant(PAD29FNCSEL_A::GPIO29)
}
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub fn bits(self, value: u8) -> &'a mut W {
self.w.bits = (self.w.bits & !(0x03 << 11)) | (((value as u32) & 0x03) << 11);
self.w
}
}
#[doc = "Pad 29 drive strength\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum PAD29STRNG_A {
#[doc = "0: Low drive strength"]
LOW = 0,
#[doc = "1: High drive strength"]
HIGH = 1,
}
impl From<PAD29STRNG_A> for bool {
#[inline(always)]
fn from(variant: PAD29STRNG_A) -> Self {
variant as u8 != 0
}
}
#[doc = "Reader of field `PAD29STRNG`"]
pub type PAD29STRNG_R = crate::R<bool, PAD29STRNG_A>;
impl PAD29STRNG_R {
#[doc = r"Get enumerated values variant"]
#[inline(always)]
pub fn variant(&self) -> PAD29STRNG_A {
match self.bits {
false => PAD29STRNG_A::LOW,
true => PAD29STRNG_A::HIGH,
}
}
#[doc = "Checks if the value of the field is `LOW`"]
#[inline(always)]
pub fn is_low(&self) -> bool {
*self == PAD29STRNG_A::LOW
}
#[doc = "Checks if the value of the field is `HIGH`"]
#[inline(always)]
pub fn is_high(&self) -> bool {
*self == PAD29STRNG_A::HIGH
}
}
#[doc = "Write proxy for field `PAD29STRNG`"]
pub struct PAD29STRNG_W<'a> {
w: &'a mut W,
}
impl<'a> PAD29STRNG_W<'a> {
#[doc = r"Writes `variant` to the field"]
#[inline(always)]
pub fn variant(self, variant: PAD29STRNG_A) -> &'a mut W {
{
self.bit(variant.into())
}
}
#[doc = "Low drive strength"]
#[inline(always)]
pub fn low(self) -> &'a mut W {
self.variant(PAD29STRNG_A::LOW)
}
#[doc = "High drive strength"]
#[inline(always)]
pub fn high(self) -> &'a mut W {
self.variant(PAD29STRNG_A::HIGH)
}
#[doc = r"Sets the field bit"]
#[inline(always)]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r"Clears the field bit"]
#[inline(always)]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub fn bit(self, value: bool) -> &'a mut W {
self.w.bits = (self.w.bits & !(0x01 << 10)) | (((value as u32) & 0x01) << 10);
self.w
}
}
#[doc = "Pad 29 input enable\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum PAD29INPEN_A {
#[doc = "0: Pad input disabled"]
DIS = 0,
#[doc = "1: Pad input enabled"]
EN = 1,
}
impl From<PAD29INPEN_A> for bool {
#[inline(always)]
fn from(variant: PAD29INPEN_A) -> Self {
variant as u8 != 0
}
}
#[doc = "Reader of field `PAD29INPEN`"]
pub type PAD29INPEN_R = crate::R<bool, PAD29INPEN_A>;
impl PAD29INPEN_R {
#[doc = r"Get enumerated values variant"]
#[inline(always)]
pub fn variant(&self) -> PAD29INPEN_A {
match self.bits {
false => PAD29INPEN_A::DIS,
true => PAD29INPEN_A::EN,
}
}
#[doc = "Checks if the value of the field is `DIS`"]
#[inline(always)]
pub fn is_dis(&self) -> bool {
*self == PAD29INPEN_A::DIS
}
#[doc = "Checks if the value of the field is `EN`"]
#[inline(always)]
pub fn is_en(&self) -> bool {
*self == PAD29INPEN_A::EN
}
}
#[doc = "Write proxy for field `PAD29INPEN`"]
pub struct PAD29INPEN_W<'a> {
w: &'a mut W,
}
impl<'a> PAD29INPEN_W<'a> {
#[doc = r"Writes `variant` to the field"]
#[inline(always)]
pub fn variant(self, variant: PAD29INPEN_A) -> &'a mut W {
{
self.bit(variant.into())
}
}
#[doc = "Pad input disabled"]
#[inline(always)]
pub fn dis(self) -> &'a mut W {
self.variant(PAD29INPEN_A::DIS)
}
#[doc = "Pad input enabled"]
#[inline(always)]
pub fn en(self) -> &'a mut W {
self.variant(PAD29INPEN_A::EN)
}
#[doc = r"Sets the field bit"]
#[inline(always)]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r"Clears the field bit"]
#[inline(always)]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub fn bit(self, value: bool) -> &'a mut W {
self.w.bits = (self.w.bits & !(0x01 << 9)) | (((value as u32) & 0x01) << 9);
self.w
}
}
#[doc = "Pad 29 pullup enable\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum PAD29PULL_A {
#[doc = "0: Pullup disabled"]
DIS = 0,
#[doc = "1: Pullup enabled"]
EN = 1,
}
impl From<PAD29PULL_A> for bool {
#[inline(always)]
fn from(variant: PAD29PULL_A) -> Self {
variant as u8 != 0
}
}
#[doc = "Reader of field `PAD29PULL`"]
pub type PAD29PULL_R = crate::R<bool, PAD29PULL_A>;
impl PAD29PULL_R {
#[doc = r"Get enumerated values variant"]
#[inline(always)]
pub fn variant(&self) -> PAD29PULL_A {
match self.bits {
false => PAD29PULL_A::DIS,
true => PAD29PULL_A::EN,
}
}
#[doc = "Checks if the value of the field is `DIS`"]
#[inline(always)]
pub fn is_dis(&self) -> bool {
*self == PAD29PULL_A::DIS
}
#[doc = "Checks if the value of the field is `EN`"]
#[inline(always)]
pub fn is_en(&self) -> bool {
*self == PAD29PULL_A::EN
}
}
#[doc = "Write proxy for field `PAD29PULL`"]
pub struct PAD29PULL_W<'a> {
w: &'a mut W,
}
impl<'a> PAD29PULL_W<'a> {
#[doc = r"Writes `variant` to the field"]
#[inline(always)]
pub fn variant(self, variant: PAD29PULL_A) -> &'a mut W {
{
self.bit(variant.into())
}
}
#[doc = "Pullup disabled"]
#[inline(always)]
pub fn dis(self) -> &'a mut W {
self.variant(PAD29PULL_A::DIS)
}
#[doc = "Pullup enabled"]
#[inline(always)]
pub fn en(self) -> &'a mut W {
self.variant(PAD29PULL_A::EN)
}
#[doc = r"Sets the field bit"]
#[inline(always)]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r"Clears the field bit"]
#[inline(always)]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub fn bit(self, value: bool) -> &'a mut W {
self.w.bits = (self.w.bits & !(0x01 << 8)) | (((value as u32) & 0x01) << 8);
self.w
}
}
#[doc = "Pad 28 function select\n\nValue on reset: 3"]
#[derive(Clone, Copy, Debug, PartialEq)]
#[repr(u8)]
pub enum PAD28FNCSEL_A {
#[doc = "0: Pad disabled"]
DIS = 0,
#[doc = "1: Configure as the SPI channel 5 nCE signal from IOMSTR1"]
M1NCE5 = 1,
#[doc = "2: Configure as the input/output signal from CTIMER B1"]
TCTB1 = 2,
#[doc = "3: Configure as GPIO28"]
GPIO28 = 3,
}
impl From<PAD28FNCSEL_A> for u8 {
#[inline(always)]
fn from(variant: PAD28FNCSEL_A) -> Self {
variant as _
}
}
#[doc = "Reader of field `PAD28FNCSEL`"]
pub type PAD28FNCSEL_R = crate::R<u8, PAD28FNCSEL_A>;
impl PAD28FNCSEL_R {
#[doc = r"Get enumerated values variant"]
#[inline(always)]
pub fn variant(&self) -> PAD28FNCSEL_A {
match self.bits {
0 => PAD28FNCSEL_A::DIS,
1 => PAD28FNCSEL_A::M1NCE5,
2 => PAD28FNCSEL_A::TCTB1,
3 => PAD28FNCSEL_A::GPIO28,
_ => unreachable!(),
}
}
#[doc = "Checks if the value of the field is `DIS`"]
#[inline(always)]
pub fn is_dis(&self) -> bool {
*self == PAD28FNCSEL_A::DIS
}
#[doc = "Checks if the value of the field is `M1NCE5`"]
#[inline(always)]
pub fn is_m1n_ce5(&self) -> bool {
*self == PAD28FNCSEL_A::M1NCE5
}
#[doc = "Checks if the value of the field is `TCTB1`"]
#[inline(always)]
pub fn is_tctb1(&self) -> bool {
*self == PAD28FNCSEL_A::TCTB1
}
#[doc = "Checks if the value of the field is `GPIO28`"]
#[inline(always)]
pub fn is_gpio28(&self) -> bool {
*self == PAD28FNCSEL_A::GPIO28
}
}
#[doc = "Write proxy for field `PAD28FNCSEL`"]
pub struct PAD28FNCSEL_W<'a> {
w: &'a mut W,
}
impl<'a> PAD28FNCSEL_W<'a> {
#[doc = r"Writes `variant` to the field"]
#[inline(always)]
pub fn variant(self, variant: PAD28FNCSEL_A) -> &'a mut W {
{
self.bits(variant.into())
}
}
#[doc = "Pad disabled"]
#[inline(always)]
pub fn dis(self) -> &'a mut W {
self.variant(PAD28FNCSEL_A::DIS)
}
#[doc = "Configure as the SPI channel 5 nCE signal from IOMSTR1"]
#[inline(always)]
pub fn m1n_ce5(self) -> &'a mut W {
self.variant(PAD28FNCSEL_A::M1NCE5)
}
#[doc = "Configure as the input/output signal from CTIMER B1"]
#[inline(always)]
pub fn tctb1(self) -> &'a mut W {
self.variant(PAD28FNCSEL_A::TCTB1)
}
#[doc = "Configure as GPIO28"]
#[inline(always)]
pub fn gpio28(self) -> &'a mut W {
self.variant(PAD28FNCSEL_A::GPIO28)
}
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub fn bits(self, value: u8) -> &'a mut W {
self.w.bits = (self.w.bits & !(0x03 << 3)) | (((value as u32) & 0x03) << 3);
self.w
}
}
#[doc = "Pad 28 drive strength\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum PAD28STRNG_A {
#[doc = "0: Low drive strength"]
LOW = 0,
#[doc = "1: High drive strength"]
HIGH = 1,
}
impl From<PAD28STRNG_A> for bool {
#[inline(always)]
fn from(variant: PAD28STRNG_A) -> Self {
variant as u8 != 0
}
}
#[doc = "Reader of field `PAD28STRNG`"]
pub type PAD28STRNG_R = crate::R<bool, PAD28STRNG_A>;
impl PAD28STRNG_R {
#[doc = r"Get enumerated values variant"]
#[inline(always)]
pub fn variant(&self) -> PAD28STRNG_A {
match self.bits {
false => PAD28STRNG_A::LOW,
true => PAD28STRNG_A::HIGH,
}
}
#[doc = "Checks if the value of the field is `LOW`"]
#[inline(always)]
pub fn is_low(&self) -> bool {
*self == PAD28STRNG_A::LOW
}
#[doc = "Checks if the value of the field is `HIGH`"]
#[inline(always)]
pub fn is_high(&self) -> bool {
*self == PAD28STRNG_A::HIGH
}
}
#[doc = "Write proxy for field `PAD28STRNG`"]
pub struct PAD28STRNG_W<'a> {
w: &'a mut W,
}
impl<'a> PAD28STRNG_W<'a> {
#[doc = r"Writes `variant` to the field"]
#[inline(always)]
pub fn variant(self, variant: PAD28STRNG_A) -> &'a mut W {
{
self.bit(variant.into())
}
}
#[doc = "Low drive strength"]
#[inline(always)]
pub fn low(self) -> &'a mut W {
self.variant(PAD28STRNG_A::LOW)
}
#[doc = "High drive strength"]
#[inline(always)]
pub fn high(self) -> &'a mut W {
self.variant(PAD28STRNG_A::HIGH)
}
#[doc = r"Sets the field bit"]
#[inline(always)]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r"Clears the field bit"]
#[inline(always)]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub fn bit(self, value: bool) -> &'a mut W {
self.w.bits = (self.w.bits & !(0x01 << 2)) | (((value as u32) & 0x01) << 2);
self.w
}
}
#[doc = "Pad 28 input enable\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum PAD28INPEN_A {
#[doc = "0: Pad input disabled"]
DIS = 0,
#[doc = "1: Pad input enabled"]
EN = 1,
}
impl From<PAD28INPEN_A> for bool {
#[inline(always)]
fn from(variant: PAD28INPEN_A) -> Self {
variant as u8 != 0
}
}
#[doc = "Reader of field `PAD28INPEN`"]
pub type PAD28INPEN_R = crate::R<bool, PAD28INPEN_A>;
impl PAD28INPEN_R {
#[doc = r"Get enumerated values variant"]
#[inline(always)]
pub fn variant(&self) -> PAD28INPEN_A {
match self.bits {
false => PAD28INPEN_A::DIS,
true => PAD28INPEN_A::EN,
}
}
#[doc = "Checks if the value of the field is `DIS`"]
#[inline(always)]
pub fn is_dis(&self) -> bool {
*self == PAD28INPEN_A::DIS
}
#[doc = "Checks if the value of the field is `EN`"]
#[inline(always)]
pub fn is_en(&self) -> bool {
*self == PAD28INPEN_A::EN
}
}
#[doc = "Write proxy for field `PAD28INPEN`"]
pub struct PAD28INPEN_W<'a> {
w: &'a mut W,
}
impl<'a> PAD28INPEN_W<'a> {
#[doc = r"Writes `variant` to the field"]
#[inline(always)]
pub fn variant(self, variant: PAD28INPEN_A) -> &'a mut W {
{
self.bit(variant.into())
}
}
#[doc = "Pad input disabled"]
#[inline(always)]
pub fn dis(self) -> &'a mut W {
self.variant(PAD28INPEN_A::DIS)
}
#[doc = "Pad input enabled"]
#[inline(always)]
pub fn en(self) -> &'a mut W {
self.variant(PAD28INPEN_A::EN)
}
#[doc = r"Sets the field bit"]
#[inline(always)]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r"Clears the field bit"]
#[inline(always)]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub fn bit(self, value: bool) -> &'a mut W {
self.w.bits = (self.w.bits & !(0x01 << 1)) | (((value as u32) & 0x01) << 1);
self.w
}
}
#[doc = "Pad 28 pullup enable\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum PAD28PULL_A {
#[doc = "0: Pullup disabled"]
DIS = 0,
#[doc = "1: Pullup enabled"]
EN = 1,
}
impl From<PAD28PULL_A> for bool {
#[inline(always)]
fn from(variant: PAD28PULL_A) -> Self {
variant as u8 != 0
}
}
#[doc = "Reader of field `PAD28PULL`"]
pub type PAD28PULL_R = crate::R<bool, PAD28PULL_A>;
impl PAD28PULL_R {
#[doc = r"Get enumerated values variant"]
#[inline(always)]
pub fn variant(&self) -> PAD28PULL_A {
match self.bits {
false => PAD28PULL_A::DIS,
true => PAD28PULL_A::EN,
}
}
#[doc = "Checks if the value of the field is `DIS`"]
#[inline(always)]
pub fn is_dis(&self) -> bool {
*self == PAD28PULL_A::DIS
}
#[doc = "Checks if the value of the field is `EN`"]
#[inline(always)]
pub fn is_en(&self) -> bool {
*self == PAD28PULL_A::EN
}
}
#[doc = "Write proxy for field `PAD28PULL`"]
pub struct PAD28PULL_W<'a> {
w: &'a mut W,
}
impl<'a> PAD28PULL_W<'a> {
#[doc = r"Writes `variant` to the field"]
#[inline(always)]
pub fn variant(self, variant: PAD28PULL_A) -> &'a mut W {
{
self.bit(variant.into())
}
}
#[doc = "Pullup disabled"]
#[inline(always)]
pub fn dis(self) -> &'a mut W {
self.variant(PAD28PULL_A::DIS)
}
#[doc = "Pullup enabled"]
#[inline(always)]
pub fn en(self) -> &'a mut W {
self.variant(PAD28PULL_A::EN)
}
#[doc = r"Sets the field bit"]
#[inline(always)]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r"Clears the field bit"]
#[inline(always)]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub fn bit(self, value: bool) -> &'a mut W {
self.w.bits = (self.w.bits & !0x01) | ((value as u32) & 0x01);
self.w
}
}
impl R {
#[doc = "Bits 27:28 - Pad 31 function select"]
#[inline(always)]
pub fn pad31fncsel(&self) -> PAD31FNCSEL_R {
PAD31FNCSEL_R::new(((self.bits >> 27) & 0x03) as u8)
}
#[doc = "Bit 26 - Pad 31 drive strentgh"]
#[inline(always)]
pub fn pad31strng(&self) -> PAD31STRNG_R {
PAD31STRNG_R::new(((self.bits >> 26) & 0x01) != 0)
}
#[doc = "Bit 25 - Pad 31 input enable"]
#[inline(always)]
pub fn pad31inpen(&self) -> PAD31INPEN_R {
PAD31INPEN_R::new(((self.bits >> 25) & 0x01) != 0)
}
#[doc = "Bit 24 - Pad 31 pullup enable"]
#[inline(always)]
pub fn pad31pull(&self) -> PAD31PULL_R {
PAD31PULL_R::new(((self.bits >> 24) & 0x01) != 0)
}
#[doc = "Bits 19:20 - Pad 30 function select"]
#[inline(always)]
pub fn pad30fncsel(&self) -> PAD30FNCSEL_R {
PAD30FNCSEL_R::new(((self.bits >> 19) & 0x03) as u8)
}
#[doc = "Bit 18 - Pad 30 drive strength"]
#[inline(always)]
pub fn pad30strng(&self) -> PAD30STRNG_R {
PAD30STRNG_R::new(((self.bits >> 18) & 0x01) != 0)
}
#[doc = "Bit 17 - Pad 30 input enable"]
#[inline(always)]
pub fn pad30inpen(&self) -> PAD30INPEN_R {
PAD30INPEN_R::new(((self.bits >> 17) & 0x01) != 0)
}
#[doc = "Bit 16 - Pad 30 pullup enable"]
#[inline(always)]
pub fn pad30pull(&self) -> PAD30PULL_R {
PAD30PULL_R::new(((self.bits >> 16) & 0x01) != 0)
}
#[doc = "Bits 11:12 - Pad 29 function select"]
#[inline(always)]
pub fn pad29fncsel(&self) -> PAD29FNCSEL_R {
PAD29FNCSEL_R::new(((self.bits >> 11) & 0x03) as u8)
}
#[doc = "Bit 10 - Pad 29 drive strength"]
#[inline(always)]
pub fn pad29strng(&self) -> PAD29STRNG_R {
PAD29STRNG_R::new(((self.bits >> 10) & 0x01) != 0)
}
#[doc = "Bit 9 - Pad 29 input enable"]
#[inline(always)]
pub fn pad29inpen(&self) -> PAD29INPEN_R {
PAD29INPEN_R::new(((self.bits >> 9) & 0x01) != 0)
}
#[doc = "Bit 8 - Pad 29 pullup enable"]
#[inline(always)]
pub fn pad29pull(&self) -> PAD29PULL_R {
PAD29PULL_R::new(((self.bits >> 8) & 0x01) != 0)
}
#[doc = "Bits 3:4 - Pad 28 function select"]
#[inline(always)]
pub fn pad28fncsel(&self) -> PAD28FNCSEL_R {
PAD28FNCSEL_R::new(((self.bits >> 3) & 0x03) as u8)
}
#[doc = "Bit 2 - Pad 28 drive strength"]
#[inline(always)]
pub fn pad28strng(&self) -> PAD28STRNG_R {
PAD28STRNG_R::new(((self.bits >> 2) & 0x01) != 0)
}
#[doc = "Bit 1 - Pad 28 input enable"]
#[inline(always)]
pub fn pad28inpen(&self) -> PAD28INPEN_R {
PAD28INPEN_R::new(((self.bits >> 1) & 0x01) != 0)
}
#[doc = "Bit 0 - Pad 28 pullup enable"]
#[inline(always)]
pub fn pad28pull(&self) -> PAD28PULL_R {
PAD28PULL_R::new((self.bits & 0x01) != 0)
}
}
impl W {
#[doc = "Bits 27:28 - Pad 31 function select"]
#[inline(always)]
pub fn pad31fncsel(&mut self) -> PAD31FNCSEL_W {
PAD31FNCSEL_W { w: self }
}
#[doc = "Bit 26 - Pad 31 drive strentgh"]
#[inline(always)]
pub fn pad31strng(&mut self) -> PAD31STRNG_W {
PAD31STRNG_W { w: self }
}
#[doc = "Bit 25 - Pad 31 input enable"]
#[inline(always)]
pub fn pad31inpen(&mut self) -> PAD31INPEN_W {
PAD31INPEN_W { w: self }
}
#[doc = "Bit 24 - Pad 31 pullup enable"]
#[inline(always)]
pub fn pad31pull(&mut self) -> PAD31PULL_W {
PAD31PULL_W { w: self }
}
#[doc = "Bits 19:20 - Pad 30 function select"]
#[inline(always)]
pub fn pad30fncsel(&mut self) -> PAD30FNCSEL_W {
PAD30FNCSEL_W { w: self }
}
#[doc = "Bit 18 - Pad 30 drive strength"]
#[inline(always)]
pub fn pad30strng(&mut self) -> PAD30STRNG_W {
PAD30STRNG_W { w: self }
}
#[doc = "Bit 17 - Pad 30 input enable"]
#[inline(always)]
pub fn pad30inpen(&mut self) -> PAD30INPEN_W {
PAD30INPEN_W { w: self }
}
#[doc = "Bit 16 - Pad 30 pullup enable"]
#[inline(always)]
pub fn pad30pull(&mut self) -> PAD30PULL_W {
PAD30PULL_W { w: self }
}
#[doc = "Bits 11:12 - Pad 29 function select"]
#[inline(always)]
pub fn pad29fncsel(&mut self) -> PAD29FNCSEL_W {
PAD29FNCSEL_W { w: self }
}
#[doc = "Bit 10 - Pad 29 drive strength"]
#[inline(always)]
pub fn pad29strng(&mut self) -> PAD29STRNG_W {
PAD29STRNG_W { w: self }
}
#[doc = "Bit 9 - Pad 29 input enable"]
#[inline(always)]
pub fn pad29inpen(&mut self) -> PAD29INPEN_W {
PAD29INPEN_W { w: self }
}
#[doc = "Bit 8 - Pad 29 pullup enable"]
#[inline(always)]
pub fn pad29pull(&mut self) -> PAD29PULL_W {
PAD29PULL_W { w: self }
}
#[doc = "Bits 3:4 - Pad 28 function select"]
#[inline(always)]
pub fn pad28fncsel(&mut self) -> PAD28FNCSEL_W {
PAD28FNCSEL_W { w: self }
}
#[doc = "Bit 2 - Pad 28 drive strength"]
#[inline(always)]
pub fn pad28strng(&mut self) -> PAD28STRNG_W {
PAD28STRNG_W { w: self }
}
#[doc = "Bit 1 - Pad 28 input enable"]
#[inline(always)]
pub fn pad28inpen(&mut self) -> PAD28INPEN_W {
PAD28INPEN_W { w: self }
}
#[doc = "Bit 0 - Pad 28 pullup enable"]
#[inline(always)]
pub fn pad28pull(&mut self) -> PAD28PULL_W {
PAD28PULL_W { w: self }
}
}