Run with updated version of rustfmt

This commit is contained in:
Kjetil Kjeka
2017-09-23 20:31:10 +02:00
parent 7facea48b2
commit 2fc3ce22de
1658 changed files with 25191 additions and 42351 deletions

View File

@ -22,7 +22,9 @@ impl super::CFGR0 {
#[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,10 +45,8 @@ impl super::CFGR0 {
#[doc = "Possible values of the field `HREN`"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum HRENR {
#[doc = "Host request is disabled."]
_0,
#[doc = "Host request is enabled."]
_1,
#[doc = "Host request is disabled."] _0,
#[doc = "Host request is enabled."] _1,
}
impl HRENR {
#[doc = r" Returns `true` if the bit is clear (0)"]
@ -90,10 +90,8 @@ impl HRENR {
#[doc = "Possible values of the field `HRPOL`"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum HRPOLR {
#[doc = "Active low."]
_0,
#[doc = "Active high."]
_1,
#[doc = "Active low."] _0,
#[doc = "Active high."] _1,
}
impl HRPOLR {
#[doc = r" Returns `true` if the bit is clear (0)"]
@ -137,10 +135,8 @@ impl HRPOLR {
#[doc = "Possible values of the field `HRSEL`"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum HRSELR {
#[doc = "Host request input is pin LPSPI_HREQ."]
_0,
#[doc = "Host request input is input trigger."]
_1,
#[doc = "Host request input is pin LPSPI_HREQ."] _0,
#[doc = "Host request input is input trigger."] _1,
}
impl HRSELR {
#[doc = r" Returns `true` if the bit is clear (0)"]
@ -184,10 +180,8 @@ impl HRSELR {
#[doc = "Possible values of the field `CIRFIFO`"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum CIRFIFOR {
#[doc = "Circular FIFO is disabled."]
_0,
#[doc = "Circular FIFO is enabled."]
_1,
#[doc = "Circular FIFO is disabled."] _0,
#[doc = "Circular FIFO is enabled."] _1,
}
impl CIRFIFOR {
#[doc = r" Returns `true` if the bit is clear (0)"]
@ -231,10 +225,8 @@ impl CIRFIFOR {
#[doc = "Possible values of the field `RDMO`"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum RDMOR {
#[doc = "Received data is stored in the receive FIFO as normal."]
_0,
#[doc = "Received data is discarded unless the DMF is set."]
_1,
#[doc = "Received data is stored in the receive FIFO as normal."] _0,
#[doc = "Received data is discarded unless the DMF is set."] _1,
}
impl RDMOR {
#[doc = r" Returns `true` if the bit is clear (0)"]
@ -277,10 +269,8 @@ impl RDMOR {
}
#[doc = "Values that can be written to the field `HREN`"]
pub enum HRENW {
#[doc = "Host request is disabled."]
_0,
#[doc = "Host request is enabled."]
_1,
#[doc = "Host request is disabled."] _0,
#[doc = "Host request is enabled."] _1,
}
impl HRENW {
#[allow(missing_docs)]
@ -335,10 +325,8 @@ impl<'a> _HRENW<'a> {
}
#[doc = "Values that can be written to the field `HRPOL`"]
pub enum HRPOLW {
#[doc = "Active low."]
_0,
#[doc = "Active high."]
_1,
#[doc = "Active low."] _0,
#[doc = "Active high."] _1,
}
impl HRPOLW {
#[allow(missing_docs)]
@ -393,10 +381,8 @@ impl<'a> _HRPOLW<'a> {
}
#[doc = "Values that can be written to the field `HRSEL`"]
pub enum HRSELW {
#[doc = "Host request input is pin LPSPI_HREQ."]
_0,
#[doc = "Host request input is input trigger."]
_1,
#[doc = "Host request input is pin LPSPI_HREQ."] _0,
#[doc = "Host request input is input trigger."] _1,
}
impl HRSELW {
#[allow(missing_docs)]
@ -451,10 +437,8 @@ impl<'a> _HRSELW<'a> {
}
#[doc = "Values that can be written to the field `CIRFIFO`"]
pub enum CIRFIFOW {
#[doc = "Circular FIFO is disabled."]
_0,
#[doc = "Circular FIFO is enabled."]
_1,
#[doc = "Circular FIFO is disabled."] _0,
#[doc = "Circular FIFO is enabled."] _1,
}
impl CIRFIFOW {
#[allow(missing_docs)]
@ -509,10 +493,8 @@ impl<'a> _CIRFIFOW<'a> {
}
#[doc = "Values that can be written to the field `RDMO`"]
pub enum RDMOW {
#[doc = "Received data is stored in the receive FIFO as normal."]
_0,
#[doc = "Received data is discarded unless the DMF is set."]
_1,
#[doc = "Received data is stored in the receive FIFO as normal."] _0,
#[doc = "Received data is discarded unless the DMF is set."] _1,
}
impl RDMOW {
#[allow(missing_docs)]