imxrt_ral/blocks/imxrt1011/
ewm.rs
1#[doc = "EWM"]
2#[repr(C)]
3pub struct RegisterBlock {
4 #[doc = "Control Register"]
5 pub CTRL: crate::RWRegister<u8>,
6 #[doc = "Service Register"]
7 pub SERV: crate::RWRegister<u8>,
8 #[doc = "Compare Low Register"]
9 pub CMPL: crate::RWRegister<u8>,
10 #[doc = "Compare High Register"]
11 pub CMPH: crate::RWRegister<u8>,
12 #[doc = "Clock Control Register"]
13 pub CLKCTRL: crate::RWRegister<u8>,
14 #[doc = "Clock Prescaler Register"]
15 pub CLKPRESCALER: crate::RWRegister<u8>,
16}
17#[doc = "Control Register"]
18pub mod CTRL {
19 #[doc = "EWM enable."]
20 pub mod EWMEN {
21 pub const offset: u8 = 0;
22 pub const mask: u8 = 0x01 << offset;
23 pub mod R {}
24 pub mod W {}
25 pub mod RW {}
26 }
27 #[doc = "EWM_in's Assertion State Select."]
28 pub mod ASSIN {
29 pub const offset: u8 = 1;
30 pub const mask: u8 = 0x01 << offset;
31 pub mod R {}
32 pub mod W {}
33 pub mod RW {}
34 }
35 #[doc = "Input Enable."]
36 pub mod INEN {
37 pub const offset: u8 = 2;
38 pub const mask: u8 = 0x01 << offset;
39 pub mod R {}
40 pub mod W {}
41 pub mod RW {}
42 }
43 #[doc = "Interrupt Enable."]
44 pub mod INTEN {
45 pub const offset: u8 = 3;
46 pub const mask: u8 = 0x01 << offset;
47 pub mod R {}
48 pub mod W {}
49 pub mod RW {}
50 }
51}
52#[doc = "Service Register"]
53pub mod SERV {
54 #[doc = "SERVICE"]
55 pub mod SERVICE {
56 pub const offset: u8 = 0;
57 pub const mask: u8 = 0xff << offset;
58 pub mod R {}
59 pub mod W {}
60 pub mod RW {}
61 }
62}
63#[doc = "Compare Low Register"]
64pub mod CMPL {
65 #[doc = "COMPAREL"]
66 pub mod COMPAREL {
67 pub const offset: u8 = 0;
68 pub const mask: u8 = 0xff << offset;
69 pub mod R {}
70 pub mod W {}
71 pub mod RW {}
72 }
73}
74#[doc = "Compare High Register"]
75pub mod CMPH {
76 #[doc = "COMPAREH"]
77 pub mod COMPAREH {
78 pub const offset: u8 = 0;
79 pub const mask: u8 = 0xff << offset;
80 pub mod R {}
81 pub mod W {}
82 pub mod RW {}
83 }
84}
85#[doc = "Clock Control Register"]
86pub mod CLKCTRL {
87 #[doc = "CLKSEL"]
88 pub mod CLKSEL {
89 pub const offset: u8 = 0;
90 pub const mask: u8 = 0x03 << offset;
91 pub mod R {}
92 pub mod W {}
93 pub mod RW {}
94 }
95}
96#[doc = "Clock Prescaler Register"]
97pub mod CLKPRESCALER {
98 #[doc = "CLK_DIV"]
99 pub mod CLK_DIV {
100 pub const offset: u8 = 0;
101 pub const mask: u8 = 0xff << offset;
102 pub mod R {}
103 pub mod W {}
104 pub mod RW {}
105 }
106}