rsl10_pac/crc/
crc_add_8.rs1#[doc = "Reader of register CRC_ADD_8"]
2pub type R = crate::R<u32, super::CRC_ADD_8>;
3#[doc = "Writer for register CRC_ADD_8"]
4pub type W = crate::W<u32, super::CRC_ADD_8>;
5#[doc = "Register CRC_ADD_8 `reset()`'s with value 0"]
6impl crate::ResetValue for super::CRC_ADD_8 {
7 type Type = u32;
8 #[inline(always)]
9 fn reset_value() -> Self::Type {
10 0
11 }
12}
13#[doc = "Write proxy for field `CRC_ADD_8`"]
14pub struct CRC_ADD_8_W<'a> {
15 w: &'a mut W,
16}
17impl<'a> CRC_ADD_8_W<'a> {
18 #[doc = r"Writes raw bits to the field"]
19 #[inline(always)]
20 pub unsafe fn bits(self, value: u8) -> &'a mut W {
21 self.w.bits = (self.w.bits & !0xff) | ((value as u32) & 0xff);
22 self.w
23 }
24}
25impl R {}
26impl W {
27 #[doc = "Bits 0:7 - Add 1 byte (8 bits) to the CRC calculation"]
28 #[inline(always)]
29 pub fn crc_add_8(&mut self) -> CRC_ADD_8_W {
30 CRC_ADD_8_W { w: self }
31 }
32}