stm32g4-staging 0.22.0

Device support crates for STM32G4 devices
Documentation
///Register `HPMS` reader
pub type R = crate::R<HPMSrs>;
///Field `BIDX` reader - Buffer index Index of Rx FIFO element to which the message was stored. Only valid when MSI\[1\] = 1.
pub type BIDX_R = crate::FieldReader;
///Field `MSI` reader - Message storage indicator
pub type MSI_R = crate::FieldReader;
///Field `FIDX` reader - Filter index Index of matching filter element. Range is 0 to RXGFC\[LSS\] - 1 or RXGFC\[LSE\] - 1.
pub type FIDX_R = crate::FieldReader;
///Field `FLST` reader - Filter list Indicates the filter list of the matching filter element.
pub type FLST_R = crate::BitReader;
impl R {
    ///Bits 0:2 - Buffer index Index of Rx FIFO element to which the message was stored. Only valid when MSI\[1\] = 1.
    #[inline(always)]
    pub fn bidx(&self) -> BIDX_R {
        BIDX_R::new((self.bits & 7) as u8)
    }
    ///Bits 6:7 - Message storage indicator
    #[inline(always)]
    pub fn msi(&self) -> MSI_R {
        MSI_R::new(((self.bits >> 6) & 3) as u8)
    }
    ///Bits 8:12 - Filter index Index of matching filter element. Range is 0 to RXGFC\[LSS\] - 1 or RXGFC\[LSE\] - 1.
    #[inline(always)]
    pub fn fidx(&self) -> FIDX_R {
        FIDX_R::new(((self.bits >> 8) & 0x1f) as u8)
    }
    ///Bit 15 - Filter list Indicates the filter list of the matching filter element.
    #[inline(always)]
    pub fn flst(&self) -> FLST_R {
        FLST_R::new(((self.bits >> 15) & 1) != 0)
    }
}
impl core::fmt::Debug for R {
    fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
        f.debug_struct("HPMS")
            .field("bidx", &self.bidx())
            .field("msi", &self.msi())
            .field("fidx", &self.fidx())
            .field("flst", &self.flst())
            .finish()
    }
}
/**FDCAN high-priority message status register

You can [`read`](crate::Reg::read) this register and get [`hpms::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api).

See register [structure](https://stm32-rs.github.io/stm32-rs/STM32G441.html#FDCAN:HPMS)*/
pub struct HPMSrs;
impl crate::RegisterSpec for HPMSrs {
    type Ux = u32;
}
///`read()` method returns [`hpms::R`](R) reader structure
impl crate::Readable for HPMSrs {}
///`reset()` method sets HPMS to value 0
impl crate::Resettable for HPMSrs {}