rv32m1_ri5cy_pac/xrdc/
derr_w3_18.rs

1#[doc = "Reader of register DERR_W3_18"]
2pub type R = crate::R<u32, super::DERR_W3_18>;
3#[doc = "Writer for register DERR_W3_18"]
4pub type W = crate::W<u32, super::DERR_W3_18>;
5#[doc = "Register DERR_W3_18 `reset()`'s with value 0"]
6impl crate::ResetValue for super::DERR_W3_18 {
7  type Type = u32;
8  #[inline(always)]
9  fn reset_value() -> Self::Type {
10    0
11  }
12}
13#[doc = "Write proxy for field `RECR`"]
14pub struct RECR_W<'a> {
15  w: &'a mut W,
16}
17impl<'a> RECR_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 & !(0x03 << 30)) | (((value as u32) & 0x03) << 30);
22    self.w
23  }
24}
25impl R {}
26impl W {
27  #[doc = "Bits 30:31 - Rearm Error Capture Registers"]
28  #[inline(always)]
29  pub fn recr(&mut self) -> RECR_W {
30    RECR_W { w: self }
31  }
32}