rk3399_pac/cci500/
interface_monitor_ctrl.rs1#[doc = "Register `INTERFACE_MONITOR_CTRL` reader"]
2pub type R = crate::R<InterfaceMonitorCtrlSpec>;
3#[doc = "Register `INTERFACE_MONITOR_CTRL` writer"]
4pub type W = crate::W<InterfaceMonitorCtrlSpec>;
5#[doc = "Field `ENABLE_INTERFACE_MONITORS` reader - 0b0 Interface Monitor counters and flags are\n\nset to 0.\n\n0b1 Enable all Interface Monitors."]
6pub type EnableInterfaceMonitorsR = crate::BitReader;
7#[doc = "Field `ENABLE_INTERFACE_MONITORS` writer - 0b0 Interface Monitor counters and flags are\n\nset to 0.\n\n0b1 Enable all Interface Monitors."]
8pub type EnableInterfaceMonitorsW<'a, REG> = crate::BitWriter<'a, REG>;
9impl R {
10 #[doc = "Bit 0 - 0b0 Interface Monitor counters and flags are\n\nset to 0.\n\n0b1 Enable all Interface Monitors."]
11 #[inline(always)]
12 pub fn enable_interface_monitors(&self) -> EnableInterfaceMonitorsR {
13 EnableInterfaceMonitorsR::new((self.bits & 1) != 0)
14 }
15}
16impl W {
17 #[doc = "Bit 0 - 0b0 Interface Monitor counters and flags are\n\nset to 0.\n\n0b1 Enable all Interface Monitors."]
18 #[inline(always)]
19 #[must_use]
20 pub fn enable_interface_monitors(
21 &mut self,
22 ) -> EnableInterfaceMonitorsW<InterfaceMonitorCtrlSpec> {
23 EnableInterfaceMonitorsW::new(self, 0)
24 }
25}
26#[doc = "Snoop Control Register for slave interface x\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`interface_monitor_ctrl::R`](R). You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`interface_monitor_ctrl::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
27pub struct InterfaceMonitorCtrlSpec;
28impl crate::RegisterSpec for InterfaceMonitorCtrlSpec {
29 type Ux = u32;
30}
31#[doc = "`read()` method returns [`interface_monitor_ctrl::R`](R) reader structure"]
32impl crate::Readable for InterfaceMonitorCtrlSpec {}
33#[doc = "`write(|w| ..)` method takes [`interface_monitor_ctrl::W`](W) writer structure"]
34impl crate::Writable for InterfaceMonitorCtrlSpec {
35 type Safety = crate::Unsafe;
36 const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
37 const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
38}
39#[doc = "`reset()` method sets INTERFACE_MONITOR_CTRL to value 0"]
40impl crate::Resettable for InterfaceMonitorCtrlSpec {
41 const RESET_VALUE: u32 = 0;
42}