Run with updated version of rustfmt
This commit is contained in:
@ -22,7 +22,9 @@ impl super::FIFO {
|
||||
#[doc = r" Reads the contents of the register"]
|
||||
#[inline]
|
||||
pub fn read(&self) -> R {
|
||||
R { bits: self.register.get() }
|
||||
R {
|
||||
bits: self.register.get(),
|
||||
}
|
||||
}
|
||||
#[doc = r" Writes to the register"]
|
||||
#[inline]
|
||||
@ -43,22 +45,14 @@ impl super::FIFO {
|
||||
#[doc = "Possible values of the field `RXFIFOSIZE`"]
|
||||
#[derive(Clone, Copy, Debug, PartialEq)]
|
||||
pub enum RXFIFOSIZER {
|
||||
#[doc = "Receive FIFO/Buffer depth = 1 dataword."]
|
||||
_000,
|
||||
#[doc = "Receive FIFO/Buffer depth = 4 datawords."]
|
||||
_001,
|
||||
#[doc = "Receive FIFO/Buffer depth = 8 datawords."]
|
||||
_010,
|
||||
#[doc = "Receive FIFO/Buffer depth = 16 datawords."]
|
||||
_011,
|
||||
#[doc = "Receive FIFO/Buffer depth = 32 datawords."]
|
||||
_100,
|
||||
#[doc = "Receive FIFO/Buffer depth = 64 datawords."]
|
||||
_101,
|
||||
#[doc = "Receive FIFO/Buffer depth = 128 datawords."]
|
||||
_110,
|
||||
#[doc = "Receive FIFO/Buffer depth = 256 datawords."]
|
||||
_111,
|
||||
#[doc = "Receive FIFO/Buffer depth = 1 dataword."] _000,
|
||||
#[doc = "Receive FIFO/Buffer depth = 4 datawords."] _001,
|
||||
#[doc = "Receive FIFO/Buffer depth = 8 datawords."] _010,
|
||||
#[doc = "Receive FIFO/Buffer depth = 16 datawords."] _011,
|
||||
#[doc = "Receive FIFO/Buffer depth = 32 datawords."] _100,
|
||||
#[doc = "Receive FIFO/Buffer depth = 64 datawords."] _101,
|
||||
#[doc = "Receive FIFO/Buffer depth = 128 datawords."] _110,
|
||||
#[doc = "Receive FIFO/Buffer depth = 256 datawords."] _111,
|
||||
}
|
||||
impl RXFIFOSIZER {
|
||||
#[doc = r" Value of the field as raw bits"]
|
||||
@ -135,10 +129,8 @@ impl RXFIFOSIZER {
|
||||
#[doc = "Possible values of the field `RXFE`"]
|
||||
#[derive(Clone, Copy, Debug, PartialEq)]
|
||||
pub enum RXFER {
|
||||
#[doc = "Receive FIFO is not enabled. Buffer is depth 1. (Legacy support)"]
|
||||
_0,
|
||||
#[doc = "Receive FIFO is enabled. Buffer is depth indicted by RXFIFOSIZE."]
|
||||
_1,
|
||||
#[doc = "Receive FIFO is not enabled. Buffer is depth 1. (Legacy support)"] _0,
|
||||
#[doc = "Receive FIFO is enabled. Buffer is depth indicted by RXFIFOSIZE."] _1,
|
||||
}
|
||||
impl RXFER {
|
||||
#[doc = r" Returns `true` if the bit is clear (0)"]
|
||||
@ -182,22 +174,14 @@ impl RXFER {
|
||||
#[doc = "Possible values of the field `TXFIFOSIZE`"]
|
||||
#[derive(Clone, Copy, Debug, PartialEq)]
|
||||
pub enum TXFIFOSIZER {
|
||||
#[doc = "Transmit FIFO/Buffer depth = 1 dataword."]
|
||||
_000,
|
||||
#[doc = "Transmit FIFO/Buffer depth = 4 datawords."]
|
||||
_001,
|
||||
#[doc = "Transmit FIFO/Buffer depth = 8 datawords."]
|
||||
_010,
|
||||
#[doc = "Transmit FIFO/Buffer depth = 16 datawords."]
|
||||
_011,
|
||||
#[doc = "Transmit FIFO/Buffer depth = 32 datawords."]
|
||||
_100,
|
||||
#[doc = "Transmit FIFO/Buffer depth = 64 datawords."]
|
||||
_101,
|
||||
#[doc = "Transmit FIFO/Buffer depth = 128 datawords."]
|
||||
_110,
|
||||
#[doc = "Transmit FIFO/Buffer depth = 256 datawords"]
|
||||
_111,
|
||||
#[doc = "Transmit FIFO/Buffer depth = 1 dataword."] _000,
|
||||
#[doc = "Transmit FIFO/Buffer depth = 4 datawords."] _001,
|
||||
#[doc = "Transmit FIFO/Buffer depth = 8 datawords."] _010,
|
||||
#[doc = "Transmit FIFO/Buffer depth = 16 datawords."] _011,
|
||||
#[doc = "Transmit FIFO/Buffer depth = 32 datawords."] _100,
|
||||
#[doc = "Transmit FIFO/Buffer depth = 64 datawords."] _101,
|
||||
#[doc = "Transmit FIFO/Buffer depth = 128 datawords."] _110,
|
||||
#[doc = "Transmit FIFO/Buffer depth = 256 datawords"] _111,
|
||||
}
|
||||
impl TXFIFOSIZER {
|
||||
#[doc = r" Value of the field as raw bits"]
|
||||
@ -274,10 +258,8 @@ impl TXFIFOSIZER {
|
||||
#[doc = "Possible values of the field `TXFE`"]
|
||||
#[derive(Clone, Copy, Debug, PartialEq)]
|
||||
pub enum TXFER {
|
||||
#[doc = "Transmit FIFO is not enabled. Buffer is depth 1. (Legacy support)."]
|
||||
_0,
|
||||
#[doc = "Transmit FIFO is enabled. Buffer is depth indicated by TXFIFOSIZE."]
|
||||
_1,
|
||||
#[doc = "Transmit FIFO is not enabled. Buffer is depth 1. (Legacy support)."] _0,
|
||||
#[doc = "Transmit FIFO is enabled. Buffer is depth indicated by TXFIFOSIZE."] _1,
|
||||
}
|
||||
impl TXFER {
|
||||
#[doc = r" Returns `true` if the bit is clear (0)"]
|
||||
@ -321,10 +303,8 @@ impl TXFER {
|
||||
#[doc = "Possible values of the field `RXUFE`"]
|
||||
#[derive(Clone, Copy, Debug, PartialEq)]
|
||||
pub enum RXUFER {
|
||||
#[doc = "RXUF flag does not generate an interrupt to the host."]
|
||||
_0,
|
||||
#[doc = "RXUF flag generates an interrupt to the host."]
|
||||
_1,
|
||||
#[doc = "RXUF flag does not generate an interrupt to the host."] _0,
|
||||
#[doc = "RXUF flag generates an interrupt to the host."] _1,
|
||||
}
|
||||
impl RXUFER {
|
||||
#[doc = r" Returns `true` if the bit is clear (0)"]
|
||||
@ -368,10 +348,8 @@ impl RXUFER {
|
||||
#[doc = "Possible values of the field `TXOFE`"]
|
||||
#[derive(Clone, Copy, Debug, PartialEq)]
|
||||
pub enum TXOFER {
|
||||
#[doc = "TXOF flag does not generate an interrupt to the host."]
|
||||
_0,
|
||||
#[doc = "TXOF flag generates an interrupt to the host."]
|
||||
_1,
|
||||
#[doc = "TXOF flag does not generate an interrupt to the host."] _0,
|
||||
#[doc = "TXOF flag generates an interrupt to the host."] _1,
|
||||
}
|
||||
impl TXOFER {
|
||||
#[doc = r" Returns `true` if the bit is clear (0)"]
|
||||
@ -415,8 +393,7 @@ impl TXOFER {
|
||||
#[doc = "Possible values of the field `RXIDEN`"]
|
||||
#[derive(Clone, Copy, Debug, PartialEq)]
|
||||
pub enum RXIDENR {
|
||||
#[doc = "Disable RDRF assertion due to partially filled FIFO when receiver is idle."]
|
||||
_000,
|
||||
#[doc = "Disable RDRF assertion due to partially filled FIFO when receiver is idle."] _000,
|
||||
#[doc = "Enable RDRF assertion due to partially filled FIFO when receiver is idle for 1 character."]
|
||||
_001,
|
||||
#[doc = "Enable RDRF assertion due to partially filled FIFO when receiver is idle for 2 characters."]
|
||||
@ -507,8 +484,7 @@ impl RXIDENR {
|
||||
#[doc = "Possible values of the field `RXUF`"]
|
||||
#[derive(Clone, Copy, Debug, PartialEq)]
|
||||
pub enum RXUFR {
|
||||
#[doc = "No receive buffer underflow has occurred since the last time the flag was cleared."]
|
||||
_0,
|
||||
#[doc = "No receive buffer underflow has occurred since the last time the flag was cleared."] _0,
|
||||
#[doc = "At least one receive buffer underflow has occurred since the last time the flag was cleared."]
|
||||
_1,
|
||||
}
|
||||
@ -554,8 +530,7 @@ impl RXUFR {
|
||||
#[doc = "Possible values of the field `TXOF`"]
|
||||
#[derive(Clone, Copy, Debug, PartialEq)]
|
||||
pub enum TXOFR {
|
||||
#[doc = "No transmit buffer overflow has occurred since the last time the flag was cleared."]
|
||||
_0,
|
||||
#[doc = "No transmit buffer overflow has occurred since the last time the flag was cleared."] _0,
|
||||
#[doc = "At least one transmit buffer overflow has occurred since the last time the flag was cleared."]
|
||||
_1,
|
||||
}
|
||||
@ -601,10 +576,8 @@ impl TXOFR {
|
||||
#[doc = "Possible values of the field `RXEMPT`"]
|
||||
#[derive(Clone, Copy, Debug, PartialEq)]
|
||||
pub enum RXEMPTR {
|
||||
#[doc = "Receive buffer is not empty."]
|
||||
_0,
|
||||
#[doc = "Receive buffer is empty."]
|
||||
_1,
|
||||
#[doc = "Receive buffer is not empty."] _0,
|
||||
#[doc = "Receive buffer is empty."] _1,
|
||||
}
|
||||
impl RXEMPTR {
|
||||
#[doc = r" Returns `true` if the bit is clear (0)"]
|
||||
@ -648,10 +621,8 @@ impl RXEMPTR {
|
||||
#[doc = "Possible values of the field `TXEMPT`"]
|
||||
#[derive(Clone, Copy, Debug, PartialEq)]
|
||||
pub enum TXEMPTR {
|
||||
#[doc = "Transmit buffer is not empty."]
|
||||
_0,
|
||||
#[doc = "Transmit buffer is empty."]
|
||||
_1,
|
||||
#[doc = "Transmit buffer is not empty."] _0,
|
||||
#[doc = "Transmit buffer is empty."] _1,
|
||||
}
|
||||
impl TXEMPTR {
|
||||
#[doc = r" Returns `true` if the bit is clear (0)"]
|
||||
@ -694,10 +665,8 @@ impl TXEMPTR {
|
||||
}
|
||||
#[doc = "Values that can be written to the field `RXFE`"]
|
||||
pub enum RXFEW {
|
||||
#[doc = "Receive FIFO is not enabled. Buffer is depth 1. (Legacy support)"]
|
||||
_0,
|
||||
#[doc = "Receive FIFO is enabled. Buffer is depth indicted by RXFIFOSIZE."]
|
||||
_1,
|
||||
#[doc = "Receive FIFO is not enabled. Buffer is depth 1. (Legacy support)"] _0,
|
||||
#[doc = "Receive FIFO is enabled. Buffer is depth indicted by RXFIFOSIZE."] _1,
|
||||
}
|
||||
impl RXFEW {
|
||||
#[allow(missing_docs)]
|
||||
@ -752,10 +721,8 @@ impl<'a> _RXFEW<'a> {
|
||||
}
|
||||
#[doc = "Values that can be written to the field `TXFE`"]
|
||||
pub enum TXFEW {
|
||||
#[doc = "Transmit FIFO is not enabled. Buffer is depth 1. (Legacy support)."]
|
||||
_0,
|
||||
#[doc = "Transmit FIFO is enabled. Buffer is depth indicated by TXFIFOSIZE."]
|
||||
_1,
|
||||
#[doc = "Transmit FIFO is not enabled. Buffer is depth 1. (Legacy support)."] _0,
|
||||
#[doc = "Transmit FIFO is enabled. Buffer is depth indicated by TXFIFOSIZE."] _1,
|
||||
}
|
||||
impl TXFEW {
|
||||
#[allow(missing_docs)]
|
||||
@ -810,10 +777,8 @@ impl<'a> _TXFEW<'a> {
|
||||
}
|
||||
#[doc = "Values that can be written to the field `RXUFE`"]
|
||||
pub enum RXUFEW {
|
||||
#[doc = "RXUF flag does not generate an interrupt to the host."]
|
||||
_0,
|
||||
#[doc = "RXUF flag generates an interrupt to the host."]
|
||||
_1,
|
||||
#[doc = "RXUF flag does not generate an interrupt to the host."] _0,
|
||||
#[doc = "RXUF flag generates an interrupt to the host."] _1,
|
||||
}
|
||||
impl RXUFEW {
|
||||
#[allow(missing_docs)]
|
||||
@ -868,10 +833,8 @@ impl<'a> _RXUFEW<'a> {
|
||||
}
|
||||
#[doc = "Values that can be written to the field `TXOFE`"]
|
||||
pub enum TXOFEW {
|
||||
#[doc = "TXOF flag does not generate an interrupt to the host."]
|
||||
_0,
|
||||
#[doc = "TXOF flag generates an interrupt to the host."]
|
||||
_1,
|
||||
#[doc = "TXOF flag does not generate an interrupt to the host."] _0,
|
||||
#[doc = "TXOF flag generates an interrupt to the host."] _1,
|
||||
}
|
||||
impl TXOFEW {
|
||||
#[allow(missing_docs)]
|
||||
@ -926,8 +889,7 @@ impl<'a> _TXOFEW<'a> {
|
||||
}
|
||||
#[doc = "Values that can be written to the field `RXIDEN`"]
|
||||
pub enum RXIDENW {
|
||||
#[doc = "Disable RDRF assertion due to partially filled FIFO when receiver is idle."]
|
||||
_000,
|
||||
#[doc = "Disable RDRF assertion due to partially filled FIFO when receiver is idle."] _000,
|
||||
#[doc = "Enable RDRF assertion due to partially filled FIFO when receiver is idle for 1 character."]
|
||||
_001,
|
||||
#[doc = "Enable RDRF assertion due to partially filled FIFO when receiver is idle for 2 characters."]
|
||||
@ -1024,10 +986,8 @@ impl<'a> _RXIDENW<'a> {
|
||||
}
|
||||
#[doc = "Values that can be written to the field `RXFLUSH`"]
|
||||
pub enum RXFLUSHW {
|
||||
#[doc = "No flush operation occurs."]
|
||||
_0,
|
||||
#[doc = "All data in the receive FIFO/buffer is cleared out."]
|
||||
_1,
|
||||
#[doc = "No flush operation occurs."] _0,
|
||||
#[doc = "All data in the receive FIFO/buffer is cleared out."] _1,
|
||||
}
|
||||
impl RXFLUSHW {
|
||||
#[allow(missing_docs)]
|
||||
@ -1082,10 +1042,8 @@ impl<'a> _RXFLUSHW<'a> {
|
||||
}
|
||||
#[doc = "Values that can be written to the field `TXFLUSH`"]
|
||||
pub enum TXFLUSHW {
|
||||
#[doc = "No flush operation occurs."]
|
||||
_0,
|
||||
#[doc = "All data in the transmit FIFO/Buffer is cleared out."]
|
||||
_1,
|
||||
#[doc = "No flush operation occurs."] _0,
|
||||
#[doc = "All data in the transmit FIFO/Buffer is cleared out."] _1,
|
||||
}
|
||||
impl TXFLUSHW {
|
||||
#[allow(missing_docs)]
|
||||
@ -1140,8 +1098,7 @@ impl<'a> _TXFLUSHW<'a> {
|
||||
}
|
||||
#[doc = "Values that can be written to the field `RXUF`"]
|
||||
pub enum RXUFW {
|
||||
#[doc = "No receive buffer underflow has occurred since the last time the flag was cleared."]
|
||||
_0,
|
||||
#[doc = "No receive buffer underflow has occurred since the last time the flag was cleared."] _0,
|
||||
#[doc = "At least one receive buffer underflow has occurred since the last time the flag was cleared."]
|
||||
_1,
|
||||
}
|
||||
@ -1198,8 +1155,7 @@ impl<'a> _RXUFW<'a> {
|
||||
}
|
||||
#[doc = "Values that can be written to the field `TXOF`"]
|
||||
pub enum TXOFW {
|
||||
#[doc = "No transmit buffer overflow has occurred since the last time the flag was cleared."]
|
||||
_0,
|
||||
#[doc = "No transmit buffer overflow has occurred since the last time the flag was cleared."] _0,
|
||||
#[doc = "At least one transmit buffer overflow has occurred since the last time the flag was cleared."]
|
||||
_1,
|
||||
}
|
||||
|
Reference in New Issue
Block a user