///Register `FDCAN_HPMS` reader
pub type R = crate::R<FDCAN_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("FDCAN_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 [`fdcan_hpms::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api).*/
pub struct FDCAN_HPMSrs;
impl crate::RegisterSpec for FDCAN_HPMSrs {
    type Ux = u32;
}
///`read()` method returns [`fdcan_hpms::R`](R) reader structure
impl crate::Readable for FDCAN_HPMSrs {}
///`reset()` method sets FDCAN_HPMS to value 0
impl crate::Resettable for FDCAN_HPMSrs {
    const RESET_VALUE: u32 = 0;
}
