1#[doc = "Reader of register DATA"]
2pub type R = crate::R<u32, super::DATA>;
3#[doc = "Writer for register DATA"]
4pub type W = crate::W<u32, super::DATA>;
5#[doc = "Register DATA `reset()`'s with value 0xffff_ffff"]
6impl crate::ResetValue for super::DATA {
7 type Type = u32;
8 #[inline(always)]
9 fn reset_value() -> Self::Type {
10 0xffff_ffff
11 }
12}
13#[doc = "Reader of field `LL`"]
14pub type LL_R = crate::R<u8, u8>;
15#[doc = "Write proxy for field `LL`"]
16pub struct LL_W<'a> {
17 w: &'a mut W,
18}
19impl<'a> LL_W<'a> {
20 #[doc = r"Writes raw bits to the field"]
21 #[inline(always)]
22 pub unsafe fn bits(self, value: u8) -> &'a mut W {
23 self.w.bits = (self.w.bits & !0xff) | ((value as u32) & 0xff);
24 self.w
25 }
26}
27#[doc = "Reader of field `LU`"]
28pub type LU_R = crate::R<u8, u8>;
29#[doc = "Write proxy for field `LU`"]
30pub struct LU_W<'a> {
31 w: &'a mut W,
32}
33impl<'a> LU_W<'a> {
34 #[doc = r"Writes raw bits to the field"]
35 #[inline(always)]
36 pub unsafe fn bits(self, value: u8) -> &'a mut W {
37 self.w.bits = (self.w.bits & !(0xff << 8)) | (((value as u32) & 0xff) << 8);
38 self.w
39 }
40}
41#[doc = "Reader of field `HL`"]
42pub type HL_R = crate::R<u8, u8>;
43#[doc = "Write proxy for field `HL`"]
44pub struct HL_W<'a> {
45 w: &'a mut W,
46}
47impl<'a> HL_W<'a> {
48 #[doc = r"Writes raw bits to the field"]
49 #[inline(always)]
50 pub unsafe fn bits(self, value: u8) -> &'a mut W {
51 self.w.bits = (self.w.bits & !(0xff << 16)) | (((value as u32) & 0xff) << 16);
52 self.w
53 }
54}
55#[doc = "Reader of field `HU`"]
56pub type HU_R = crate::R<u8, u8>;
57#[doc = "Write proxy for field `HU`"]
58pub struct HU_W<'a> {
59 w: &'a mut W,
60}
61impl<'a> HU_W<'a> {
62 #[doc = r"Writes raw bits to the field"]
63 #[inline(always)]
64 pub unsafe fn bits(self, value: u8) -> &'a mut W {
65 self.w.bits = (self.w.bits & !(0xff << 24)) | (((value as u32) & 0xff) << 24);
66 self.w
67 }
68}
69impl R {
70 #[doc = "Bits 0:7 - CRC Low Lower Byte"]
71 #[inline(always)]
72 pub fn ll(&self) -> LL_R {
73 LL_R::new((self.bits & 0xff) as u8)
74 }
75 #[doc = "Bits 8:15 - CRC Low Upper Byte"]
76 #[inline(always)]
77 pub fn lu(&self) -> LU_R {
78 LU_R::new(((self.bits >> 8) & 0xff) as u8)
79 }
80 #[doc = "Bits 16:23 - CRC High Lower Byte"]
81 #[inline(always)]
82 pub fn hl(&self) -> HL_R {
83 HL_R::new(((self.bits >> 16) & 0xff) as u8)
84 }
85 #[doc = "Bits 24:31 - CRC High Upper Byte"]
86 #[inline(always)]
87 pub fn hu(&self) -> HU_R {
88 HU_R::new(((self.bits >> 24) & 0xff) as u8)
89 }
90}
91impl W {
92 #[doc = "Bits 0:7 - CRC Low Lower Byte"]
93 #[inline(always)]
94 pub fn ll(&mut self) -> LL_W {
95 LL_W { w: self }
96 }
97 #[doc = "Bits 8:15 - CRC Low Upper Byte"]
98 #[inline(always)]
99 pub fn lu(&mut self) -> LU_W {
100 LU_W { w: self }
101 }
102 #[doc = "Bits 16:23 - CRC High Lower Byte"]
103 #[inline(always)]
104 pub fn hl(&mut self) -> HL_W {
105 HL_W { w: self }
106 }
107 #[doc = "Bits 24:31 - CRC High Upper Byte"]
108 #[inline(always)]
109 pub fn hu(&mut self) -> HU_W {
110 HU_W { w: self }
111 }
112}