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 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172
#[repr(C)]
#[derive(Debug)]
///Register block
pub struct RegisterBlock {
cr: CR,
sr: SR,
ris: RIS,
ier: IER,
mis: MIS,
icr: ICR,
escr: ESCR,
esur: ESUR,
cwstrt: CWSTRT,
cwsize: CWSIZE,
dr: DR,
}
impl RegisterBlock {
///0x00 - control register 1
#[inline(always)]
pub const fn cr(&self) -> &CR {
&self.cr
}
///0x04 - status register
#[inline(always)]
pub const fn sr(&self) -> &SR {
&self.sr
}
///0x08 - raw interrupt status register
#[inline(always)]
pub const fn ris(&self) -> &RIS {
&self.ris
}
///0x0c - interrupt enable register
#[inline(always)]
pub const fn ier(&self) -> &IER {
&self.ier
}
///0x10 - masked interrupt status register
#[inline(always)]
pub const fn mis(&self) -> &MIS {
&self.mis
}
///0x14 - interrupt clear register
#[inline(always)]
pub const fn icr(&self) -> &ICR {
&self.icr
}
///0x18 - embedded synchronization code register
#[inline(always)]
pub const fn escr(&self) -> &ESCR {
&self.escr
}
///0x1c - embedded synchronization unmask register
#[inline(always)]
pub const fn esur(&self) -> &ESUR {
&self.esur
}
///0x20 - crop window start
#[inline(always)]
pub const fn cwstrt(&self) -> &CWSTRT {
&self.cwstrt
}
///0x24 - crop window size
#[inline(always)]
pub const fn cwsize(&self) -> &CWSIZE {
&self.cwsize
}
///0x28 - data register
#[inline(always)]
pub const fn dr(&self) -> &DR {
&self.dr
}
}
/**CR (rw) register accessor: control register 1
You can [`read`](crate::generic::Reg::read) this register and get [`cr::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 [`cr::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@cr`]
module*/
pub type CR = crate::Reg<cr::CRrs>;
///control register 1
pub mod cr;
/**SR (r) register accessor: status register
You can [`read`](crate::generic::Reg::read) this register and get [`sr::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
For information about available fields see [`mod@sr`]
module*/
pub type SR = crate::Reg<sr::SRrs>;
///status register
pub mod sr;
/**RIS (r) register accessor: raw interrupt status register
You can [`read`](crate::generic::Reg::read) this register and get [`ris::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
For information about available fields see [`mod@ris`]
module*/
pub type RIS = crate::Reg<ris::RISrs>;
///raw interrupt status register
pub mod ris;
/**IER (rw) register accessor: interrupt enable register
You can [`read`](crate::generic::Reg::read) this register and get [`ier::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 [`ier::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@ier`]
module*/
pub type IER = crate::Reg<ier::IERrs>;
///interrupt enable register
pub mod ier;
/**MIS (r) register accessor: masked interrupt status register
You can [`read`](crate::generic::Reg::read) this register and get [`mis::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
For information about available fields see [`mod@mis`]
module*/
pub type MIS = crate::Reg<mis::MISrs>;
///masked interrupt status register
pub mod mis;
/**ICR (w) register accessor: interrupt clear register
You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`icr::W`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
For information about available fields see [`mod@icr`]
module*/
pub type ICR = crate::Reg<icr::ICRrs>;
///interrupt clear register
pub mod icr;
/**ESCR (rw) register accessor: embedded synchronization code register
You can [`read`](crate::generic::Reg::read) this register and get [`escr::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 [`escr::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@escr`]
module*/
pub type ESCR = crate::Reg<escr::ESCRrs>;
///embedded synchronization code register
pub mod escr;
/**ESUR (rw) register accessor: embedded synchronization unmask register
You can [`read`](crate::generic::Reg::read) this register and get [`esur::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 [`esur::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@esur`]
module*/
pub type ESUR = crate::Reg<esur::ESURrs>;
///embedded synchronization unmask register
pub mod esur;
/**CWSTRT (rw) register accessor: crop window start
You can [`read`](crate::generic::Reg::read) this register and get [`cwstrt::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 [`cwstrt::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@cwstrt`]
module*/
pub type CWSTRT = crate::Reg<cwstrt::CWSTRTrs>;
///crop window start
pub mod cwstrt;
/**CWSIZE (rw) register accessor: crop window size
You can [`read`](crate::generic::Reg::read) this register and get [`cwsize::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 [`cwsize::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@cwsize`]
module*/
pub type CWSIZE = crate::Reg<cwsize::CWSIZErs>;
///crop window size
pub mod cwsize;
/**DR (r) register accessor: data register
You can [`read`](crate::generic::Reg::read) this register and get [`dr::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
For information about available fields see [`mod@dr`]
module*/
pub type DR = crate::Reg<dr::DRrs>;
///data register
pub mod dr;