stm32h7 0.16.0

Device support crates for STM32H7 devices
Documentation
///Register `CONFR5` reader
pub type R = crate::R<CONFR5rs>;
///Register `CONFR5` writer
pub type W = crate::W<CONFR5rs>;
///Field `HD` reader - Huffman DC Selects the Huffman table for encoding DC coefficients.
pub type HD_R = crate::BitReader;
///Field `HD` writer - Huffman DC Selects the Huffman table for encoding DC coefficients.
pub type HD_W<'a, REG> = crate::BitWriter<'a, REG>;
///Field `HA` reader - Huffman AC Selects the Huffman table for encoding AC coefficients.
pub type HA_R = crate::BitReader;
///Field `HA` writer - Huffman AC Selects the Huffman table for encoding AC coefficients.
pub type HA_W<'a, REG> = crate::BitWriter<'a, REG>;
///Field `QT` reader - Quantization table Selects quantization table used for component 1.
pub type QT_R = crate::FieldReader;
///Field `QT` writer - Quantization table Selects quantization table used for component 1.
pub type QT_W<'a, REG> = crate::FieldWriter<'a, REG, 2>;
///Field `NB` reader - Number of blocks Number of data units minus 1 that belong to a particular color in the MCU.
pub type NB_R = crate::FieldReader;
///Field `NB` writer - Number of blocks Number of data units minus 1 that belong to a particular color in the MCU.
pub type NB_W<'a, REG> = crate::FieldWriter<'a, REG, 4>;
///Field `VSF` reader - Vertical sampling factor Vertical sampling factor for component 1.
pub type VSF_R = crate::FieldReader;
///Field `VSF` writer - Vertical sampling factor Vertical sampling factor for component 1.
pub type VSF_W<'a, REG> = crate::FieldWriter<'a, REG, 4>;
///Field `HSF` reader - Horizontal sampling factor Horizontal sampling factor for component 1.
pub type HSF_R = crate::FieldReader;
///Field `HSF` writer - Horizontal sampling factor Horizontal sampling factor for component 1.
pub type HSF_W<'a, REG> = crate::FieldWriter<'a, REG, 4>;
impl R {
    ///Bit 0 - Huffman DC Selects the Huffman table for encoding DC coefficients.
    #[inline(always)]
    pub fn hd(&self) -> HD_R {
        HD_R::new((self.bits & 1) != 0)
    }
    ///Bit 1 - Huffman AC Selects the Huffman table for encoding AC coefficients.
    #[inline(always)]
    pub fn ha(&self) -> HA_R {
        HA_R::new(((self.bits >> 1) & 1) != 0)
    }
    ///Bits 2:3 - Quantization table Selects quantization table used for component 1.
    #[inline(always)]
    pub fn qt(&self) -> QT_R {
        QT_R::new(((self.bits >> 2) & 3) as u8)
    }
    ///Bits 4:7 - Number of blocks Number of data units minus 1 that belong to a particular color in the MCU.
    #[inline(always)]
    pub fn nb(&self) -> NB_R {
        NB_R::new(((self.bits >> 4) & 0x0f) as u8)
    }
    ///Bits 8:11 - Vertical sampling factor Vertical sampling factor for component 1.
    #[inline(always)]
    pub fn vsf(&self) -> VSF_R {
        VSF_R::new(((self.bits >> 8) & 0x0f) as u8)
    }
    ///Bits 12:15 - Horizontal sampling factor Horizontal sampling factor for component 1.
    #[inline(always)]
    pub fn hsf(&self) -> HSF_R {
        HSF_R::new(((self.bits >> 12) & 0x0f) as u8)
    }
}
impl core::fmt::Debug for R {
    fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
        f.debug_struct("CONFR5")
            .field("hd", &self.hd())
            .field("ha", &self.ha())
            .field("qt", &self.qt())
            .field("nb", &self.nb())
            .field("vsf", &self.vsf())
            .field("hsf", &self.hsf())
            .finish()
    }
}
impl W {
    ///Bit 0 - Huffman DC Selects the Huffman table for encoding DC coefficients.
    #[inline(always)]
    pub fn hd(&mut self) -> HD_W<CONFR5rs> {
        HD_W::new(self, 0)
    }
    ///Bit 1 - Huffman AC Selects the Huffman table for encoding AC coefficients.
    #[inline(always)]
    pub fn ha(&mut self) -> HA_W<CONFR5rs> {
        HA_W::new(self, 1)
    }
    ///Bits 2:3 - Quantization table Selects quantization table used for component 1.
    #[inline(always)]
    pub fn qt(&mut self) -> QT_W<CONFR5rs> {
        QT_W::new(self, 2)
    }
    ///Bits 4:7 - Number of blocks Number of data units minus 1 that belong to a particular color in the MCU.
    #[inline(always)]
    pub fn nb(&mut self) -> NB_W<CONFR5rs> {
        NB_W::new(self, 4)
    }
    ///Bits 8:11 - Vertical sampling factor Vertical sampling factor for component 1.
    #[inline(always)]
    pub fn vsf(&mut self) -> VSF_W<CONFR5rs> {
        VSF_W::new(self, 8)
    }
    ///Bits 12:15 - Horizontal sampling factor Horizontal sampling factor for component 1.
    #[inline(always)]
    pub fn hsf(&mut self) -> HSF_W<CONFR5rs> {
        HSF_W::new(self, 12)
    }
}
/**JPEG codec configuration register 5

You can [`read`](crate::Reg::read) this register and get [`confr5::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`confr5::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).*/
pub struct CONFR5rs;
impl crate::RegisterSpec for CONFR5rs {
    type Ux = u32;
}
///`read()` method returns [`confr5::R`](R) reader structure
impl crate::Readable for CONFR5rs {}
///`write(|w| ..)` method takes [`confr5::W`](W) writer structure
impl crate::Writable for CONFR5rs {
    type Safety = crate::Unsafe;
}
///`reset()` method sets CONFR5 to value 0
impl crate::Resettable for CONFR5rs {}