1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
///Register `INI2_WRITE_QOS` reader
pub type R = crate::R<INI2_WRITE_QOSrs>;
///Register `INI2_WRITE_QOS` writer
pub type W = crate::W<INI2_WRITE_QOSrs>;
///Field `AW_QOS` reader - Write channel QoS setting
pub type AW_QOS_R = crate::FieldReader;
///Field `AW_QOS` writer - Write channel QoS setting
pub type AW_QOS_W<'a, REG> = crate::FieldWriter<'a, REG, 4, u8, crate::Safe>;
impl R {
///Bits 0:3 - Write channel QoS setting
#[inline(always)]
pub fn aw_qos(&self) -> AW_QOS_R {
AW_QOS_R::new((self.bits & 0x0f) as u8)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("INI2_WRITE_QOS").field("aw_qos", &self.aw_qos()).finish()
}
}
impl W {
///Bits 0:3 - Write channel QoS setting
#[inline(always)]
pub fn aw_qos(&mut self) -> AW_QOS_W<INI2_WRITE_QOSrs> {
AW_QOS_W::new(self, 0)
}
}
/**AXI interconnect - INI x write QoS register
You can [`read`](crate::Reg::read) this register and get [`ini2_write_qos::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`ini2_write_qos::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).*/
pub struct INI2_WRITE_QOSrs;
impl crate::RegisterSpec for INI2_WRITE_QOSrs {
type Ux = u32;
}
///`read()` method returns [`ini2_write_qos::R`](R) reader structure
impl crate::Readable for INI2_WRITE_QOSrs {}
///`write(|w| ..)` method takes [`ini2_write_qos::W`](W) writer structure
impl crate::Writable for INI2_WRITE_QOSrs {
type Safety = crate::Unsafe;
}
///`reset()` method sets INI2_WRITE_QOS to value 0x04
impl crate::Resettable for INI2_WRITE_QOSrs {
const RESET_VALUE: u32 = 0x04;
}