efm32gg11b/adc0/
scanfifoclear.rs1#[doc = "Writer for register SCANFIFOCLEAR"]
2pub type W = crate::W<u32, super::SCANFIFOCLEAR>;
3#[doc = "Register SCANFIFOCLEAR `reset()`'s with value 0"]
4impl crate::ResetValue for super::SCANFIFOCLEAR {
5 type Type = u32;
6 #[inline(always)]
7 fn reset_value() -> Self::Type { 0 }
8}
9#[doc = "Write proxy for field `SCANFIFOCLEAR`"]
10pub struct SCANFIFOCLEAR_W<'a> {
11 w: &'a mut W,
12}
13impl<'a> SCANFIFOCLEAR_W<'a> {
14 #[doc = r"Sets the field bit"]
15 #[inline(always)]
16 pub fn set_bit(self) -> &'a mut W { self.bit(true) }
17 #[doc = r"Clears the field bit"]
18 #[inline(always)]
19 pub fn clear_bit(self) -> &'a mut W { self.bit(false) }
20 #[doc = r"Writes raw bits to the field"]
21 #[inline(always)]
22 pub fn bit(self, value: bool) -> &'a mut W {
23 self.w.bits = (self.w.bits & !0x01) | ((value as u32) & 0x01);
24 self.w
25 }
26}
27impl W {
28 #[doc = "Bit 0 - Clear Scan FIFO Content"]
29 #[inline(always)]
30 pub fn scanfifoclear(&mut self) -> SCANFIFOCLEAR_W { SCANFIFOCLEAR_W { w: self } }
31}