da14682_pac/
chip_version.rs

1/*
2DISCLAIMER
3This software is supplied by Renesas Electronics Corporation and is only intended for use with Renesas products.
4No other uses are authorized. This software is owned by Renesas Electronics Corporation and is protected under all
5applicable laws, including copyright laws.
6THIS SOFTWARE IS PROVIDED "AS IS" AND RENESAS MAKES NO WARRANTIES REGARDING THIS SOFTWARE, WHETHER EXPRESS, IMPLIED
7OR STATUTORY, INCLUDING BUT NOT LIMITED TO WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
8NON-INFRINGEMENT.  ALL SUCH WARRANTIES ARE EXPRESSLY DISCLAIMED.TO THE MAXIMUM EXTENT PERMITTED NOT PROHIBITED BY
9LAW, NEITHER RENESAS ELECTRONICS CORPORATION NOR ANY OF ITS AFFILIATED COMPANIES SHALL BE LIABLE FOR ANY DIRECT,
10INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES FOR ANY REASON RELATED TO THIS SOFTWARE, EVEN IF RENESAS OR
11ITS AFFILIATES HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
12Renesas reserves the right, without notice, to make changes to this software and to discontinue the availability
13of this software. By using this software, you agree to the additional terms and conditions found by accessing the
14following link:
15http://www.renesas.com/disclaimer
16
17*/
18// Generated from SVD 1.2, with svd2pac 0.6.0 on Thu, 24 Jul 2025 04:45:10 +0000
19
20#![allow(clippy::identity_op)]
21#![allow(clippy::module_inception)]
22#![allow(clippy::derivable_impls)]
23#[allow(unused_imports)]
24use crate::common::sealed;
25#[allow(unused_imports)]
26use crate::common::*;
27#[doc = r"CHIP_VERSION registers"]
28unsafe impl ::core::marker::Send for super::ChipVersion {}
29unsafe impl ::core::marker::Sync for super::ChipVersion {}
30impl super::ChipVersion {
31    #[allow(unused)]
32    #[inline(always)]
33    pub(crate) const fn _svd2pac_as_ptr(&self) -> *mut u8 {
34        self.ptr
35    }
36
37    #[doc = "Chip identification register 1."]
38    #[inline(always)]
39    pub const fn chip_id1_reg(
40        &self,
41    ) -> &'static crate::common::Reg<self::ChipId1Reg_SPEC, crate::common::RW> {
42        unsafe {
43            crate::common::Reg::<self::ChipId1Reg_SPEC, crate::common::RW>::from_ptr(
44                self._svd2pac_as_ptr().add(0usize),
45            )
46        }
47    }
48
49    #[doc = "Chip identification register 2."]
50    #[inline(always)]
51    pub const fn chip_id2_reg(
52        &self,
53    ) -> &'static crate::common::Reg<self::ChipId2Reg_SPEC, crate::common::RW> {
54        unsafe {
55            crate::common::Reg::<self::ChipId2Reg_SPEC, crate::common::RW>::from_ptr(
56                self._svd2pac_as_ptr().add(1usize),
57            )
58        }
59    }
60
61    #[doc = "Chip identification register 3."]
62    #[inline(always)]
63    pub const fn chip_id3_reg(
64        &self,
65    ) -> &'static crate::common::Reg<self::ChipId3Reg_SPEC, crate::common::RW> {
66        unsafe {
67            crate::common::Reg::<self::ChipId3Reg_SPEC, crate::common::RW>::from_ptr(
68                self._svd2pac_as_ptr().add(2usize),
69            )
70        }
71    }
72
73    #[doc = "Chip revision register."]
74    #[inline(always)]
75    pub const fn chip_revision_reg(
76        &self,
77    ) -> &'static crate::common::Reg<self::ChipRevisionReg_SPEC, crate::common::RW> {
78        unsafe {
79            crate::common::Reg::<self::ChipRevisionReg_SPEC, crate::common::RW>::from_ptr(
80                self._svd2pac_as_ptr().add(4usize),
81            )
82        }
83    }
84
85    #[doc = "Software compatibility register."]
86    #[inline(always)]
87    pub const fn chip_swc_reg(
88        &self,
89    ) -> &'static crate::common::Reg<self::ChipSwcReg_SPEC, crate::common::RW> {
90        unsafe {
91            crate::common::Reg::<self::ChipSwcReg_SPEC, crate::common::RW>::from_ptr(
92                self._svd2pac_as_ptr().add(3usize),
93            )
94        }
95    }
96}
97#[doc(hidden)]
98#[derive(Copy, Clone, Eq, PartialEq)]
99pub struct ChipId1Reg_SPEC;
100impl crate::sealed::RegSpec for ChipId1Reg_SPEC {
101    type DataType = u8;
102}
103
104#[doc = "Chip identification register 1."]
105pub type ChipId1Reg = crate::RegValueT<ChipId1Reg_SPEC>;
106
107impl ChipId1Reg {
108    #[doc = "First character of device type \"680\" in ASCII."]
109    #[inline(always)]
110    pub fn chip_id1(
111        self,
112    ) -> crate::common::RegisterField<0, 0xff, 1, 0, u8, u8, ChipId1Reg_SPEC, crate::common::R>
113    {
114        crate::common::RegisterField::<0,0xff,1,0,u8,u8,ChipId1Reg_SPEC,crate::common::R>::from_register(self,0)
115    }
116}
117impl ::core::default::Default for ChipId1Reg {
118    #[inline(always)]
119    fn default() -> ChipId1Reg {
120        <crate::RegValueT<ChipId1Reg_SPEC> as RegisterValue<_>>::new(54)
121    }
122}
123
124#[doc(hidden)]
125#[derive(Copy, Clone, Eq, PartialEq)]
126pub struct ChipId2Reg_SPEC;
127impl crate::sealed::RegSpec for ChipId2Reg_SPEC {
128    type DataType = u8;
129}
130
131#[doc = "Chip identification register 2."]
132pub type ChipId2Reg = crate::RegValueT<ChipId2Reg_SPEC>;
133
134impl ChipId2Reg {
135    #[doc = "Second character of device type \"680\" in ASCII."]
136    #[inline(always)]
137    pub fn chip_id2(
138        self,
139    ) -> crate::common::RegisterField<0, 0xff, 1, 0, u8, u8, ChipId2Reg_SPEC, crate::common::R>
140    {
141        crate::common::RegisterField::<0,0xff,1,0,u8,u8,ChipId2Reg_SPEC,crate::common::R>::from_register(self,0)
142    }
143}
144impl ::core::default::Default for ChipId2Reg {
145    #[inline(always)]
146    fn default() -> ChipId2Reg {
147        <crate::RegValueT<ChipId2Reg_SPEC> as RegisterValue<_>>::new(56)
148    }
149}
150
151#[doc(hidden)]
152#[derive(Copy, Clone, Eq, PartialEq)]
153pub struct ChipId3Reg_SPEC;
154impl crate::sealed::RegSpec for ChipId3Reg_SPEC {
155    type DataType = u8;
156}
157
158#[doc = "Chip identification register 3."]
159pub type ChipId3Reg = crate::RegValueT<ChipId3Reg_SPEC>;
160
161impl ChipId3Reg {
162    #[doc = "Third character of device type \"680\" in ASCII."]
163    #[inline(always)]
164    pub fn chip_id3(
165        self,
166    ) -> crate::common::RegisterField<0, 0xff, 1, 0, u8, u8, ChipId3Reg_SPEC, crate::common::R>
167    {
168        crate::common::RegisterField::<0,0xff,1,0,u8,u8,ChipId3Reg_SPEC,crate::common::R>::from_register(self,0)
169    }
170}
171impl ::core::default::Default for ChipId3Reg {
172    #[inline(always)]
173    fn default() -> ChipId3Reg {
174        <crate::RegValueT<ChipId3Reg_SPEC> as RegisterValue<_>>::new(48)
175    }
176}
177
178#[doc(hidden)]
179#[derive(Copy, Clone, Eq, PartialEq)]
180pub struct ChipRevisionReg_SPEC;
181impl crate::sealed::RegSpec for ChipRevisionReg_SPEC {
182    type DataType = u8;
183}
184
185#[doc = "Chip revision register."]
186pub type ChipRevisionReg = crate::RegValueT<ChipRevisionReg_SPEC>;
187
188impl ChipRevisionReg {
189    #[doc = "Chip version, corresponds with type number in ASCII.\n0x41 = \'A\', 0x42 = \'B\'"]
190    #[inline(always)]
191    pub fn revision_id(
192        self,
193    ) -> crate::common::RegisterField<0, 0xff, 1, 0, u8, u8, ChipRevisionReg_SPEC, crate::common::R>
194    {
195        crate::common::RegisterField::<0,0xff,1,0,u8,u8,ChipRevisionReg_SPEC,crate::common::R>::from_register(self,0)
196    }
197}
198impl ::core::default::Default for ChipRevisionReg {
199    #[inline(always)]
200    fn default() -> ChipRevisionReg {
201        <crate::RegValueT<ChipRevisionReg_SPEC> as RegisterValue<_>>::new(66)
202    }
203}
204
205#[doc(hidden)]
206#[derive(Copy, Clone, Eq, PartialEq)]
207pub struct ChipSwcReg_SPEC;
208impl crate::sealed::RegSpec for ChipSwcReg_SPEC {
209    type DataType = u8;
210}
211
212#[doc = "Software compatibility register."]
213pub type ChipSwcReg = crate::RegValueT<ChipSwcReg_SPEC>;
214
215impl ChipSwcReg {
216    #[doc = "SoftWare Compatibility code.\nInteger (default = 0) which is incremented if a silicon change has impact on the CPU Firmware.\nCan be used by software developers to write silicon revision dependent code."]
217    #[inline(always)]
218    pub fn chip_swc(
219        self,
220    ) -> crate::common::RegisterField<0, 0xf, 1, 0, u8, u8, ChipSwcReg_SPEC, crate::common::R> {
221        crate::common::RegisterField::<0,0xf,1,0,u8,u8,ChipSwcReg_SPEC,crate::common::R>::from_register(self,0)
222    }
223}
224impl ::core::default::Default for ChipSwcReg {
225    #[inline(always)]
226    fn default() -> ChipSwcReg {
227        <crate::RegValueT<ChipSwcReg_SPEC> as RegisterValue<_>>::new(0)
228    }
229}