Lines Matching +full:enum +full:- +full:as +full:- +full:flags
3 // SPDX-License-Identifier: GPL-2.0-or-later
5 //! Device registers exposed as typed structs which are backed by arbitrary
20 pub enum RegisterOffset {
40 /// `IrDA` Low-Power Counter Register
94 /// read for RX. It is a 12-bit register, where bits 7..0 are the
107 // bilge is not very const-friendly, unfortunately
118 /// The TRM confusingly describes this offset as UARTRSR for reads
142 fn default() -> Self { in default()
151 /// This has the usual inbound RS232 modem-control signals, plus flags
154 pub struct Flags { struct
176 impl_vmstate_bitsized!(Flags); argument
178 impl Flags { impl
184 impl Default for Flags { implementation
185 fn default() -> Self { in default()
217 /// 31:8 - Reserved, do not modify, read as zero.
230 fn default() -> Self { in default()
239 pub enum Parity {
248 pub enum Mode {
250 /// 1-byte-deep holding registers
261 /// frame as follows:
262 pub enum WordLength {
287 /// `SIRLP` SIR low-power IrDA mode. QEMU does not model this.
289 /// Reserved, do not modify, read as zero.
301 /// `Out1` UART Out1 signal; can be used as DCD
303 /// `Out2` UART Out2 signal; can be used as RI
309 /// 31:16 - Reserved, do not modify, read as zero.
323 fn default() -> Self { in default()
346 E = bits!(Self as u32: OE | BE | PE | FE),
347 MS = bits!(Self as u32: RI | DSR | DCD | CTS),