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
use crate::generic::*;
#[derive(Copy, Clone)]
pub struct Uart(pub *mut u8);
unsafe impl Send for Uart {}
unsafe impl Sync for Uart {}
impl Uart {
    #[doc = "Data Register, UARTDR"]
    pub fn uartdr(self) -> Reg<regs::Uartdr, RW> {
        unsafe { Reg::from_ptr(self.0.add(0usize)) }
    }
    #[doc = "Receive Status Register/Error Clear Register, UARTRSR/UARTECR"]
    pub fn uartrsr(self) -> Reg<regs::Uartrsr, RW> {
        unsafe { Reg::from_ptr(self.0.add(4usize)) }
    }
    #[doc = "Flag Register, UARTFR"]
    pub fn uartfr(self) -> Reg<regs::Uartfr, RW> {
        unsafe { Reg::from_ptr(self.0.add(24usize)) }
    }
    #[doc = "IrDA Low-Power Counter Register, UARTILPR"]
    pub fn uartilpr(self) -> Reg<regs::Uartilpr, RW> {
        unsafe { Reg::from_ptr(self.0.add(32usize)) }
    }
    #[doc = "Integer Baud Rate Register, UARTIBRD"]
    pub fn uartibrd(self) -> Reg<regs::Uartibrd, RW> {
        unsafe { Reg::from_ptr(self.0.add(36usize)) }
    }
    #[doc = "Fractional Baud Rate Register, UARTFBRD"]
    pub fn uartfbrd(self) -> Reg<regs::Uartfbrd, RW> {
        unsafe { Reg::from_ptr(self.0.add(40usize)) }
    }
    #[doc = "Line Control Register, UARTLCR_H"]
    pub fn uartlcr_h(self) -> Reg<regs::UartlcrH, RW> {
        unsafe { Reg::from_ptr(self.0.add(44usize)) }
    }
    #[doc = "Control Register, UARTCR"]
    pub fn uartcr(self) -> Reg<regs::Uartcr, RW> {
        unsafe { Reg::from_ptr(self.0.add(48usize)) }
    }
    #[doc = "Interrupt FIFO Level Select Register, UARTIFLS"]
    pub fn uartifls(self) -> Reg<regs::Uartifls, RW> {
        unsafe { Reg::from_ptr(self.0.add(52usize)) }
    }
    #[doc = "Interrupt Mask Set/Clear Register, UARTIMSC"]
    pub fn uartimsc(self) -> Reg<regs::Uartimsc, RW> {
        unsafe { Reg::from_ptr(self.0.add(56usize)) }
    }
    #[doc = "Raw Interrupt Status Register, UARTRIS"]
    pub fn uartris(self) -> Reg<regs::Uartris, RW> {
        unsafe { Reg::from_ptr(self.0.add(60usize)) }
    }
    #[doc = "Masked Interrupt Status Register, UARTMIS"]
    pub fn uartmis(self) -> Reg<regs::Uartmis, RW> {
        unsafe { Reg::from_ptr(self.0.add(64usize)) }
    }
    #[doc = "Interrupt Clear Register, UARTICR"]
    pub fn uarticr(self) -> Reg<regs::Uarticr, RW> {
        unsafe { Reg::from_ptr(self.0.add(68usize)) }
    }
    #[doc = "DMA Control Register, UARTDMACR"]
    pub fn uartdmacr(self) -> Reg<regs::Uartdmacr, RW> {
        unsafe { Reg::from_ptr(self.0.add(72usize)) }
    }
    #[doc = "UARTPeriphID0 Register"]
    pub fn uartperiphid0(self) -> Reg<regs::Uartperiphid0, RW> {
        unsafe { Reg::from_ptr(self.0.add(4064usize)) }
    }
    #[doc = "UARTPeriphID1 Register"]
    pub fn uartperiphid1(self) -> Reg<regs::Uartperiphid1, RW> {
        unsafe { Reg::from_ptr(self.0.add(4068usize)) }
    }
    #[doc = "UARTPeriphID2 Register"]
    pub fn uartperiphid2(self) -> Reg<regs::Uartperiphid2, RW> {
        unsafe { Reg::from_ptr(self.0.add(4072usize)) }
    }
    #[doc = "UARTPeriphID3 Register"]
    pub fn uartperiphid3(self) -> Reg<regs::Uartperiphid3, RW> {
        unsafe { Reg::from_ptr(self.0.add(4076usize)) }
    }
    #[doc = "UARTPCellID0 Register"]
    pub fn uartpcellid0(self) -> Reg<regs::Uartpcellid0, RW> {
        unsafe { Reg::from_ptr(self.0.add(4080usize)) }
    }
    #[doc = "UARTPCellID1 Register"]
    pub fn uartpcellid1(self) -> Reg<regs::Uartpcellid1, RW> {
        unsafe { Reg::from_ptr(self.0.add(4084usize)) }
    }
    #[doc = "UARTPCellID2 Register"]
    pub fn uartpcellid2(self) -> Reg<regs::Uartpcellid2, RW> {
        unsafe { Reg::from_ptr(self.0.add(4088usize)) }
    }
    #[doc = "UARTPCellID3 Register"]
    pub fn uartpcellid3(self) -> Reg<regs::Uartpcellid3, RW> {
        unsafe { Reg::from_ptr(self.0.add(4092usize)) }
    }
}
pub mod regs;