efm32pg12_pac/ldma/
swreq.rs

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