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::FLTPOL {
#[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::FLTPOL {
#[doc = "Possible values of the field `FLT0POL`"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum FLT0POLR {
#[doc = "The fault input polarity is active high. A 1 at the fault input indicates a fault."]
_0,
#[doc = "The fault input polarity is active low. A 0 at the fault input indicates a fault."]
_1,
#[doc = "The fault input polarity is active high. A 1 at the fault input indicates a fault."] _0,
#[doc = "The fault input polarity is active low. A 0 at the fault input indicates a fault."] _1,
}
impl FLT0POLR {
#[doc = r" Returns `true` if the bit is clear (0)"]
@ -90,10 +90,8 @@ impl FLT0POLR {
#[doc = "Possible values of the field `FLT1POL`"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum FLT1POLR {
#[doc = "The fault input polarity is active high. A 1 at the fault input indicates a fault."]
_0,
#[doc = "The fault input polarity is active low. A 0 at the fault input indicates a fault."]
_1,
#[doc = "The fault input polarity is active high. A 1 at the fault input indicates a fault."] _0,
#[doc = "The fault input polarity is active low. A 0 at the fault input indicates a fault."] _1,
}
impl FLT1POLR {
#[doc = r" Returns `true` if the bit is clear (0)"]
@ -137,10 +135,8 @@ impl FLT1POLR {
#[doc = "Possible values of the field `FLT2POL`"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum FLT2POLR {
#[doc = "The fault input polarity is active high. A 1 at the fault input indicates a fault."]
_0,
#[doc = "The fault input polarity is active low. A 0 at the fault input indicates a fault."]
_1,
#[doc = "The fault input polarity is active high. A 1 at the fault input indicates a fault."] _0,
#[doc = "The fault input polarity is active low. A 0 at the fault input indicates a fault."] _1,
}
impl FLT2POLR {
#[doc = r" Returns `true` if the bit is clear (0)"]
@ -184,10 +180,8 @@ impl FLT2POLR {
#[doc = "Possible values of the field `FLT3POL`"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum FLT3POLR {
#[doc = "The fault input polarity is active high. A 1 at the fault input indicates a fault."]
_0,
#[doc = "The fault input polarity is active low. A 0 at the fault input indicates a fault."]
_1,
#[doc = "The fault input polarity is active high. A 1 at the fault input indicates a fault."] _0,
#[doc = "The fault input polarity is active low. A 0 at the fault input indicates a fault."] _1,
}
impl FLT3POLR {
#[doc = r" Returns `true` if the bit is clear (0)"]
@ -230,10 +224,8 @@ impl FLT3POLR {
}
#[doc = "Values that can be written to the field `FLT0POL`"]
pub enum FLT0POLW {
#[doc = "The fault input polarity is active high. A 1 at the fault input indicates a fault."]
_0,
#[doc = "The fault input polarity is active low. A 0 at the fault input indicates a fault."]
_1,
#[doc = "The fault input polarity is active high. A 1 at the fault input indicates a fault."] _0,
#[doc = "The fault input polarity is active low. A 0 at the fault input indicates a fault."] _1,
}
impl FLT0POLW {
#[allow(missing_docs)]
@ -288,10 +280,8 @@ impl<'a> _FLT0POLW<'a> {
}
#[doc = "Values that can be written to the field `FLT1POL`"]
pub enum FLT1POLW {
#[doc = "The fault input polarity is active high. A 1 at the fault input indicates a fault."]
_0,
#[doc = "The fault input polarity is active low. A 0 at the fault input indicates a fault."]
_1,
#[doc = "The fault input polarity is active high. A 1 at the fault input indicates a fault."] _0,
#[doc = "The fault input polarity is active low. A 0 at the fault input indicates a fault."] _1,
}
impl FLT1POLW {
#[allow(missing_docs)]
@ -346,10 +336,8 @@ impl<'a> _FLT1POLW<'a> {
}
#[doc = "Values that can be written to the field `FLT2POL`"]
pub enum FLT2POLW {
#[doc = "The fault input polarity is active high. A 1 at the fault input indicates a fault."]
_0,
#[doc = "The fault input polarity is active low. A 0 at the fault input indicates a fault."]
_1,
#[doc = "The fault input polarity is active high. A 1 at the fault input indicates a fault."] _0,
#[doc = "The fault input polarity is active low. A 0 at the fault input indicates a fault."] _1,
}
impl FLT2POLW {
#[allow(missing_docs)]
@ -404,10 +392,8 @@ impl<'a> _FLT2POLW<'a> {
}
#[doc = "Values that can be written to the field `FLT3POL`"]
pub enum FLT3POLW {
#[doc = "The fault input polarity is active high. A 1 at the fault input indicates a fault."]
_0,
#[doc = "The fault input polarity is active low. A 0 at the fault input indicates a fault."]
_1,
#[doc = "The fault input polarity is active high. A 1 at the fault input indicates a fault."] _0,
#[doc = "The fault input polarity is active low. A 0 at the fault input indicates a fault."] _1,
}
impl FLT3POLW {
#[allow(missing_docs)]