corstone300_pac/gpio0/
dataout.rs

1// Copyright 2022 Arm Limited and/or its affiliates <open-source-office@arm.com>
2//
3// SPDX-License-Identifier: MIT
4
5#[doc = "Register `DATAOUT` reader"]
6pub struct R(crate::R<DATAOUT_SPEC>);
7impl core::ops::Deref for R {
8    type Target = crate::R<DATAOUT_SPEC>;
9    #[inline(always)]
10    fn deref(&self) -> &Self::Target {
11        &self.0
12    }
13}
14impl From<crate::R<DATAOUT_SPEC>> for R {
15    #[inline(always)]
16    fn from(reader: crate::R<DATAOUT_SPEC>) -> Self {
17        R(reader)
18    }
19}
20#[doc = "Register `DATAOUT` writer"]
21pub struct W(crate::W<DATAOUT_SPEC>);
22impl core::ops::Deref for W {
23    type Target = crate::W<DATAOUT_SPEC>;
24    #[inline(always)]
25    fn deref(&self) -> &Self::Target {
26        &self.0
27    }
28}
29impl core::ops::DerefMut for W {
30    #[inline(always)]
31    fn deref_mut(&mut self) -> &mut Self::Target {
32        &mut self.0
33    }
34}
35impl From<crate::W<DATAOUT_SPEC>> for W {
36    #[inline(always)]
37    fn from(writer: crate::W<DATAOUT_SPEC>) -> Self {
38        W(writer)
39    }
40}
41impl W {
42    #[doc = "Writes raw bits to the register."]
43    #[inline(always)]
44    pub unsafe fn bits(&mut self, bits: u32) -> &mut Self {
45        self.0.bits(bits);
46        self
47    }
48}
49#[doc = "Data Output Register\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 [dataout](index.html) module"]
50pub struct DATAOUT_SPEC;
51impl crate::RegisterSpec for DATAOUT_SPEC {
52    type Ux = u32;
53}
54#[doc = "`read()` method returns [dataout::R](R) reader structure"]
55impl crate::Readable for DATAOUT_SPEC {
56    type Reader = R;
57}
58#[doc = "`write(|w| ..)` method takes [dataout::W](W) writer structure"]
59impl crate::Writable for DATAOUT_SPEC {
60    type Writer = W;
61}
62#[doc = "`reset()` method sets DATAOUT to value 0"]
63impl crate::Resettable for DATAOUT_SPEC {
64    #[inline(always)]
65    fn reset_value() -> Self::Ux {
66        0
67    }
68}