stm32mp1 0.16.0

Device support crates for STM32MP1 devices
Documentation
///Register `HCSPLT14` reader
pub type R = crate::R<HCSPLT14rs>;
///Register `HCSPLT14` writer
pub type W = crate::W<HCSPLT14rs>;
///Field `PRTADDR` reader - PRTADDR
pub type PRTADDR_R = crate::FieldReader;
///Field `PRTADDR` writer - PRTADDR
pub type PRTADDR_W<'a, REG> = crate::FieldWriter<'a, REG, 7>;
///Field `HUBADDR` reader - HUBADDR
pub type HUBADDR_R = crate::FieldReader;
///Field `HUBADDR` writer - HUBADDR
pub type HUBADDR_W<'a, REG> = crate::FieldWriter<'a, REG, 7>;
///Field `XACTPOS` reader - XACTPOS
pub type XACTPOS_R = crate::FieldReader;
///Field `XACTPOS` writer - XACTPOS
pub type XACTPOS_W<'a, REG> = crate::FieldWriter<'a, REG, 2>;
///Field `COMPLSPLT` reader - COMPLSPLT
pub type COMPLSPLT_R = crate::BitReader;
///Field `COMPLSPLT` writer - COMPLSPLT
pub type COMPLSPLT_W<'a, REG> = crate::BitWriter<'a, REG>;
///Field `SPLITEN` reader - SPLITEN
pub type SPLITEN_R = crate::BitReader;
///Field `SPLITEN` writer - SPLITEN
pub type SPLITEN_W<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
    ///Bits 0:6 - PRTADDR
    #[inline(always)]
    pub fn prtaddr(&self) -> PRTADDR_R {
        PRTADDR_R::new((self.bits & 0x7f) as u8)
    }
    ///Bits 7:13 - HUBADDR
    #[inline(always)]
    pub fn hubaddr(&self) -> HUBADDR_R {
        HUBADDR_R::new(((self.bits >> 7) & 0x7f) as u8)
    }
    ///Bits 14:15 - XACTPOS
    #[inline(always)]
    pub fn xactpos(&self) -> XACTPOS_R {
        XACTPOS_R::new(((self.bits >> 14) & 3) as u8)
    }
    ///Bit 16 - COMPLSPLT
    #[inline(always)]
    pub fn complsplt(&self) -> COMPLSPLT_R {
        COMPLSPLT_R::new(((self.bits >> 16) & 1) != 0)
    }
    ///Bit 31 - SPLITEN
    #[inline(always)]
    pub fn spliten(&self) -> SPLITEN_R {
        SPLITEN_R::new(((self.bits >> 31) & 1) != 0)
    }
}
impl core::fmt::Debug for R {
    fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
        f.debug_struct("HCSPLT14")
            .field("prtaddr", &self.prtaddr())
            .field("hubaddr", &self.hubaddr())
            .field("xactpos", &self.xactpos())
            .field("complsplt", &self.complsplt())
            .field("spliten", &self.spliten())
            .finish()
    }
}
impl W {
    ///Bits 0:6 - PRTADDR
    #[inline(always)]
    pub fn prtaddr(&mut self) -> PRTADDR_W<HCSPLT14rs> {
        PRTADDR_W::new(self, 0)
    }
    ///Bits 7:13 - HUBADDR
    #[inline(always)]
    pub fn hubaddr(&mut self) -> HUBADDR_W<HCSPLT14rs> {
        HUBADDR_W::new(self, 7)
    }
    ///Bits 14:15 - XACTPOS
    #[inline(always)]
    pub fn xactpos(&mut self) -> XACTPOS_W<HCSPLT14rs> {
        XACTPOS_W::new(self, 14)
    }
    ///Bit 16 - COMPLSPLT
    #[inline(always)]
    pub fn complsplt(&mut self) -> COMPLSPLT_W<HCSPLT14rs> {
        COMPLSPLT_W::new(self, 16)
    }
    ///Bit 31 - SPLITEN
    #[inline(always)]
    pub fn spliten(&mut self) -> SPLITEN_W<HCSPLT14rs> {
        SPLITEN_W::new(self, 31)
    }
}
/**OTG host channel 14 split control register

You can [`read`](crate::Reg::read) this register and get [`hcsplt14::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`hcsplt14::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/STM32MP153.html#OTG:HCSPLT14)*/
pub struct HCSPLT14rs;
impl crate::RegisterSpec for HCSPLT14rs {
    type Ux = u32;
}
///`read()` method returns [`hcsplt14::R`](R) reader structure
impl crate::Readable for HCSPLT14rs {}
///`write(|w| ..)` method takes [`hcsplt14::W`](W) writer structure
impl crate::Writable for HCSPLT14rs {
    type Safety = crate::Unsafe;
}
///`reset()` method sets HCSPLT14 to value 0
impl crate::Resettable for HCSPLT14rs {}