stm32f2 0.16.0

Device support crates for STM32F2 devices
Documentation
///Register `MACVLANTR` reader
pub type R = crate::R<MACVLANTRrs>;
///Register `MACVLANTR` writer
pub type W = crate::W<MACVLANTRrs>;
///Field `VLANTI` reader - VLAN tag identifier
pub type VLANTI_R = crate::FieldReader<u16>;
///Field `VLANTI` writer - VLAN tag identifier
pub type VLANTI_W<'a, REG> = crate::FieldWriter<'a, REG, 16, u16>;
///Field `VLANTC` reader - 12-bit VLAN tag comparison
pub type VLANTC_R = crate::BitReader;
///Field `VLANTC` writer - 12-bit VLAN tag comparison
pub type VLANTC_W<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
    ///Bits 0:15 - VLAN tag identifier
    #[inline(always)]
    pub fn vlanti(&self) -> VLANTI_R {
        VLANTI_R::new((self.bits & 0xffff) as u16)
    }
    ///Bit 16 - 12-bit VLAN tag comparison
    #[inline(always)]
    pub fn vlantc(&self) -> VLANTC_R {
        VLANTC_R::new(((self.bits >> 16) & 1) != 0)
    }
}
impl core::fmt::Debug for R {
    fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
        f.debug_struct("MACVLANTR")
            .field("vlanti", &self.vlanti())
            .field("vlantc", &self.vlantc())
            .finish()
    }
}
impl W {
    ///Bits 0:15 - VLAN tag identifier
    #[inline(always)]
    pub fn vlanti(&mut self) -> VLANTI_W<MACVLANTRrs> {
        VLANTI_W::new(self, 0)
    }
    ///Bit 16 - 12-bit VLAN tag comparison
    #[inline(always)]
    pub fn vlantc(&mut self) -> VLANTC_W<MACVLANTRrs> {
        VLANTC_W::new(self, 16)
    }
}
/**Ethernet MAC VLAN tag register

You can [`read`](crate::Reg::read) this register and get [`macvlantr::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`macvlantr::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).

See register [structure](https://stm32-rs.github.io/stm32-rs/STM32F215.html#Ethernet_MAC:MACVLANTR)*/
pub struct MACVLANTRrs;
impl crate::RegisterSpec for MACVLANTRrs {
    type Ux = u32;
}
///`read()` method returns [`macvlantr::R`](R) reader structure
impl crate::Readable for MACVLANTRrs {}
///`write(|w| ..)` method takes [`macvlantr::W`](W) writer structure
impl crate::Writable for MACVLANTRrs {
    type Safety = crate::Unsafe;
}
///`reset()` method sets MACVLANTR to value 0
impl crate::Resettable for MACVLANTRrs {}