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
///Register `SCANDATAXP` reader
pub type R = crate::R<SCANDATAXPrs>;
///Field `DATAP` reader - Scan Conversion Result Data Peek
pub type DatapR = crate::FieldReader<u16>;
///Field `SCANINPUTIDPEEK` reader - Scan Conversion Data Source Peek
pub type ScaninputidpeekR = crate::FieldReader;
impl R {
///Bits 0:15 - Scan Conversion Result Data Peek
#[inline(always)]
pub fn datap(&self) -> DatapR {
DatapR::new((self.bits & 0xffff) as u16)
}
///Bits 16:20 - Scan Conversion Data Source Peek
#[inline(always)]
pub fn scaninputidpeek(&self) -> ScaninputidpeekR {
ScaninputidpeekR::new(((self.bits >> 16) & 0x1f) as u8)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("SCANDATAXP")
.field("datap", &self.datap())
.field("scaninputidpeek", &self.scaninputidpeek())
.finish()
}
}
///Scan Sequence Result Data + Data Source Peek Register
///
///You can [`read`](crate::Reg::read) this register and get [`scandataxp::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api).
pub struct SCANDATAXPrs;
impl crate::RegisterSpec for SCANDATAXPrs {
type Ux = u32;
}
///`read()` method returns [`scandataxp::R`](R) reader structure
impl crate::Readable for SCANDATAXPrs {}
///`reset()` method sets SCANDATAXP to value 0
impl crate::Resettable for SCANDATAXPrs {}