efm32gg12b810-pac 0.1.0

Peripheral access API for EFM32GG12B810 MCU (generated using svd2rust)
Documentation
#[doc = "Register `MAXCURCAPAB` reader"]
pub struct R(crate::R<MAXCURCAPAB_SPEC>);
impl core::ops::Deref for R {
    type Target = crate::R<MAXCURCAPAB_SPEC>;
    #[inline(always)]
    fn deref(&self) -> &Self::Target {
        &self.0
    }
}
impl From<crate::R<MAXCURCAPAB_SPEC>> for R {
    #[inline(always)]
    fn from(reader: crate::R<MAXCURCAPAB_SPEC>) -> Self {
        R(reader)
    }
}
#[doc = "Field `MAXCUR3P3VAL` reader - Maximum Current for 3.3V"]
pub type MAXCUR3P3VAL_R = crate::FieldReader<u8, u8>;
#[doc = "Field `MAXCUR3P0VAL` reader - Maximum Current for 3.0V"]
pub type MAXCUR3P0VAL_R = crate::FieldReader<u8, u8>;
#[doc = "Field `MAXCUR1P8VAL` reader - Maximum Current for 1.8V"]
pub type MAXCUR1P8VAL_R = crate::FieldReader<u8, u8>;
impl R {
    #[doc = "Bits 0:7 - Maximum Current for 3.3V"]
    #[inline(always)]
    pub fn maxcur3p3val(&self) -> MAXCUR3P3VAL_R {
        MAXCUR3P3VAL_R::new((self.bits & 0xff) as u8)
    }
    #[doc = "Bits 8:15 - Maximum Current for 3.0V"]
    #[inline(always)]
    pub fn maxcur3p0val(&self) -> MAXCUR3P0VAL_R {
        MAXCUR3P0VAL_R::new(((self.bits >> 8) & 0xff) as u8)
    }
    #[doc = "Bits 16:23 - Maximum Current for 1.8V"]
    #[inline(always)]
    pub fn maxcur1p8val(&self) -> MAXCUR1P8VAL_R {
        MAXCUR1P8VAL_R::new(((self.bits >> 16) & 0xff) as u8)
    }
}
#[doc = "Maximum Current Capabilities Register\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [maxcurcapab](index.html) module"]
pub struct MAXCURCAPAB_SPEC;
impl crate::RegisterSpec for MAXCURCAPAB_SPEC {
    type Ux = u32;
}
#[doc = "`read()` method returns [maxcurcapab::R](R) reader structure"]
impl crate::Readable for MAXCURCAPAB_SPEC {
    type Reader = R;
}
#[doc = "`reset()` method sets MAXCURCAPAB to value 0"]
impl crate::Resettable for MAXCURCAPAB_SPEC {
    #[inline(always)]
    fn reset_value() -> Self::Ux {
        0
    }
}