rp2040_pac/
busctrl.rs

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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
#[doc = r"Register block"]
#[repr(C)]
pub struct RegisterBlock {
    bus_priority: BUS_PRIORITY,
    bus_priority_ack: BUS_PRIORITY_ACK,
    perfctr0: PERFCTR0,
    perfsel0: PERFSEL0,
    perfctr1: PERFCTR1,
    perfsel1: PERFSEL1,
    perfctr2: PERFCTR2,
    perfsel2: PERFSEL2,
    perfctr3: PERFCTR3,
    perfsel3: PERFSEL3,
}
impl RegisterBlock {
    #[doc = "0x00 - Set the priority of each master for bus arbitration."]
    #[inline(always)]
    pub const fn bus_priority(&self) -> &BUS_PRIORITY {
        &self.bus_priority
    }
    #[doc = "0x04 - Bus priority acknowledge"]
    #[inline(always)]
    pub const fn bus_priority_ack(&self) -> &BUS_PRIORITY_ACK {
        &self.bus_priority_ack
    }
    #[doc = "0x08 - Bus fabric performance counter 0"]
    #[inline(always)]
    pub const fn perfctr0(&self) -> &PERFCTR0 {
        &self.perfctr0
    }
    #[doc = "0x0c - Bus fabric performance event select for PERFCTR0"]
    #[inline(always)]
    pub const fn perfsel0(&self) -> &PERFSEL0 {
        &self.perfsel0
    }
    #[doc = "0x10 - Bus fabric performance counter 1"]
    #[inline(always)]
    pub const fn perfctr1(&self) -> &PERFCTR1 {
        &self.perfctr1
    }
    #[doc = "0x14 - Bus fabric performance event select for PERFCTR1"]
    #[inline(always)]
    pub const fn perfsel1(&self) -> &PERFSEL1 {
        &self.perfsel1
    }
    #[doc = "0x18 - Bus fabric performance counter 2"]
    #[inline(always)]
    pub const fn perfctr2(&self) -> &PERFCTR2 {
        &self.perfctr2
    }
    #[doc = "0x1c - Bus fabric performance event select for PERFCTR2"]
    #[inline(always)]
    pub const fn perfsel2(&self) -> &PERFSEL2 {
        &self.perfsel2
    }
    #[doc = "0x20 - Bus fabric performance counter 3"]
    #[inline(always)]
    pub const fn perfctr3(&self) -> &PERFCTR3 {
        &self.perfctr3
    }
    #[doc = "0x24 - Bus fabric performance event select for PERFCTR3"]
    #[inline(always)]
    pub const fn perfsel3(&self) -> &PERFSEL3 {
        &self.perfsel3
    }
}
#[doc = "BUS_PRIORITY (rw) register accessor: Set the priority of each master for bus arbitration.  

You can [`read`](crate::generic::Reg::read) this register and get [`bus_priority::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 [`bus_priority::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).  

For information about available fields see [`mod@bus_priority`]
module"]
pub type BUS_PRIORITY = crate::Reg<bus_priority::BUS_PRIORITY_SPEC>;
#[doc = "Set the priority of each master for bus arbitration."]
pub mod bus_priority;
#[doc = "BUS_PRIORITY_ACK (r) register accessor: Bus priority acknowledge  

You can [`read`](crate::generic::Reg::read) this register and get [`bus_priority_ack::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).  

For information about available fields see [`mod@bus_priority_ack`]
module"]
pub type BUS_PRIORITY_ACK = crate::Reg<bus_priority_ack::BUS_PRIORITY_ACK_SPEC>;
#[doc = "Bus priority acknowledge"]
pub mod bus_priority_ack;
#[doc = "PERFCTR0 (rw) register accessor: Bus fabric performance counter 0  

You can [`read`](crate::generic::Reg::read) this register and get [`perfctr0::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 [`perfctr0::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).  

For information about available fields see [`mod@perfctr0`]
module"]
pub type PERFCTR0 = crate::Reg<perfctr0::PERFCTR0_SPEC>;
#[doc = "Bus fabric performance counter 0"]
pub mod perfctr0;
#[doc = "PERFSEL0 (rw) register accessor: Bus fabric performance event select for PERFCTR0  

You can [`read`](crate::generic::Reg::read) this register and get [`perfsel0::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 [`perfsel0::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).  

For information about available fields see [`mod@perfsel0`]
module"]
pub type PERFSEL0 = crate::Reg<perfsel0::PERFSEL0_SPEC>;
#[doc = "Bus fabric performance event select for PERFCTR0"]
pub mod perfsel0;
#[doc = "PERFCTR1 (rw) register accessor: Bus fabric performance counter 1  

You can [`read`](crate::generic::Reg::read) this register and get [`perfctr1::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 [`perfctr1::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).  

For information about available fields see [`mod@perfctr1`]
module"]
pub type PERFCTR1 = crate::Reg<perfctr1::PERFCTR1_SPEC>;
#[doc = "Bus fabric performance counter 1"]
pub mod perfctr1;
#[doc = "PERFSEL1 (rw) register accessor: Bus fabric performance event select for PERFCTR1  

You can [`read`](crate::generic::Reg::read) this register and get [`perfsel1::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 [`perfsel1::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).  

For information about available fields see [`mod@perfsel1`]
module"]
pub type PERFSEL1 = crate::Reg<perfsel1::PERFSEL1_SPEC>;
#[doc = "Bus fabric performance event select for PERFCTR1"]
pub mod perfsel1;
#[doc = "PERFCTR2 (rw) register accessor: Bus fabric performance counter 2  

You can [`read`](crate::generic::Reg::read) this register and get [`perfctr2::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 [`perfctr2::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).  

For information about available fields see [`mod@perfctr2`]
module"]
pub type PERFCTR2 = crate::Reg<perfctr2::PERFCTR2_SPEC>;
#[doc = "Bus fabric performance counter 2"]
pub mod perfctr2;
#[doc = "PERFSEL2 (rw) register accessor: Bus fabric performance event select for PERFCTR2  

You can [`read`](crate::generic::Reg::read) this register and get [`perfsel2::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 [`perfsel2::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).  

For information about available fields see [`mod@perfsel2`]
module"]
pub type PERFSEL2 = crate::Reg<perfsel2::PERFSEL2_SPEC>;
#[doc = "Bus fabric performance event select for PERFCTR2"]
pub mod perfsel2;
#[doc = "PERFCTR3 (rw) register accessor: Bus fabric performance counter 3  

You can [`read`](crate::generic::Reg::read) this register and get [`perfctr3::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 [`perfctr3::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).  

For information about available fields see [`mod@perfctr3`]
module"]
pub type PERFCTR3 = crate::Reg<perfctr3::PERFCTR3_SPEC>;
#[doc = "Bus fabric performance counter 3"]
pub mod perfctr3;
#[doc = "PERFSEL3 (rw) register accessor: Bus fabric performance event select for PERFCTR3  

You can [`read`](crate::generic::Reg::read) this register and get [`perfsel3::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 [`perfsel3::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).  

For information about available fields see [`mod@perfsel3`]
module"]
pub type PERFSEL3 = crate::Reg<perfsel3::PERFSEL3_SPEC>;
#[doc = "Bus fabric performance event select for PERFCTR3"]
pub mod perfsel3;