#[doc = r"Value read from the register"]
pub struct R {
bits: u32,
}
#[doc = r"Value to write to the register"]
pub struct W {
bits: u32,
}
impl super::FS1R {
#[doc = r"Modifies the contents of the register"]
#[inline(always)]
pub fn modify<F>(&self, f: F)
where
for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W,
{
let bits = self.register.get();
self.register.set(f(&R { bits }, &mut W { bits }).bits);
}
#[doc = r"Reads the contents of the register"]
#[inline(always)]
pub fn read(&self) -> R {
R {
bits: self.register.get(),
}
}
#[doc = r"Writes to the register"]
#[inline(always)]
pub fn write<F>(&self, f: F)
where
F: FnOnce(&mut W) -> &mut W,
{
self.register.set(
f(&mut W {
bits: Self::reset_value(),
})
.bits,
);
}
#[doc = r"Reset value of the register"]
#[inline(always)]
pub const fn reset_value() -> u32 {
0
}
#[doc = r"Writes the reset value to the register"]
#[inline(always)]
pub fn reset(&self) {
self.register.set(Self::reset_value())
}
}
#[doc = r"Value of the field"]
pub struct FSC0R {
bits: bool,
}
impl FSC0R {
#[doc = r"Value of the field as raw bits"]
#[inline(always)]
pub fn bit(&self) -> bool {
self.bits
}
#[doc = r"Returns `true` if the bit is clear (0)"]
#[inline(always)]
pub fn bit_is_clear(&self) -> bool {
!self.bit()
}
#[doc = r"Returns `true` if the bit is set (1)"]
#[inline(always)]
pub fn bit_is_set(&self) -> bool {
self.bit()
}
}
#[doc = r"Proxy"]
pub struct _FSC0W<'a> {
w: &'a mut W,
}
impl<'a> _FSC0W<'a> {
#[doc = r"Sets the field bit"]
#[inline(always)]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r"Clears the field bit"]
#[inline(always)]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub fn bit(self, value: bool) -> &'a mut W {
self.w.bits &= !(0x01 << 0);
self.w.bits |= ((value as u32) & 0x01) << 0;
self.w
}
}
#[doc = r"Value of the field"]
pub struct FSC1R {
bits: bool,
}
impl FSC1R {
#[doc = r"Value of the field as raw bits"]
#[inline(always)]
pub fn bit(&self) -> bool {
self.bits
}
#[doc = r"Returns `true` if the bit is clear (0)"]
#[inline(always)]
pub fn bit_is_clear(&self) -> bool {
!self.bit()
}
#[doc = r"Returns `true` if the bit is set (1)"]
#[inline(always)]
pub fn bit_is_set(&self) -> bool {
self.bit()
}
}
#[doc = r"Proxy"]
pub struct _FSC1W<'a> {
w: &'a mut W,
}
impl<'a> _FSC1W<'a> {
#[doc = r"Sets the field bit"]
#[inline(always)]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r"Clears the field bit"]
#[inline(always)]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub fn bit(self, value: bool) -> &'a mut W {
self.w.bits &= !(0x01 << 1);
self.w.bits |= ((value as u32) & 0x01) << 1;
self.w
}
}
#[doc = r"Value of the field"]
pub struct FSC2R {
bits: bool,
}
impl FSC2R {
#[doc = r"Value of the field as raw bits"]
#[inline(always)]
pub fn bit(&self) -> bool {
self.bits
}
#[doc = r"Returns `true` if the bit is clear (0)"]
#[inline(always)]
pub fn bit_is_clear(&self) -> bool {
!self.bit()
}
#[doc = r"Returns `true` if the bit is set (1)"]
#[inline(always)]
pub fn bit_is_set(&self) -> bool {
self.bit()
}
}
#[doc = r"Proxy"]
pub struct _FSC2W<'a> {
w: &'a mut W,
}
impl<'a> _FSC2W<'a> {
#[doc = r"Sets the field bit"]
#[inline(always)]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r"Clears the field bit"]
#[inline(always)]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub fn bit(self, value: bool) -> &'a mut W {
self.w.bits &= !(0x01 << 2);
self.w.bits |= ((value as u32) & 0x01) << 2;
self.w
}
}
#[doc = r"Value of the field"]
pub struct FSC3R {
bits: bool,
}
impl FSC3R {
#[doc = r"Value of the field as raw bits"]
#[inline(always)]
pub fn bit(&self) -> bool {
self.bits
}
#[doc = r"Returns `true` if the bit is clear (0)"]
#[inline(always)]
pub fn bit_is_clear(&self) -> bool {
!self.bit()
}
#[doc = r"Returns `true` if the bit is set (1)"]
#[inline(always)]
pub fn bit_is_set(&self) -> bool {
self.bit()
}
}
#[doc = r"Proxy"]
pub struct _FSC3W<'a> {
w: &'a mut W,
}
impl<'a> _FSC3W<'a> {
#[doc = r"Sets the field bit"]
#[inline(always)]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r"Clears the field bit"]
#[inline(always)]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub fn bit(self, value: bool) -> &'a mut W {
self.w.bits &= !(0x01 << 3);
self.w.bits |= ((value as u32) & 0x01) << 3;
self.w
}
}
#[doc = r"Value of the field"]
pub struct FSC4R {
bits: bool,
}
impl FSC4R {
#[doc = r"Value of the field as raw bits"]
#[inline(always)]
pub fn bit(&self) -> bool {
self.bits
}
#[doc = r"Returns `true` if the bit is clear (0)"]
#[inline(always)]
pub fn bit_is_clear(&self) -> bool {
!self.bit()
}
#[doc = r"Returns `true` if the bit is set (1)"]
#[inline(always)]
pub fn bit_is_set(&self) -> bool {
self.bit()
}
}
#[doc = r"Proxy"]
pub struct _FSC4W<'a> {
w: &'a mut W,
}
impl<'a> _FSC4W<'a> {
#[doc = r"Sets the field bit"]
#[inline(always)]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r"Clears the field bit"]
#[inline(always)]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub fn bit(self, value: bool) -> &'a mut W {
self.w.bits &= !(0x01 << 4);
self.w.bits |= ((value as u32) & 0x01) << 4;
self.w
}
}
#[doc = r"Value of the field"]
pub struct FSC5R {
bits: bool,
}
impl FSC5R {
#[doc = r"Value of the field as raw bits"]
#[inline(always)]
pub fn bit(&self) -> bool {
self.bits
}
#[doc = r"Returns `true` if the bit is clear (0)"]
#[inline(always)]
pub fn bit_is_clear(&self) -> bool {
!self.bit()
}
#[doc = r"Returns `true` if the bit is set (1)"]
#[inline(always)]
pub fn bit_is_set(&self) -> bool {
self.bit()
}
}
#[doc = r"Proxy"]
pub struct _FSC5W<'a> {
w: &'a mut W,
}
impl<'a> _FSC5W<'a> {
#[doc = r"Sets the field bit"]
#[inline(always)]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r"Clears the field bit"]
#[inline(always)]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub fn bit(self, value: bool) -> &'a mut W {
self.w.bits &= !(0x01 << 5);
self.w.bits |= ((value as u32) & 0x01) << 5;
self.w
}
}
#[doc = r"Value of the field"]
pub struct FSC6R {
bits: bool,
}
impl FSC6R {
#[doc = r"Value of the field as raw bits"]
#[inline(always)]
pub fn bit(&self) -> bool {
self.bits
}
#[doc = r"Returns `true` if the bit is clear (0)"]
#[inline(always)]
pub fn bit_is_clear(&self) -> bool {
!self.bit()
}
#[doc = r"Returns `true` if the bit is set (1)"]
#[inline(always)]
pub fn bit_is_set(&self) -> bool {
self.bit()
}
}
#[doc = r"Proxy"]
pub struct _FSC6W<'a> {
w: &'a mut W,
}
impl<'a> _FSC6W<'a> {
#[doc = r"Sets the field bit"]
#[inline(always)]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r"Clears the field bit"]
#[inline(always)]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub fn bit(self, value: bool) -> &'a mut W {
self.w.bits &= !(0x01 << 6);
self.w.bits |= ((value as u32) & 0x01) << 6;
self.w
}
}
#[doc = r"Value of the field"]
pub struct FSC7R {
bits: bool,
}
impl FSC7R {
#[doc = r"Value of the field as raw bits"]
#[inline(always)]
pub fn bit(&self) -> bool {
self.bits
}
#[doc = r"Returns `true` if the bit is clear (0)"]
#[inline(always)]
pub fn bit_is_clear(&self) -> bool {
!self.bit()
}
#[doc = r"Returns `true` if the bit is set (1)"]
#[inline(always)]
pub fn bit_is_set(&self) -> bool {
self.bit()
}
}
#[doc = r"Proxy"]
pub struct _FSC7W<'a> {
w: &'a mut W,
}
impl<'a> _FSC7W<'a> {
#[doc = r"Sets the field bit"]
#[inline(always)]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r"Clears the field bit"]
#[inline(always)]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub fn bit(self, value: bool) -> &'a mut W {
self.w.bits &= !(0x01 << 7);
self.w.bits |= ((value as u32) & 0x01) << 7;
self.w
}
}
#[doc = r"Value of the field"]
pub struct FSC8R {
bits: bool,
}
impl FSC8R {
#[doc = r"Value of the field as raw bits"]
#[inline(always)]
pub fn bit(&self) -> bool {
self.bits
}
#[doc = r"Returns `true` if the bit is clear (0)"]
#[inline(always)]
pub fn bit_is_clear(&self) -> bool {
!self.bit()
}
#[doc = r"Returns `true` if the bit is set (1)"]
#[inline(always)]
pub fn bit_is_set(&self) -> bool {
self.bit()
}
}
#[doc = r"Proxy"]
pub struct _FSC8W<'a> {
w: &'a mut W,
}
impl<'a> _FSC8W<'a> {
#[doc = r"Sets the field bit"]
#[inline(always)]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r"Clears the field bit"]
#[inline(always)]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub fn bit(self, value: bool) -> &'a mut W {
self.w.bits &= !(0x01 << 8);
self.w.bits |= ((value as u32) & 0x01) << 8;
self.w
}
}
#[doc = r"Value of the field"]
pub struct FSC9R {
bits: bool,
}
impl FSC9R {
#[doc = r"Value of the field as raw bits"]
#[inline(always)]
pub fn bit(&self) -> bool {
self.bits
}
#[doc = r"Returns `true` if the bit is clear (0)"]
#[inline(always)]
pub fn bit_is_clear(&self) -> bool {
!self.bit()
}
#[doc = r"Returns `true` if the bit is set (1)"]
#[inline(always)]
pub fn bit_is_set(&self) -> bool {
self.bit()
}
}
#[doc = r"Proxy"]
pub struct _FSC9W<'a> {
w: &'a mut W,
}
impl<'a> _FSC9W<'a> {
#[doc = r"Sets the field bit"]
#[inline(always)]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r"Clears the field bit"]
#[inline(always)]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub fn bit(self, value: bool) -> &'a mut W {
self.w.bits &= !(0x01 << 9);
self.w.bits |= ((value as u32) & 0x01) << 9;
self.w
}
}
#[doc = r"Value of the field"]
pub struct FSC10R {
bits: bool,
}
impl FSC10R {
#[doc = r"Value of the field as raw bits"]
#[inline(always)]
pub fn bit(&self) -> bool {
self.bits
}
#[doc = r"Returns `true` if the bit is clear (0)"]
#[inline(always)]
pub fn bit_is_clear(&self) -> bool {
!self.bit()
}
#[doc = r"Returns `true` if the bit is set (1)"]
#[inline(always)]
pub fn bit_is_set(&self) -> bool {
self.bit()
}
}
#[doc = r"Proxy"]
pub struct _FSC10W<'a> {
w: &'a mut W,
}
impl<'a> _FSC10W<'a> {
#[doc = r"Sets the field bit"]
#[inline(always)]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r"Clears the field bit"]
#[inline(always)]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub fn bit(self, value: bool) -> &'a mut W {
self.w.bits &= !(0x01 << 10);
self.w.bits |= ((value as u32) & 0x01) << 10;
self.w
}
}
#[doc = r"Value of the field"]
pub struct FSC11R {
bits: bool,
}
impl FSC11R {
#[doc = r"Value of the field as raw bits"]
#[inline(always)]
pub fn bit(&self) -> bool {
self.bits
}
#[doc = r"Returns `true` if the bit is clear (0)"]
#[inline(always)]
pub fn bit_is_clear(&self) -> bool {
!self.bit()
}
#[doc = r"Returns `true` if the bit is set (1)"]
#[inline(always)]
pub fn bit_is_set(&self) -> bool {
self.bit()
}
}
#[doc = r"Proxy"]
pub struct _FSC11W<'a> {
w: &'a mut W,
}
impl<'a> _FSC11W<'a> {
#[doc = r"Sets the field bit"]
#[inline(always)]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r"Clears the field bit"]
#[inline(always)]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub fn bit(self, value: bool) -> &'a mut W {
self.w.bits &= !(0x01 << 11);
self.w.bits |= ((value as u32) & 0x01) << 11;
self.w
}
}
#[doc = r"Value of the field"]
pub struct FSC12R {
bits: bool,
}
impl FSC12R {
#[doc = r"Value of the field as raw bits"]
#[inline(always)]
pub fn bit(&self) -> bool {
self.bits
}
#[doc = r"Returns `true` if the bit is clear (0)"]
#[inline(always)]
pub fn bit_is_clear(&self) -> bool {
!self.bit()
}
#[doc = r"Returns `true` if the bit is set (1)"]
#[inline(always)]
pub fn bit_is_set(&self) -> bool {
self.bit()
}
}
#[doc = r"Proxy"]
pub struct _FSC12W<'a> {
w: &'a mut W,
}
impl<'a> _FSC12W<'a> {
#[doc = r"Sets the field bit"]
#[inline(always)]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r"Clears the field bit"]
#[inline(always)]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub fn bit(self, value: bool) -> &'a mut W {
self.w.bits &= !(0x01 << 12);
self.w.bits |= ((value as u32) & 0x01) << 12;
self.w
}
}
#[doc = r"Value of the field"]
pub struct FSC13R {
bits: bool,
}
impl FSC13R {
#[doc = r"Value of the field as raw bits"]
#[inline(always)]
pub fn bit(&self) -> bool {
self.bits
}
#[doc = r"Returns `true` if the bit is clear (0)"]
#[inline(always)]
pub fn bit_is_clear(&self) -> bool {
!self.bit()
}
#[doc = r"Returns `true` if the bit is set (1)"]
#[inline(always)]
pub fn bit_is_set(&self) -> bool {
self.bit()
}
}
#[doc = r"Proxy"]
pub struct _FSC13W<'a> {
w: &'a mut W,
}
impl<'a> _FSC13W<'a> {
#[doc = r"Sets the field bit"]
#[inline(always)]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r"Clears the field bit"]
#[inline(always)]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub fn bit(self, value: bool) -> &'a mut W {
self.w.bits &= !(0x01 << 13);
self.w.bits |= ((value as u32) & 0x01) << 13;
self.w
}
}
#[doc = r"Value of the field"]
pub struct FSC14R {
bits: bool,
}
impl FSC14R {
#[doc = r"Value of the field as raw bits"]
#[inline(always)]
pub fn bit(&self) -> bool {
self.bits
}
#[doc = r"Returns `true` if the bit is clear (0)"]
#[inline(always)]
pub fn bit_is_clear(&self) -> bool {
!self.bit()
}
#[doc = r"Returns `true` if the bit is set (1)"]
#[inline(always)]
pub fn bit_is_set(&self) -> bool {
self.bit()
}
}
#[doc = r"Proxy"]
pub struct _FSC14W<'a> {
w: &'a mut W,
}
impl<'a> _FSC14W<'a> {
#[doc = r"Sets the field bit"]
#[inline(always)]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r"Clears the field bit"]
#[inline(always)]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub fn bit(self, value: bool) -> &'a mut W {
self.w.bits &= !(0x01 << 14);
self.w.bits |= ((value as u32) & 0x01) << 14;
self.w
}
}
#[doc = r"Value of the field"]
pub struct FSC15R {
bits: bool,
}
impl FSC15R {
#[doc = r"Value of the field as raw bits"]
#[inline(always)]
pub fn bit(&self) -> bool {
self.bits
}
#[doc = r"Returns `true` if the bit is clear (0)"]
#[inline(always)]
pub fn bit_is_clear(&self) -> bool {
!self.bit()
}
#[doc = r"Returns `true` if the bit is set (1)"]
#[inline(always)]
pub fn bit_is_set(&self) -> bool {
self.bit()
}
}
#[doc = r"Proxy"]
pub struct _FSC15W<'a> {
w: &'a mut W,
}
impl<'a> _FSC15W<'a> {
#[doc = r"Sets the field bit"]
#[inline(always)]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r"Clears the field bit"]
#[inline(always)]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub fn bit(self, value: bool) -> &'a mut W {
self.w.bits &= !(0x01 << 15);
self.w.bits |= ((value as u32) & 0x01) << 15;
self.w
}
}
#[doc = r"Value of the field"]
pub struct FSC16R {
bits: bool,
}
impl FSC16R {
#[doc = r"Value of the field as raw bits"]
#[inline(always)]
pub fn bit(&self) -> bool {
self.bits
}
#[doc = r"Returns `true` if the bit is clear (0)"]
#[inline(always)]
pub fn bit_is_clear(&self) -> bool {
!self.bit()
}
#[doc = r"Returns `true` if the bit is set (1)"]
#[inline(always)]
pub fn bit_is_set(&self) -> bool {
self.bit()
}
}
#[doc = r"Proxy"]
pub struct _FSC16W<'a> {
w: &'a mut W,
}
impl<'a> _FSC16W<'a> {
#[doc = r"Sets the field bit"]
#[inline(always)]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r"Clears the field bit"]
#[inline(always)]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub fn bit(self, value: bool) -> &'a mut W {
self.w.bits &= !(0x01 << 16);
self.w.bits |= ((value as u32) & 0x01) << 16;
self.w
}
}
#[doc = r"Value of the field"]
pub struct FSC17R {
bits: bool,
}
impl FSC17R {
#[doc = r"Value of the field as raw bits"]
#[inline(always)]
pub fn bit(&self) -> bool {
self.bits
}
#[doc = r"Returns `true` if the bit is clear (0)"]
#[inline(always)]
pub fn bit_is_clear(&self) -> bool {
!self.bit()
}
#[doc = r"Returns `true` if the bit is set (1)"]
#[inline(always)]
pub fn bit_is_set(&self) -> bool {
self.bit()
}
}
#[doc = r"Proxy"]
pub struct _FSC17W<'a> {
w: &'a mut W,
}
impl<'a> _FSC17W<'a> {
#[doc = r"Sets the field bit"]
#[inline(always)]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r"Clears the field bit"]
#[inline(always)]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub fn bit(self, value: bool) -> &'a mut W {
self.w.bits &= !(0x01 << 17);
self.w.bits |= ((value as u32) & 0x01) << 17;
self.w
}
}
#[doc = r"Value of the field"]
pub struct FSC18R {
bits: bool,
}
impl FSC18R {
#[doc = r"Value of the field as raw bits"]
#[inline(always)]
pub fn bit(&self) -> bool {
self.bits
}
#[doc = r"Returns `true` if the bit is clear (0)"]
#[inline(always)]
pub fn bit_is_clear(&self) -> bool {
!self.bit()
}
#[doc = r"Returns `true` if the bit is set (1)"]
#[inline(always)]
pub fn bit_is_set(&self) -> bool {
self.bit()
}
}
#[doc = r"Proxy"]
pub struct _FSC18W<'a> {
w: &'a mut W,
}
impl<'a> _FSC18W<'a> {
#[doc = r"Sets the field bit"]
#[inline(always)]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r"Clears the field bit"]
#[inline(always)]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub fn bit(self, value: bool) -> &'a mut W {
self.w.bits &= !(0x01 << 18);
self.w.bits |= ((value as u32) & 0x01) << 18;
self.w
}
}
#[doc = r"Value of the field"]
pub struct FSC19R {
bits: bool,
}
impl FSC19R {
#[doc = r"Value of the field as raw bits"]
#[inline(always)]
pub fn bit(&self) -> bool {
self.bits
}
#[doc = r"Returns `true` if the bit is clear (0)"]
#[inline(always)]
pub fn bit_is_clear(&self) -> bool {
!self.bit()
}
#[doc = r"Returns `true` if the bit is set (1)"]
#[inline(always)]
pub fn bit_is_set(&self) -> bool {
self.bit()
}
}
#[doc = r"Proxy"]
pub struct _FSC19W<'a> {
w: &'a mut W,
}
impl<'a> _FSC19W<'a> {
#[doc = r"Sets the field bit"]
#[inline(always)]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r"Clears the field bit"]
#[inline(always)]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub fn bit(self, value: bool) -> &'a mut W {
self.w.bits &= !(0x01 << 19);
self.w.bits |= ((value as u32) & 0x01) << 19;
self.w
}
}
#[doc = r"Value of the field"]
pub struct FSC20R {
bits: bool,
}
impl FSC20R {
#[doc = r"Value of the field as raw bits"]
#[inline(always)]
pub fn bit(&self) -> bool {
self.bits
}
#[doc = r"Returns `true` if the bit is clear (0)"]
#[inline(always)]
pub fn bit_is_clear(&self) -> bool {
!self.bit()
}
#[doc = r"Returns `true` if the bit is set (1)"]
#[inline(always)]
pub fn bit_is_set(&self) -> bool {
self.bit()
}
}
#[doc = r"Proxy"]
pub struct _FSC20W<'a> {
w: &'a mut W,
}
impl<'a> _FSC20W<'a> {
#[doc = r"Sets the field bit"]
#[inline(always)]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r"Clears the field bit"]
#[inline(always)]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub fn bit(self, value: bool) -> &'a mut W {
self.w.bits &= !(0x01 << 20);
self.w.bits |= ((value as u32) & 0x01) << 20;
self.w
}
}
#[doc = r"Value of the field"]
pub struct FSC21R {
bits: bool,
}
impl FSC21R {
#[doc = r"Value of the field as raw bits"]
#[inline(always)]
pub fn bit(&self) -> bool {
self.bits
}
#[doc = r"Returns `true` if the bit is clear (0)"]
#[inline(always)]
pub fn bit_is_clear(&self) -> bool {
!self.bit()
}
#[doc = r"Returns `true` if the bit is set (1)"]
#[inline(always)]
pub fn bit_is_set(&self) -> bool {
self.bit()
}
}
#[doc = r"Proxy"]
pub struct _FSC21W<'a> {
w: &'a mut W,
}
impl<'a> _FSC21W<'a> {
#[doc = r"Sets the field bit"]
#[inline(always)]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r"Clears the field bit"]
#[inline(always)]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub fn bit(self, value: bool) -> &'a mut W {
self.w.bits &= !(0x01 << 21);
self.w.bits |= ((value as u32) & 0x01) << 21;
self.w
}
}
#[doc = r"Value of the field"]
pub struct FSC22R {
bits: bool,
}
impl FSC22R {
#[doc = r"Value of the field as raw bits"]
#[inline(always)]
pub fn bit(&self) -> bool {
self.bits
}
#[doc = r"Returns `true` if the bit is clear (0)"]
#[inline(always)]
pub fn bit_is_clear(&self) -> bool {
!self.bit()
}
#[doc = r"Returns `true` if the bit is set (1)"]
#[inline(always)]
pub fn bit_is_set(&self) -> bool {
self.bit()
}
}
#[doc = r"Proxy"]
pub struct _FSC22W<'a> {
w: &'a mut W,
}
impl<'a> _FSC22W<'a> {
#[doc = r"Sets the field bit"]
#[inline(always)]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r"Clears the field bit"]
#[inline(always)]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub fn bit(self, value: bool) -> &'a mut W {
self.w.bits &= !(0x01 << 22);
self.w.bits |= ((value as u32) & 0x01) << 22;
self.w
}
}
#[doc = r"Value of the field"]
pub struct FSC23R {
bits: bool,
}
impl FSC23R {
#[doc = r"Value of the field as raw bits"]
#[inline(always)]
pub fn bit(&self) -> bool {
self.bits
}
#[doc = r"Returns `true` if the bit is clear (0)"]
#[inline(always)]
pub fn bit_is_clear(&self) -> bool {
!self.bit()
}
#[doc = r"Returns `true` if the bit is set (1)"]
#[inline(always)]
pub fn bit_is_set(&self) -> bool {
self.bit()
}
}
#[doc = r"Proxy"]
pub struct _FSC23W<'a> {
w: &'a mut W,
}
impl<'a> _FSC23W<'a> {
#[doc = r"Sets the field bit"]
#[inline(always)]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r"Clears the field bit"]
#[inline(always)]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub fn bit(self, value: bool) -> &'a mut W {
self.w.bits &= !(0x01 << 23);
self.w.bits |= ((value as u32) & 0x01) << 23;
self.w
}
}
#[doc = r"Value of the field"]
pub struct FSC24R {
bits: bool,
}
impl FSC24R {
#[doc = r"Value of the field as raw bits"]
#[inline(always)]
pub fn bit(&self) -> bool {
self.bits
}
#[doc = r"Returns `true` if the bit is clear (0)"]
#[inline(always)]
pub fn bit_is_clear(&self) -> bool {
!self.bit()
}
#[doc = r"Returns `true` if the bit is set (1)"]
#[inline(always)]
pub fn bit_is_set(&self) -> bool {
self.bit()
}
}
#[doc = r"Proxy"]
pub struct _FSC24W<'a> {
w: &'a mut W,
}
impl<'a> _FSC24W<'a> {
#[doc = r"Sets the field bit"]
#[inline(always)]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r"Clears the field bit"]
#[inline(always)]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub fn bit(self, value: bool) -> &'a mut W {
self.w.bits &= !(0x01 << 24);
self.w.bits |= ((value as u32) & 0x01) << 24;
self.w
}
}
#[doc = r"Value of the field"]
pub struct FSC25R {
bits: bool,
}
impl FSC25R {
#[doc = r"Value of the field as raw bits"]
#[inline(always)]
pub fn bit(&self) -> bool {
self.bits
}
#[doc = r"Returns `true` if the bit is clear (0)"]
#[inline(always)]
pub fn bit_is_clear(&self) -> bool {
!self.bit()
}
#[doc = r"Returns `true` if the bit is set (1)"]
#[inline(always)]
pub fn bit_is_set(&self) -> bool {
self.bit()
}
}
#[doc = r"Proxy"]
pub struct _FSC25W<'a> {
w: &'a mut W,
}
impl<'a> _FSC25W<'a> {
#[doc = r"Sets the field bit"]
#[inline(always)]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r"Clears the field bit"]
#[inline(always)]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub fn bit(self, value: bool) -> &'a mut W {
self.w.bits &= !(0x01 << 25);
self.w.bits |= ((value as u32) & 0x01) << 25;
self.w
}
}
#[doc = r"Value of the field"]
pub struct FSC26R {
bits: bool,
}
impl FSC26R {
#[doc = r"Value of the field as raw bits"]
#[inline(always)]
pub fn bit(&self) -> bool {
self.bits
}
#[doc = r"Returns `true` if the bit is clear (0)"]
#[inline(always)]
pub fn bit_is_clear(&self) -> bool {
!self.bit()
}
#[doc = r"Returns `true` if the bit is set (1)"]
#[inline(always)]
pub fn bit_is_set(&self) -> bool {
self.bit()
}
}
#[doc = r"Proxy"]
pub struct _FSC26W<'a> {
w: &'a mut W,
}
impl<'a> _FSC26W<'a> {
#[doc = r"Sets the field bit"]
#[inline(always)]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r"Clears the field bit"]
#[inline(always)]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub fn bit(self, value: bool) -> &'a mut W {
self.w.bits &= !(0x01 << 26);
self.w.bits |= ((value as u32) & 0x01) << 26;
self.w
}
}
#[doc = r"Value of the field"]
pub struct FSC27R {
bits: bool,
}
impl FSC27R {
#[doc = r"Value of the field as raw bits"]
#[inline(always)]
pub fn bit(&self) -> bool {
self.bits
}
#[doc = r"Returns `true` if the bit is clear (0)"]
#[inline(always)]
pub fn bit_is_clear(&self) -> bool {
!self.bit()
}
#[doc = r"Returns `true` if the bit is set (1)"]
#[inline(always)]
pub fn bit_is_set(&self) -> bool {
self.bit()
}
}
#[doc = r"Proxy"]
pub struct _FSC27W<'a> {
w: &'a mut W,
}
impl<'a> _FSC27W<'a> {
#[doc = r"Sets the field bit"]
#[inline(always)]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r"Clears the field bit"]
#[inline(always)]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub fn bit(self, value: bool) -> &'a mut W {
self.w.bits &= !(0x01 << 27);
self.w.bits |= ((value as u32) & 0x01) << 27;
self.w
}
}
impl R {
#[doc = r"Value of the register as raw bits"]
#[inline(always)]
pub fn bits(&self) -> u32 {
self.bits
}
#[doc = "Bit 0 - Filter scale configuration"]
#[inline(always)]
pub fn fsc0(&self) -> FSC0R {
let bits = ((self.bits >> 0) & 0x01) != 0;
FSC0R { bits }
}
#[doc = "Bit 1 - Filter scale configuration"]
#[inline(always)]
pub fn fsc1(&self) -> FSC1R {
let bits = ((self.bits >> 1) & 0x01) != 0;
FSC1R { bits }
}
#[doc = "Bit 2 - Filter scale configuration"]
#[inline(always)]
pub fn fsc2(&self) -> FSC2R {
let bits = ((self.bits >> 2) & 0x01) != 0;
FSC2R { bits }
}
#[doc = "Bit 3 - Filter scale configuration"]
#[inline(always)]
pub fn fsc3(&self) -> FSC3R {
let bits = ((self.bits >> 3) & 0x01) != 0;
FSC3R { bits }
}
#[doc = "Bit 4 - Filter scale configuration"]
#[inline(always)]
pub fn fsc4(&self) -> FSC4R {
let bits = ((self.bits >> 4) & 0x01) != 0;
FSC4R { bits }
}
#[doc = "Bit 5 - Filter scale configuration"]
#[inline(always)]
pub fn fsc5(&self) -> FSC5R {
let bits = ((self.bits >> 5) & 0x01) != 0;
FSC5R { bits }
}
#[doc = "Bit 6 - Filter scale configuration"]
#[inline(always)]
pub fn fsc6(&self) -> FSC6R {
let bits = ((self.bits >> 6) & 0x01) != 0;
FSC6R { bits }
}
#[doc = "Bit 7 - Filter scale configuration"]
#[inline(always)]
pub fn fsc7(&self) -> FSC7R {
let bits = ((self.bits >> 7) & 0x01) != 0;
FSC7R { bits }
}
#[doc = "Bit 8 - Filter scale configuration"]
#[inline(always)]
pub fn fsc8(&self) -> FSC8R {
let bits = ((self.bits >> 8) & 0x01) != 0;
FSC8R { bits }
}
#[doc = "Bit 9 - Filter scale configuration"]
#[inline(always)]
pub fn fsc9(&self) -> FSC9R {
let bits = ((self.bits >> 9) & 0x01) != 0;
FSC9R { bits }
}
#[doc = "Bit 10 - Filter scale configuration"]
#[inline(always)]
pub fn fsc10(&self) -> FSC10R {
let bits = ((self.bits >> 10) & 0x01) != 0;
FSC10R { bits }
}
#[doc = "Bit 11 - Filter scale configuration"]
#[inline(always)]
pub fn fsc11(&self) -> FSC11R {
let bits = ((self.bits >> 11) & 0x01) != 0;
FSC11R { bits }
}
#[doc = "Bit 12 - Filter scale configuration"]
#[inline(always)]
pub fn fsc12(&self) -> FSC12R {
let bits = ((self.bits >> 12) & 0x01) != 0;
FSC12R { bits }
}
#[doc = "Bit 13 - Filter scale configuration"]
#[inline(always)]
pub fn fsc13(&self) -> FSC13R {
let bits = ((self.bits >> 13) & 0x01) != 0;
FSC13R { bits }
}
#[doc = "Bit 14 - Filter scale configuration"]
#[inline(always)]
pub fn fsc14(&self) -> FSC14R {
let bits = ((self.bits >> 14) & 0x01) != 0;
FSC14R { bits }
}
#[doc = "Bit 15 - Filter scale configuration"]
#[inline(always)]
pub fn fsc15(&self) -> FSC15R {
let bits = ((self.bits >> 15) & 0x01) != 0;
FSC15R { bits }
}
#[doc = "Bit 16 - Filter scale configuration"]
#[inline(always)]
pub fn fsc16(&self) -> FSC16R {
let bits = ((self.bits >> 16) & 0x01) != 0;
FSC16R { bits }
}
#[doc = "Bit 17 - Filter scale configuration"]
#[inline(always)]
pub fn fsc17(&self) -> FSC17R {
let bits = ((self.bits >> 17) & 0x01) != 0;
FSC17R { bits }
}
#[doc = "Bit 18 - Filter scale configuration"]
#[inline(always)]
pub fn fsc18(&self) -> FSC18R {
let bits = ((self.bits >> 18) & 0x01) != 0;
FSC18R { bits }
}
#[doc = "Bit 19 - Filter scale configuration"]
#[inline(always)]
pub fn fsc19(&self) -> FSC19R {
let bits = ((self.bits >> 19) & 0x01) != 0;
FSC19R { bits }
}
#[doc = "Bit 20 - Filter scale configuration"]
#[inline(always)]
pub fn fsc20(&self) -> FSC20R {
let bits = ((self.bits >> 20) & 0x01) != 0;
FSC20R { bits }
}
#[doc = "Bit 21 - Filter scale configuration"]
#[inline(always)]
pub fn fsc21(&self) -> FSC21R {
let bits = ((self.bits >> 21) & 0x01) != 0;
FSC21R { bits }
}
#[doc = "Bit 22 - Filter scale configuration"]
#[inline(always)]
pub fn fsc22(&self) -> FSC22R {
let bits = ((self.bits >> 22) & 0x01) != 0;
FSC22R { bits }
}
#[doc = "Bit 23 - Filter scale configuration"]
#[inline(always)]
pub fn fsc23(&self) -> FSC23R {
let bits = ((self.bits >> 23) & 0x01) != 0;
FSC23R { bits }
}
#[doc = "Bit 24 - Filter scale configuration"]
#[inline(always)]
pub fn fsc24(&self) -> FSC24R {
let bits = ((self.bits >> 24) & 0x01) != 0;
FSC24R { bits }
}
#[doc = "Bit 25 - Filter scale configuration"]
#[inline(always)]
pub fn fsc25(&self) -> FSC25R {
let bits = ((self.bits >> 25) & 0x01) != 0;
FSC25R { bits }
}
#[doc = "Bit 26 - Filter scale configuration"]
#[inline(always)]
pub fn fsc26(&self) -> FSC26R {
let bits = ((self.bits >> 26) & 0x01) != 0;
FSC26R { bits }
}
#[doc = "Bit 27 - Filter scale configuration"]
#[inline(always)]
pub fn fsc27(&self) -> FSC27R {
let bits = ((self.bits >> 27) & 0x01) != 0;
FSC27R { bits }
}
}
impl W {
#[doc = r"Writes raw bits to the register"]
#[inline(always)]
pub unsafe fn bits(&mut self, bits: u32) -> &mut Self {
self.bits = bits;
self
}
#[doc = "Bit 0 - Filter scale configuration"]
#[inline(always)]
pub fn fsc0(&mut self) -> _FSC0W {
_FSC0W { w: self }
}
#[doc = "Bit 1 - Filter scale configuration"]
#[inline(always)]
pub fn fsc1(&mut self) -> _FSC1W {
_FSC1W { w: self }
}
#[doc = "Bit 2 - Filter scale configuration"]
#[inline(always)]
pub fn fsc2(&mut self) -> _FSC2W {
_FSC2W { w: self }
}
#[doc = "Bit 3 - Filter scale configuration"]
#[inline(always)]
pub fn fsc3(&mut self) -> _FSC3W {
_FSC3W { w: self }
}
#[doc = "Bit 4 - Filter scale configuration"]
#[inline(always)]
pub fn fsc4(&mut self) -> _FSC4W {
_FSC4W { w: self }
}
#[doc = "Bit 5 - Filter scale configuration"]
#[inline(always)]
pub fn fsc5(&mut self) -> _FSC5W {
_FSC5W { w: self }
}
#[doc = "Bit 6 - Filter scale configuration"]
#[inline(always)]
pub fn fsc6(&mut self) -> _FSC6W {
_FSC6W { w: self }
}
#[doc = "Bit 7 - Filter scale configuration"]
#[inline(always)]
pub fn fsc7(&mut self) -> _FSC7W {
_FSC7W { w: self }
}
#[doc = "Bit 8 - Filter scale configuration"]
#[inline(always)]
pub fn fsc8(&mut self) -> _FSC8W {
_FSC8W { w: self }
}
#[doc = "Bit 9 - Filter scale configuration"]
#[inline(always)]
pub fn fsc9(&mut self) -> _FSC9W {
_FSC9W { w: self }
}
#[doc = "Bit 10 - Filter scale configuration"]
#[inline(always)]
pub fn fsc10(&mut self) -> _FSC10W {
_FSC10W { w: self }
}
#[doc = "Bit 11 - Filter scale configuration"]
#[inline(always)]
pub fn fsc11(&mut self) -> _FSC11W {
_FSC11W { w: self }
}
#[doc = "Bit 12 - Filter scale configuration"]
#[inline(always)]
pub fn fsc12(&mut self) -> _FSC12W {
_FSC12W { w: self }
}
#[doc = "Bit 13 - Filter scale configuration"]
#[inline(always)]
pub fn fsc13(&mut self) -> _FSC13W {
_FSC13W { w: self }
}
#[doc = "Bit 14 - Filter scale configuration"]
#[inline(always)]
pub fn fsc14(&mut self) -> _FSC14W {
_FSC14W { w: self }
}
#[doc = "Bit 15 - Filter scale configuration"]
#[inline(always)]
pub fn fsc15(&mut self) -> _FSC15W {
_FSC15W { w: self }
}
#[doc = "Bit 16 - Filter scale configuration"]
#[inline(always)]
pub fn fsc16(&mut self) -> _FSC16W {
_FSC16W { w: self }
}
#[doc = "Bit 17 - Filter scale configuration"]
#[inline(always)]
pub fn fsc17(&mut self) -> _FSC17W {
_FSC17W { w: self }
}
#[doc = "Bit 18 - Filter scale configuration"]
#[inline(always)]
pub fn fsc18(&mut self) -> _FSC18W {
_FSC18W { w: self }
}
#[doc = "Bit 19 - Filter scale configuration"]
#[inline(always)]
pub fn fsc19(&mut self) -> _FSC19W {
_FSC19W { w: self }
}
#[doc = "Bit 20 - Filter scale configuration"]
#[inline(always)]
pub fn fsc20(&mut self) -> _FSC20W {
_FSC20W { w: self }
}
#[doc = "Bit 21 - Filter scale configuration"]
#[inline(always)]
pub fn fsc21(&mut self) -> _FSC21W {
_FSC21W { w: self }
}
#[doc = "Bit 22 - Filter scale configuration"]
#[inline(always)]
pub fn fsc22(&mut self) -> _FSC22W {
_FSC22W { w: self }
}
#[doc = "Bit 23 - Filter scale configuration"]
#[inline(always)]
pub fn fsc23(&mut self) -> _FSC23W {
_FSC23W { w: self }
}
#[doc = "Bit 24 - Filter scale configuration"]
#[inline(always)]
pub fn fsc24(&mut self) -> _FSC24W {
_FSC24W { w: self }
}
#[doc = "Bit 25 - Filter scale configuration"]
#[inline(always)]
pub fn fsc25(&mut self) -> _FSC25W {
_FSC25W { w: self }
}
#[doc = "Bit 26 - Filter scale configuration"]
#[inline(always)]
pub fn fsc26(&mut self) -> _FSC26W {
_FSC26W { w: self }
}
#[doc = "Bit 27 - Filter scale configuration"]
#[inline(always)]
pub fn fsc27(&mut self) -> _FSC27W {
_FSC27W { w: self }
}
}