Skip to main content

ra0e1_pac/
port9.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.10.00, with svd2pac 0.6.1 on Sun, 15 Mar 2026 07:00:13 +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"Port 9 Control"]
28unsafe impl ::core::marker::Send for super::Port9 {}
29unsafe impl ::core::marker::Sync for super::Port9 {}
30impl super::Port9 {
31    #[allow(unused)]
32    #[inline(always)]
33    pub(crate) const fn _svd2pac_as_ptr(&self) -> *mut u8 {
34        self.ptr
35    }
36
37    #[doc = "Port 9 Output Data Register"]
38    #[inline(always)]
39    pub const fn podr9(&self) -> &'static crate::common::Reg<self::Podr9_SPEC, crate::common::RW> {
40        unsafe {
41            crate::common::Reg::<self::Podr9_SPEC, crate::common::RW>::from_ptr(
42                self._svd2pac_as_ptr().add(0usize),
43            )
44        }
45    }
46
47    #[doc = "Port 9 Direction Register"]
48    #[inline(always)]
49    pub const fn pdr9(&self) -> &'static crate::common::Reg<self::Pdr9_SPEC, crate::common::RW> {
50        unsafe {
51            crate::common::Reg::<self::Pdr9_SPEC, crate::common::RW>::from_ptr(
52                self._svd2pac_as_ptr().add(2usize),
53            )
54        }
55    }
56
57    #[doc = "Port 9 State Register"]
58    #[inline(always)]
59    pub const fn pidr9(&self) -> &'static crate::common::Reg<self::Pidr9_SPEC, crate::common::R> {
60        unsafe {
61            crate::common::Reg::<self::Pidr9_SPEC, crate::common::R>::from_ptr(
62                self._svd2pac_as_ptr().add(6usize),
63            )
64        }
65    }
66
67    #[doc = "Port 9 Output Reset Register"]
68    #[inline(always)]
69    pub const fn porr9(&self) -> &'static crate::common::Reg<self::Porr9_SPEC, crate::common::W> {
70        unsafe {
71            crate::common::Reg::<self::Porr9_SPEC, crate::common::W>::from_ptr(
72                self._svd2pac_as_ptr().add(8usize),
73            )
74        }
75    }
76
77    #[doc = "Port 9 Output Set Register"]
78    #[inline(always)]
79    pub const fn posr9(&self) -> &'static crate::common::Reg<self::Posr9_SPEC, crate::common::W> {
80        unsafe {
81            crate::common::Reg::<self::Posr9_SPEC, crate::common::W>::from_ptr(
82                self._svd2pac_as_ptr().add(10usize),
83            )
84        }
85    }
86}
87#[doc(hidden)]
88#[derive(Copy, Clone, Eq, PartialEq)]
89pub struct Podr9_SPEC;
90impl crate::sealed::RegSpec for Podr9_SPEC {
91    type DataType = u16;
92}
93
94#[doc = "Port 9 Output Data Register"]
95pub type Podr9 = crate::RegValueT<Podr9_SPEC>;
96
97impl Podr9 {
98    #[doc = "P913 Output Data"]
99    #[inline(always)]
100    pub fn podr13(
101        self,
102    ) -> crate::common::RegisterField<
103        13,
104        0x1,
105        1,
106        0,
107        podr9::Podr13,
108        podr9::Podr13,
109        Podr9_SPEC,
110        crate::common::RW,
111    > {
112        crate::common::RegisterField::<
113            13,
114            0x1,
115            1,
116            0,
117            podr9::Podr13,
118            podr9::Podr13,
119            Podr9_SPEC,
120            crate::common::RW,
121        >::from_register(self, 0)
122    }
123
124    #[doc = "P914 Output Data"]
125    #[inline(always)]
126    pub fn podr14(
127        self,
128    ) -> crate::common::RegisterField<
129        14,
130        0x1,
131        1,
132        0,
133        podr9::Podr14,
134        podr9::Podr14,
135        Podr9_SPEC,
136        crate::common::RW,
137    > {
138        crate::common::RegisterField::<
139            14,
140            0x1,
141            1,
142            0,
143            podr9::Podr14,
144            podr9::Podr14,
145            Podr9_SPEC,
146            crate::common::RW,
147        >::from_register(self, 0)
148    }
149}
150impl ::core::default::Default for Podr9 {
151    #[inline(always)]
152    fn default() -> Podr9 {
153        <crate::RegValueT<Podr9_SPEC> as RegisterValue<_>>::new(0)
154    }
155}
156pub mod podr9 {
157
158    #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
159    pub struct Podr13_SPEC;
160    pub type Podr13 = crate::EnumBitfieldStruct<u8, Podr13_SPEC>;
161    impl Podr13 {
162        #[doc = "Low output"]
163        pub const _0: Self = Self::new(0);
164
165        #[doc = "High output"]
166        pub const _1: Self = Self::new(1);
167    }
168    #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
169    pub struct Podr14_SPEC;
170    pub type Podr14 = crate::EnumBitfieldStruct<u8, Podr14_SPEC>;
171    impl Podr14 {
172        #[doc = "Low output"]
173        pub const _0: Self = Self::new(0);
174
175        #[doc = "High output"]
176        pub const _1: Self = Self::new(1);
177    }
178}
179#[doc(hidden)]
180#[derive(Copy, Clone, Eq, PartialEq)]
181pub struct Pdr9_SPEC;
182impl crate::sealed::RegSpec for Pdr9_SPEC {
183    type DataType = u16;
184}
185
186#[doc = "Port 9 Direction Register"]
187pub type Pdr9 = crate::RegValueT<Pdr9_SPEC>;
188
189impl Pdr9 {
190    #[doc = "P913 Direction"]
191    #[inline(always)]
192    pub fn pdr13(
193        self,
194    ) -> crate::common::RegisterField<
195        13,
196        0x1,
197        1,
198        0,
199        pdr9::Pdr13,
200        pdr9::Pdr13,
201        Pdr9_SPEC,
202        crate::common::RW,
203    > {
204        crate::common::RegisterField::<
205            13,
206            0x1,
207            1,
208            0,
209            pdr9::Pdr13,
210            pdr9::Pdr13,
211            Pdr9_SPEC,
212            crate::common::RW,
213        >::from_register(self, 0)
214    }
215
216    #[doc = "P914 Direction"]
217    #[inline(always)]
218    pub fn pdr14(
219        self,
220    ) -> crate::common::RegisterField<
221        14,
222        0x1,
223        1,
224        0,
225        pdr9::Pdr14,
226        pdr9::Pdr14,
227        Pdr9_SPEC,
228        crate::common::RW,
229    > {
230        crate::common::RegisterField::<
231            14,
232            0x1,
233            1,
234            0,
235            pdr9::Pdr14,
236            pdr9::Pdr14,
237            Pdr9_SPEC,
238            crate::common::RW,
239        >::from_register(self, 0)
240    }
241}
242impl ::core::default::Default for Pdr9 {
243    #[inline(always)]
244    fn default() -> Pdr9 {
245        <crate::RegValueT<Pdr9_SPEC> as RegisterValue<_>>::new(0)
246    }
247}
248pub mod pdr9 {
249
250    #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
251    pub struct Pdr13_SPEC;
252    pub type Pdr13 = crate::EnumBitfieldStruct<u8, Pdr13_SPEC>;
253    impl Pdr13 {
254        #[doc = "Output 0"]
255        pub const _0: Self = Self::new(0);
256
257        #[doc = "Output 1"]
258        pub const _1: Self = Self::new(1);
259    }
260    #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
261    pub struct Pdr14_SPEC;
262    pub type Pdr14 = crate::EnumBitfieldStruct<u8, Pdr14_SPEC>;
263    impl Pdr14 {
264        #[doc = "Output 0"]
265        pub const _0: Self = Self::new(0);
266
267        #[doc = "Output 1"]
268        pub const _1: Self = Self::new(1);
269    }
270}
271#[doc(hidden)]
272#[derive(Copy, Clone, Eq, PartialEq)]
273pub struct Pidr9_SPEC;
274impl crate::sealed::RegSpec for Pidr9_SPEC {
275    type DataType = u16;
276}
277
278#[doc = "Port 9 State Register"]
279pub type Pidr9 = crate::RegValueT<Pidr9_SPEC>;
280
281impl Pidr9 {
282    #[doc = "P913 State"]
283    #[inline(always)]
284    pub fn pidr13(
285        self,
286    ) -> crate::common::RegisterField<
287        13,
288        0x1,
289        1,
290        0,
291        pidr9::Pidr13,
292        pidr9::Pidr13,
293        Pidr9_SPEC,
294        crate::common::R,
295    > {
296        crate::common::RegisterField::<
297            13,
298            0x1,
299            1,
300            0,
301            pidr9::Pidr13,
302            pidr9::Pidr13,
303            Pidr9_SPEC,
304            crate::common::R,
305        >::from_register(self, 0)
306    }
307
308    #[doc = "P914 State"]
309    #[inline(always)]
310    pub fn pidr14(
311        self,
312    ) -> crate::common::RegisterField<
313        14,
314        0x1,
315        1,
316        0,
317        pidr9::Pidr14,
318        pidr9::Pidr14,
319        Pidr9_SPEC,
320        crate::common::R,
321    > {
322        crate::common::RegisterField::<
323            14,
324            0x1,
325            1,
326            0,
327            pidr9::Pidr14,
328            pidr9::Pidr14,
329            Pidr9_SPEC,
330            crate::common::R,
331        >::from_register(self, 0)
332    }
333}
334impl ::core::default::Default for Pidr9 {
335    #[inline(always)]
336    fn default() -> Pidr9 {
337        <crate::RegValueT<Pidr9_SPEC> as RegisterValue<_>>::new(0)
338    }
339}
340pub mod pidr9 {
341
342    #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
343    pub struct Pidr13_SPEC;
344    pub type Pidr13 = crate::EnumBitfieldStruct<u8, Pidr13_SPEC>;
345    impl Pidr13 {
346        #[doc = "Low level"]
347        pub const _0: Self = Self::new(0);
348
349        #[doc = "High level"]
350        pub const _1: Self = Self::new(1);
351    }
352    #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
353    pub struct Pidr14_SPEC;
354    pub type Pidr14 = crate::EnumBitfieldStruct<u8, Pidr14_SPEC>;
355    impl Pidr14 {
356        #[doc = "Low level"]
357        pub const _0: Self = Self::new(0);
358
359        #[doc = "High level"]
360        pub const _1: Self = Self::new(1);
361    }
362}
363#[doc(hidden)]
364#[derive(Copy, Clone, Eq, PartialEq)]
365pub struct Porr9_SPEC;
366impl crate::sealed::RegSpec for Porr9_SPEC {
367    type DataType = u16;
368}
369
370#[doc = "Port 9 Output Reset Register"]
371pub type Porr9 = crate::RegValueT<Porr9_SPEC>;
372
373impl Porr9 {
374    #[doc = "P913 Output Reset"]
375    #[inline(always)]
376    pub fn porr13(
377        self,
378    ) -> crate::common::RegisterField<
379        13,
380        0x1,
381        1,
382        0,
383        porr9::Porr13,
384        porr9::Porr13,
385        Porr9_SPEC,
386        crate::common::W,
387    > {
388        crate::common::RegisterField::<
389            13,
390            0x1,
391            1,
392            0,
393            porr9::Porr13,
394            porr9::Porr13,
395            Porr9_SPEC,
396            crate::common::W,
397        >::from_register(self, 0)
398    }
399
400    #[doc = "P914 Output Reset"]
401    #[inline(always)]
402    pub fn porr14(
403        self,
404    ) -> crate::common::RegisterField<
405        14,
406        0x1,
407        1,
408        0,
409        porr9::Porr14,
410        porr9::Porr14,
411        Porr9_SPEC,
412        crate::common::W,
413    > {
414        crate::common::RegisterField::<
415            14,
416            0x1,
417            1,
418            0,
419            porr9::Porr14,
420            porr9::Porr14,
421            Porr9_SPEC,
422            crate::common::W,
423        >::from_register(self, 0)
424    }
425}
426impl ::core::default::Default for Porr9 {
427    #[inline(always)]
428    fn default() -> Porr9 {
429        <crate::RegValueT<Porr9_SPEC> as RegisterValue<_>>::new(0)
430    }
431}
432pub mod porr9 {
433
434    #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
435    pub struct Porr13_SPEC;
436    pub type Porr13 = crate::EnumBitfieldStruct<u8, Porr13_SPEC>;
437    impl Porr13 {
438        #[doc = "No effect on output"]
439        pub const _0: Self = Self::new(0);
440
441        #[doc = "Low output"]
442        pub const _1: Self = Self::new(1);
443    }
444    #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
445    pub struct Porr14_SPEC;
446    pub type Porr14 = crate::EnumBitfieldStruct<u8, Porr14_SPEC>;
447    impl Porr14 {
448        #[doc = "No effect on output"]
449        pub const _0: Self = Self::new(0);
450
451        #[doc = "Low output"]
452        pub const _1: Self = Self::new(1);
453    }
454}
455#[doc(hidden)]
456#[derive(Copy, Clone, Eq, PartialEq)]
457pub struct Posr9_SPEC;
458impl crate::sealed::RegSpec for Posr9_SPEC {
459    type DataType = u16;
460}
461
462#[doc = "Port 9 Output Set Register"]
463pub type Posr9 = crate::RegValueT<Posr9_SPEC>;
464
465impl Posr9 {
466    #[doc = "P913 Output Set"]
467    #[inline(always)]
468    pub fn posr13(
469        self,
470    ) -> crate::common::RegisterField<
471        13,
472        0x1,
473        1,
474        0,
475        posr9::Posr13,
476        posr9::Posr13,
477        Posr9_SPEC,
478        crate::common::W,
479    > {
480        crate::common::RegisterField::<
481            13,
482            0x1,
483            1,
484            0,
485            posr9::Posr13,
486            posr9::Posr13,
487            Posr9_SPEC,
488            crate::common::W,
489        >::from_register(self, 0)
490    }
491
492    #[doc = "P914 Output Set"]
493    #[inline(always)]
494    pub fn posr14(
495        self,
496    ) -> crate::common::RegisterField<
497        14,
498        0x1,
499        1,
500        0,
501        posr9::Posr14,
502        posr9::Posr14,
503        Posr9_SPEC,
504        crate::common::W,
505    > {
506        crate::common::RegisterField::<
507            14,
508            0x1,
509            1,
510            0,
511            posr9::Posr14,
512            posr9::Posr14,
513            Posr9_SPEC,
514            crate::common::W,
515        >::from_register(self, 0)
516    }
517}
518impl ::core::default::Default for Posr9 {
519    #[inline(always)]
520    fn default() -> Posr9 {
521        <crate::RegValueT<Posr9_SPEC> as RegisterValue<_>>::new(0)
522    }
523}
524pub mod posr9 {
525
526    #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
527    pub struct Posr13_SPEC;
528    pub type Posr13 = crate::EnumBitfieldStruct<u8, Posr13_SPEC>;
529    impl Posr13 {
530        #[doc = "No effect on output"]
531        pub const _0: Self = Self::new(0);
532
533        #[doc = "High output"]
534        pub const _1: Self = Self::new(1);
535    }
536    #[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
537    pub struct Posr14_SPEC;
538    pub type Posr14 = crate::EnumBitfieldStruct<u8, Posr14_SPEC>;
539    impl Posr14 {
540        #[doc = "No effect on output"]
541        pub const _0: Self = Self::new(0);
542
543        #[doc = "High output"]
544        pub const _1: Self = Self::new(1);
545    }
546}