bl616_pac/audac/
zero_signal.rs

1#[doc = "Register `zero_signal` reader"]
2pub struct R(crate::R<ZERO_SIGNAL_SPEC>);
3impl core::ops::Deref for R {
4    type Target = crate::R<ZERO_SIGNAL_SPEC>;
5    #[inline(always)]
6    fn deref(&self) -> &Self::Target {
7        &self.0
8    }
9}
10impl From<crate::R<ZERO_SIGNAL_SPEC>> for R {
11    #[inline(always)]
12    fn from(reader: crate::R<ZERO_SIGNAL_SPEC>) -> Self {
13        R(reader)
14    }
15}
16#[doc = "Register `zero_signal` writer"]
17pub struct W(crate::W<ZERO_SIGNAL_SPEC>);
18impl core::ops::Deref for W {
19    type Target = crate::W<ZERO_SIGNAL_SPEC>;
20    #[inline(always)]
21    fn deref(&self) -> &Self::Target {
22        &self.0
23    }
24}
25impl core::ops::DerefMut for W {
26    #[inline(always)]
27    fn deref_mut(&mut self) -> &mut Self::Target {
28        &mut self.0
29    }
30}
31impl From<crate::W<ZERO_SIGNAL_SPEC>> for W {
32    #[inline(always)]
33    fn from(writer: crate::W<ZERO_SIGNAL_SPEC>) -> Self {
34        W(writer)
35    }
36}
37impl W {
38    #[doc = "Writes raw bits to the register."]
39    #[inline(always)]
40    pub unsafe fn bits(&mut self, bits: u32) -> &mut Self {
41        self.0.bits(bits);
42        self
43    }
44}
45#[doc = "Zero signal detection\n\nThis register you can [`read`](crate::generic::Reg::read), [`write_with_zero`](crate::generic::Reg::write_with_zero), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`modify`](crate::generic::Reg::modify). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [zero_signal](index.html) module"]
46pub struct ZERO_SIGNAL_SPEC;
47impl crate::RegisterSpec for ZERO_SIGNAL_SPEC {
48    type Ux = u32;
49}
50#[doc = "`read()` method returns [zero_signal::R](R) reader structure"]
51impl crate::Readable for ZERO_SIGNAL_SPEC {
52    type Reader = R;
53}
54#[doc = "`write(|w| ..)` method takes [zero_signal::W](W) writer structure"]
55impl crate::Writable for ZERO_SIGNAL_SPEC {
56    type Writer = W;
57    const ZERO_TO_MODIFY_FIELDS_BITMAP: Self::Ux = 0;
58    const ONE_TO_MODIFY_FIELDS_BITMAP: Self::Ux = 0;
59}
60#[doc = "`reset()` method sets zero_signal to value 0"]
61impl crate::Resettable for ZERO_SIGNAL_SPEC {
62    const RESET_VALUE: Self::Ux = 0;
63}