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