#[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::TRIGCTRL {
#[doc = r" Modifies the contents of the register"]
#[inline]
pub fn modify<F>(&self, f: F)
where
for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W,
{
let bits = self.register.get();
let r = R { bits: bits };
let mut w = W { bits: bits };
f(&r, &mut w);
self.register.set(w.bits);
}
#[doc = r" Reads the contents of the register"]
#[inline]
pub fn read(&self) -> R {
R { bits: self.register.get() }
}
#[doc = r" Writes to the register"]
#[inline]
pub fn write<F>(&self, f: F)
where
F: FnOnce(&mut W) -> &mut W,
{
let mut w = W::reset_value();
f(&mut w);
self.register.set(w.bits);
}
#[doc = r" Writes the reset value to the register"]
#[inline]
pub fn reset(&self) {
self.write(|w| w)
}
}
#[doc = r" Value of the field"]
pub struct RXTENR {
bits: bool,
}
impl RXTENR {
#[doc = r" Value of the field as raw bits"]
#[inline]
pub fn bit(&self) -> bool {
self.bits
}
#[doc = r" Returns `true` if the bit is clear (0)"]
#[inline]
pub fn bit_is_clear(&self) -> bool {
!self.bit()
}
#[doc = r" Returns `true` if the bit is set (1)"]
#[inline]
pub fn bit_is_set(&self) -> bool {
self.bit()
}
}
#[doc = r" Value of the field"]
pub struct TXTENR {
bits: bool,
}
impl TXTENR {
#[doc = r" Value of the field as raw bits"]
#[inline]
pub fn bit(&self) -> bool {
self.bits
}
#[doc = r" Returns `true` if the bit is clear (0)"]
#[inline]
pub fn bit_is_clear(&self) -> bool {
!self.bit()
}
#[doc = r" Returns `true` if the bit is set (1)"]
#[inline]
pub fn bit_is_set(&self) -> bool {
self.bit()
}
}
#[doc = r" Value of the field"]
pub struct AUTOTXTENR {
bits: bool,
}
impl AUTOTXTENR {
#[doc = r" Value of the field as raw bits"]
#[inline]
pub fn bit(&self) -> bool {
self.bits
}
#[doc = r" Returns `true` if the bit is clear (0)"]
#[inline]
pub fn bit_is_clear(&self) -> bool {
!self.bit()
}
#[doc = r" Returns `true` if the bit is set (1)"]
#[inline]
pub fn bit_is_set(&self) -> bool {
self.bit()
}
}
#[doc = r" Value of the field"]
pub struct TXARX0ENR {
bits: bool,
}
impl TXARX0ENR {
#[doc = r" Value of the field as raw bits"]
#[inline]
pub fn bit(&self) -> bool {
self.bits
}
#[doc = r" Returns `true` if the bit is clear (0)"]
#[inline]
pub fn bit_is_clear(&self) -> bool {
!self.bit()
}
#[doc = r" Returns `true` if the bit is set (1)"]
#[inline]
pub fn bit_is_set(&self) -> bool {
self.bit()
}
}
#[doc = r" Value of the field"]
pub struct TXARX1ENR {
bits: bool,
}
impl TXARX1ENR {
#[doc = r" Value of the field as raw bits"]
#[inline]
pub fn bit(&self) -> bool {
self.bits
}
#[doc = r" Returns `true` if the bit is clear (0)"]
#[inline]
pub fn bit_is_clear(&self) -> bool {
!self.bit()
}
#[doc = r" Returns `true` if the bit is set (1)"]
#[inline]
pub fn bit_is_set(&self) -> bool {
self.bit()
}
}
#[doc = r" Value of the field"]
pub struct TXARX2ENR {
bits: bool,
}
impl TXARX2ENR {
#[doc = r" Value of the field as raw bits"]
#[inline]
pub fn bit(&self) -> bool {
self.bits
}
#[doc = r" Returns `true` if the bit is clear (0)"]
#[inline]
pub fn bit_is_clear(&self) -> bool {
!self.bit()
}
#[doc = r" Returns `true` if the bit is set (1)"]
#[inline]
pub fn bit_is_set(&self) -> bool {
self.bit()
}
}
#[doc = r" Value of the field"]
pub struct RXATX0ENR {
bits: bool,
}
impl RXATX0ENR {
#[doc = r" Value of the field as raw bits"]
#[inline]
pub fn bit(&self) -> bool {
self.bits
}
#[doc = r" Returns `true` if the bit is clear (0)"]
#[inline]
pub fn bit_is_clear(&self) -> bool {
!self.bit()
}
#[doc = r" Returns `true` if the bit is set (1)"]
#[inline]
pub fn bit_is_set(&self) -> bool {
self.bit()
}
}
#[doc = r" Value of the field"]
pub struct RXATX1ENR {
bits: bool,
}
impl RXATX1ENR {
#[doc = r" Value of the field as raw bits"]
#[inline]
pub fn bit(&self) -> bool {
self.bits
}
#[doc = r" Returns `true` if the bit is clear (0)"]
#[inline]
pub fn bit_is_clear(&self) -> bool {
!self.bit()
}
#[doc = r" Returns `true` if the bit is set (1)"]
#[inline]
pub fn bit_is_set(&self) -> bool {
self.bit()
}
}
#[doc = r" Value of the field"]
pub struct RXATX2ENR {
bits: bool,
}
impl RXATX2ENR {
#[doc = r" Value of the field as raw bits"]
#[inline]
pub fn bit(&self) -> bool {
self.bits
}
#[doc = r" Returns `true` if the bit is clear (0)"]
#[inline]
pub fn bit_is_clear(&self) -> bool {
!self.bit()
}
#[doc = r" Returns `true` if the bit is set (1)"]
#[inline]
pub fn bit_is_set(&self) -> bool {
self.bit()
}
}
#[doc = "Possible values of the field `TSEL`"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum TSELR {
#[doc = "PRS Channel 0 selected"]
PRSCH0,
#[doc = "PRS Channel 1 selected"]
PRSCH1,
#[doc = "PRS Channel 2 selected"]
PRSCH2,
#[doc = "PRS Channel 3 selected"]
PRSCH3,
#[doc = "PRS Channel 4 selected"]
PRSCH4,
#[doc = "PRS Channel 5 selected"]
PRSCH5,
#[doc = "PRS Channel 6 selected"]
PRSCH6,
#[doc = "PRS Channel 7 selected"]
PRSCH7,
#[doc = "PRS Channel 8 selected"]
PRSCH8,
#[doc = "PRS Channel 9 selected"]
PRSCH9,
#[doc = "PRS Channel 10 selected"]
PRSCH10,
#[doc = "PRS Channel 11 selected"]
PRSCH11,
#[doc = "PRS Channel 12 selected"]
PRSCH12,
#[doc = "PRS Channel 13 selected"]
PRSCH13,
#[doc = "PRS Channel 14 selected"]
PRSCH14,
#[doc = "PRS Channel 15 selected"]
PRSCH15,
#[doc = "PRS Channel 16 selected"]
PRSCH16,
#[doc = "PRS Channel 17 selected"]
PRSCH17,
#[doc = "PRS Channel 18 selected"]
PRSCH18,
#[doc = "PRS Channel 19 selected"]
PRSCH19,
#[doc = "PRS Channel 20 selected"]
PRSCH20,
#[doc = "PRS Channel 21 selected"]
PRSCH21,
#[doc = "PRS Channel 22 selected"]
PRSCH22,
#[doc = "PRS Channel 23 selected"]
PRSCH23,
#[doc = r" Reserved"]
_Reserved(u8),
}
impl TSELR {
#[doc = r" Value of the field as raw bits"]
#[inline]
pub fn bits(&self) -> u8 {
match *self {
TSELR::PRSCH0 => 0,
TSELR::PRSCH1 => 1,
TSELR::PRSCH2 => 2,
TSELR::PRSCH3 => 3,
TSELR::PRSCH4 => 4,
TSELR::PRSCH5 => 5,
TSELR::PRSCH6 => 6,
TSELR::PRSCH7 => 7,
TSELR::PRSCH8 => 8,
TSELR::PRSCH9 => 9,
TSELR::PRSCH10 => 10,
TSELR::PRSCH11 => 11,
TSELR::PRSCH12 => 12,
TSELR::PRSCH13 => 13,
TSELR::PRSCH14 => 14,
TSELR::PRSCH15 => 15,
TSELR::PRSCH16 => 16,
TSELR::PRSCH17 => 17,
TSELR::PRSCH18 => 18,
TSELR::PRSCH19 => 19,
TSELR::PRSCH20 => 20,
TSELR::PRSCH21 => 21,
TSELR::PRSCH22 => 22,
TSELR::PRSCH23 => 23,
TSELR::_Reserved(bits) => bits,
}
}
#[allow(missing_docs)]
#[doc(hidden)]
#[inline]
pub fn _from(value: u8) -> TSELR {
match value {
0 => TSELR::PRSCH0,
1 => TSELR::PRSCH1,
2 => TSELR::PRSCH2,
3 => TSELR::PRSCH3,
4 => TSELR::PRSCH4,
5 => TSELR::PRSCH5,
6 => TSELR::PRSCH6,
7 => TSELR::PRSCH7,
8 => TSELR::PRSCH8,
9 => TSELR::PRSCH9,
10 => TSELR::PRSCH10,
11 => TSELR::PRSCH11,
12 => TSELR::PRSCH12,
13 => TSELR::PRSCH13,
14 => TSELR::PRSCH14,
15 => TSELR::PRSCH15,
16 => TSELR::PRSCH16,
17 => TSELR::PRSCH17,
18 => TSELR::PRSCH18,
19 => TSELR::PRSCH19,
20 => TSELR::PRSCH20,
21 => TSELR::PRSCH21,
22 => TSELR::PRSCH22,
23 => TSELR::PRSCH23,
i => TSELR::_Reserved(i),
}
}
#[doc = "Checks if the value of the field is `PRSCH0`"]
#[inline]
pub fn is_prsch0(&self) -> bool {
*self == TSELR::PRSCH0
}
#[doc = "Checks if the value of the field is `PRSCH1`"]
#[inline]
pub fn is_prsch1(&self) -> bool {
*self == TSELR::PRSCH1
}
#[doc = "Checks if the value of the field is `PRSCH2`"]
#[inline]
pub fn is_prsch2(&self) -> bool {
*self == TSELR::PRSCH2
}
#[doc = "Checks if the value of the field is `PRSCH3`"]
#[inline]
pub fn is_prsch3(&self) -> bool {
*self == TSELR::PRSCH3
}
#[doc = "Checks if the value of the field is `PRSCH4`"]
#[inline]
pub fn is_prsch4(&self) -> bool {
*self == TSELR::PRSCH4
}
#[doc = "Checks if the value of the field is `PRSCH5`"]
#[inline]
pub fn is_prsch5(&self) -> bool {
*self == TSELR::PRSCH5
}
#[doc = "Checks if the value of the field is `PRSCH6`"]
#[inline]
pub fn is_prsch6(&self) -> bool {
*self == TSELR::PRSCH6
}
#[doc = "Checks if the value of the field is `PRSCH7`"]
#[inline]
pub fn is_prsch7(&self) -> bool {
*self == TSELR::PRSCH7
}
#[doc = "Checks if the value of the field is `PRSCH8`"]
#[inline]
pub fn is_prsch8(&self) -> bool {
*self == TSELR::PRSCH8
}
#[doc = "Checks if the value of the field is `PRSCH9`"]
#[inline]
pub fn is_prsch9(&self) -> bool {
*self == TSELR::PRSCH9
}
#[doc = "Checks if the value of the field is `PRSCH10`"]
#[inline]
pub fn is_prsch10(&self) -> bool {
*self == TSELR::PRSCH10
}
#[doc = "Checks if the value of the field is `PRSCH11`"]
#[inline]
pub fn is_prsch11(&self) -> bool {
*self == TSELR::PRSCH11
}
#[doc = "Checks if the value of the field is `PRSCH12`"]
#[inline]
pub fn is_prsch12(&self) -> bool {
*self == TSELR::PRSCH12
}
#[doc = "Checks if the value of the field is `PRSCH13`"]
#[inline]
pub fn is_prsch13(&self) -> bool {
*self == TSELR::PRSCH13
}
#[doc = "Checks if the value of the field is `PRSCH14`"]
#[inline]
pub fn is_prsch14(&self) -> bool {
*self == TSELR::PRSCH14
}
#[doc = "Checks if the value of the field is `PRSCH15`"]
#[inline]
pub fn is_prsch15(&self) -> bool {
*self == TSELR::PRSCH15
}
#[doc = "Checks if the value of the field is `PRSCH16`"]
#[inline]
pub fn is_prsch16(&self) -> bool {
*self == TSELR::PRSCH16
}
#[doc = "Checks if the value of the field is `PRSCH17`"]
#[inline]
pub fn is_prsch17(&self) -> bool {
*self == TSELR::PRSCH17
}
#[doc = "Checks if the value of the field is `PRSCH18`"]
#[inline]
pub fn is_prsch18(&self) -> bool {
*self == TSELR::PRSCH18
}
#[doc = "Checks if the value of the field is `PRSCH19`"]
#[inline]
pub fn is_prsch19(&self) -> bool {
*self == TSELR::PRSCH19
}
#[doc = "Checks if the value of the field is `PRSCH20`"]
#[inline]
pub fn is_prsch20(&self) -> bool {
*self == TSELR::PRSCH20
}
#[doc = "Checks if the value of the field is `PRSCH21`"]
#[inline]
pub fn is_prsch21(&self) -> bool {
*self == TSELR::PRSCH21
}
#[doc = "Checks if the value of the field is `PRSCH22`"]
#[inline]
pub fn is_prsch22(&self) -> bool {
*self == TSELR::PRSCH22
}
#[doc = "Checks if the value of the field is `PRSCH23`"]
#[inline]
pub fn is_prsch23(&self) -> bool {
*self == TSELR::PRSCH23
}
}
#[doc = r" Proxy"]
pub struct _RXTENW<'a> {
w: &'a mut W,
}
impl<'a> _RXTENW<'a> {
#[doc = r" Sets the field bit"]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r" Clears the field bit"]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r" Writes raw bits to the field"]
#[inline]
pub fn bit(self, value: bool) -> &'a mut W {
const MASK: bool = true;
const OFFSET: u8 = 4;
self.w.bits &= !((MASK as u32) << OFFSET);
self.w.bits |= ((value & MASK) as u32) << OFFSET;
self.w
}
}
#[doc = r" Proxy"]
pub struct _TXTENW<'a> {
w: &'a mut W,
}
impl<'a> _TXTENW<'a> {
#[doc = r" Sets the field bit"]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r" Clears the field bit"]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r" Writes raw bits to the field"]
#[inline]
pub fn bit(self, value: bool) -> &'a mut W {
const MASK: bool = true;
const OFFSET: u8 = 5;
self.w.bits &= !((MASK as u32) << OFFSET);
self.w.bits |= ((value & MASK) as u32) << OFFSET;
self.w
}
}
#[doc = r" Proxy"]
pub struct _AUTOTXTENW<'a> {
w: &'a mut W,
}
impl<'a> _AUTOTXTENW<'a> {
#[doc = r" Sets the field bit"]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r" Clears the field bit"]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r" Writes raw bits to the field"]
#[inline]
pub fn bit(self, value: bool) -> &'a mut W {
const MASK: bool = true;
const OFFSET: u8 = 6;
self.w.bits &= !((MASK as u32) << OFFSET);
self.w.bits |= ((value & MASK) as u32) << OFFSET;
self.w
}
}
#[doc = r" Proxy"]
pub struct _TXARX0ENW<'a> {
w: &'a mut W,
}
impl<'a> _TXARX0ENW<'a> {
#[doc = r" Sets the field bit"]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r" Clears the field bit"]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r" Writes raw bits to the field"]
#[inline]
pub fn bit(self, value: bool) -> &'a mut W {
const MASK: bool = true;
const OFFSET: u8 = 7;
self.w.bits &= !((MASK as u32) << OFFSET);
self.w.bits |= ((value & MASK) as u32) << OFFSET;
self.w
}
}
#[doc = r" Proxy"]
pub struct _TXARX1ENW<'a> {
w: &'a mut W,
}
impl<'a> _TXARX1ENW<'a> {
#[doc = r" Sets the field bit"]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r" Clears the field bit"]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r" Writes raw bits to the field"]
#[inline]
pub fn bit(self, value: bool) -> &'a mut W {
const MASK: bool = true;
const OFFSET: u8 = 8;
self.w.bits &= !((MASK as u32) << OFFSET);
self.w.bits |= ((value & MASK) as u32) << OFFSET;
self.w
}
}
#[doc = r" Proxy"]
pub struct _TXARX2ENW<'a> {
w: &'a mut W,
}
impl<'a> _TXARX2ENW<'a> {
#[doc = r" Sets the field bit"]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r" Clears the field bit"]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r" Writes raw bits to the field"]
#[inline]
pub fn bit(self, value: bool) -> &'a mut W {
const MASK: bool = true;
const OFFSET: u8 = 9;
self.w.bits &= !((MASK as u32) << OFFSET);
self.w.bits |= ((value & MASK) as u32) << OFFSET;
self.w
}
}
#[doc = r" Proxy"]
pub struct _RXATX0ENW<'a> {
w: &'a mut W,
}
impl<'a> _RXATX0ENW<'a> {
#[doc = r" Sets the field bit"]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r" Clears the field bit"]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r" Writes raw bits to the field"]
#[inline]
pub fn bit(self, value: bool) -> &'a mut W {
const MASK: bool = true;
const OFFSET: u8 = 10;
self.w.bits &= !((MASK as u32) << OFFSET);
self.w.bits |= ((value & MASK) as u32) << OFFSET;
self.w
}
}
#[doc = r" Proxy"]
pub struct _RXATX1ENW<'a> {
w: &'a mut W,
}
impl<'a> _RXATX1ENW<'a> {
#[doc = r" Sets the field bit"]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r" Clears the field bit"]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r" Writes raw bits to the field"]
#[inline]
pub fn bit(self, value: bool) -> &'a mut W {
const MASK: bool = true;
const OFFSET: u8 = 11;
self.w.bits &= !((MASK as u32) << OFFSET);
self.w.bits |= ((value & MASK) as u32) << OFFSET;
self.w
}
}
#[doc = r" Proxy"]
pub struct _RXATX2ENW<'a> {
w: &'a mut W,
}
impl<'a> _RXATX2ENW<'a> {
#[doc = r" Sets the field bit"]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r" Clears the field bit"]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r" Writes raw bits to the field"]
#[inline]
pub fn bit(self, value: bool) -> &'a mut W {
const MASK: bool = true;
const OFFSET: u8 = 12;
self.w.bits &= !((MASK as u32) << OFFSET);
self.w.bits |= ((value & MASK) as u32) << OFFSET;
self.w
}
}
#[doc = "Values that can be written to the field `TSEL`"]
pub enum TSELW {
#[doc = "PRS Channel 0 selected"]
PRSCH0,
#[doc = "PRS Channel 1 selected"]
PRSCH1,
#[doc = "PRS Channel 2 selected"]
PRSCH2,
#[doc = "PRS Channel 3 selected"]
PRSCH3,
#[doc = "PRS Channel 4 selected"]
PRSCH4,
#[doc = "PRS Channel 5 selected"]
PRSCH5,
#[doc = "PRS Channel 6 selected"]
PRSCH6,
#[doc = "PRS Channel 7 selected"]
PRSCH7,
#[doc = "PRS Channel 8 selected"]
PRSCH8,
#[doc = "PRS Channel 9 selected"]
PRSCH9,
#[doc = "PRS Channel 10 selected"]
PRSCH10,
#[doc = "PRS Channel 11 selected"]
PRSCH11,
#[doc = "PRS Channel 12 selected"]
PRSCH12,
#[doc = "PRS Channel 13 selected"]
PRSCH13,
#[doc = "PRS Channel 14 selected"]
PRSCH14,
#[doc = "PRS Channel 15 selected"]
PRSCH15,
#[doc = "PRS Channel 16 selected"]
PRSCH16,
#[doc = "PRS Channel 17 selected"]
PRSCH17,
#[doc = "PRS Channel 18 selected"]
PRSCH18,
#[doc = "PRS Channel 19 selected"]
PRSCH19,
#[doc = "PRS Channel 20 selected"]
PRSCH20,
#[doc = "PRS Channel 21 selected"]
PRSCH21,
#[doc = "PRS Channel 22 selected"]
PRSCH22,
#[doc = "PRS Channel 23 selected"]
PRSCH23,
}
impl TSELW {
#[allow(missing_docs)]
#[doc(hidden)]
#[inline]
pub fn _bits(&self) -> u8 {
match *self {
TSELW::PRSCH0 => 0,
TSELW::PRSCH1 => 1,
TSELW::PRSCH2 => 2,
TSELW::PRSCH3 => 3,
TSELW::PRSCH4 => 4,
TSELW::PRSCH5 => 5,
TSELW::PRSCH6 => 6,
TSELW::PRSCH7 => 7,
TSELW::PRSCH8 => 8,
TSELW::PRSCH9 => 9,
TSELW::PRSCH10 => 10,
TSELW::PRSCH11 => 11,
TSELW::PRSCH12 => 12,
TSELW::PRSCH13 => 13,
TSELW::PRSCH14 => 14,
TSELW::PRSCH15 => 15,
TSELW::PRSCH16 => 16,
TSELW::PRSCH17 => 17,
TSELW::PRSCH18 => 18,
TSELW::PRSCH19 => 19,
TSELW::PRSCH20 => 20,
TSELW::PRSCH21 => 21,
TSELW::PRSCH22 => 22,
TSELW::PRSCH23 => 23,
}
}
}
#[doc = r" Proxy"]
pub struct _TSELW<'a> {
w: &'a mut W,
}
impl<'a> _TSELW<'a> {
#[doc = r" Writes `variant` to the field"]
#[inline]
pub fn variant(self, variant: TSELW) -> &'a mut W {
unsafe { self.bits(variant._bits()) }
}
#[doc = "PRS Channel 0 selected"]
#[inline]
pub fn prsch0(self) -> &'a mut W {
self.variant(TSELW::PRSCH0)
}
#[doc = "PRS Channel 1 selected"]
#[inline]
pub fn prsch1(self) -> &'a mut W {
self.variant(TSELW::PRSCH1)
}
#[doc = "PRS Channel 2 selected"]
#[inline]
pub fn prsch2(self) -> &'a mut W {
self.variant(TSELW::PRSCH2)
}
#[doc = "PRS Channel 3 selected"]
#[inline]
pub fn prsch3(self) -> &'a mut W {
self.variant(TSELW::PRSCH3)
}
#[doc = "PRS Channel 4 selected"]
#[inline]
pub fn prsch4(self) -> &'a mut W {
self.variant(TSELW::PRSCH4)
}
#[doc = "PRS Channel 5 selected"]
#[inline]
pub fn prsch5(self) -> &'a mut W {
self.variant(TSELW::PRSCH5)
}
#[doc = "PRS Channel 6 selected"]
#[inline]
pub fn prsch6(self) -> &'a mut W {
self.variant(TSELW::PRSCH6)
}
#[doc = "PRS Channel 7 selected"]
#[inline]
pub fn prsch7(self) -> &'a mut W {
self.variant(TSELW::PRSCH7)
}
#[doc = "PRS Channel 8 selected"]
#[inline]
pub fn prsch8(self) -> &'a mut W {
self.variant(TSELW::PRSCH8)
}
#[doc = "PRS Channel 9 selected"]
#[inline]
pub fn prsch9(self) -> &'a mut W {
self.variant(TSELW::PRSCH9)
}
#[doc = "PRS Channel 10 selected"]
#[inline]
pub fn prsch10(self) -> &'a mut W {
self.variant(TSELW::PRSCH10)
}
#[doc = "PRS Channel 11 selected"]
#[inline]
pub fn prsch11(self) -> &'a mut W {
self.variant(TSELW::PRSCH11)
}
#[doc = "PRS Channel 12 selected"]
#[inline]
pub fn prsch12(self) -> &'a mut W {
self.variant(TSELW::PRSCH12)
}
#[doc = "PRS Channel 13 selected"]
#[inline]
pub fn prsch13(self) -> &'a mut W {
self.variant(TSELW::PRSCH13)
}
#[doc = "PRS Channel 14 selected"]
#[inline]
pub fn prsch14(self) -> &'a mut W {
self.variant(TSELW::PRSCH14)
}
#[doc = "PRS Channel 15 selected"]
#[inline]
pub fn prsch15(self) -> &'a mut W {
self.variant(TSELW::PRSCH15)
}
#[doc = "PRS Channel 16 selected"]
#[inline]
pub fn prsch16(self) -> &'a mut W {
self.variant(TSELW::PRSCH16)
}
#[doc = "PRS Channel 17 selected"]
#[inline]
pub fn prsch17(self) -> &'a mut W {
self.variant(TSELW::PRSCH17)
}
#[doc = "PRS Channel 18 selected"]
#[inline]
pub fn prsch18(self) -> &'a mut W {
self.variant(TSELW::PRSCH18)
}
#[doc = "PRS Channel 19 selected"]
#[inline]
pub fn prsch19(self) -> &'a mut W {
self.variant(TSELW::PRSCH19)
}
#[doc = "PRS Channel 20 selected"]
#[inline]
pub fn prsch20(self) -> &'a mut W {
self.variant(TSELW::PRSCH20)
}
#[doc = "PRS Channel 21 selected"]
#[inline]
pub fn prsch21(self) -> &'a mut W {
self.variant(TSELW::PRSCH21)
}
#[doc = "PRS Channel 22 selected"]
#[inline]
pub fn prsch22(self) -> &'a mut W {
self.variant(TSELW::PRSCH22)
}
#[doc = "PRS Channel 23 selected"]
#[inline]
pub fn prsch23(self) -> &'a mut W {
self.variant(TSELW::PRSCH23)
}
#[doc = r" Writes raw bits to the field"]
#[inline]
pub unsafe fn bits(self, value: u8) -> &'a mut W {
const MASK: u8 = 31;
const OFFSET: u8 = 16;
self.w.bits &= !((MASK as u32) << OFFSET);
self.w.bits |= ((value & MASK) as u32) << OFFSET;
self.w
}
}
impl R {
#[doc = r" Value of the register as raw bits"]
#[inline]
pub fn bits(&self) -> u32 {
self.bits
}
#[doc = "Bit 4 - Receive Trigger Enable"]
#[inline]
pub fn rxten(&self) -> RXTENR {
let bits = {
const MASK: bool = true;
const OFFSET: u8 = 4;
((self.bits >> OFFSET) & MASK as u32) != 0
};
RXTENR { bits }
}
#[doc = "Bit 5 - Transmit Trigger Enable"]
#[inline]
pub fn txten(&self) -> TXTENR {
let bits = {
const MASK: bool = true;
const OFFSET: u8 = 5;
((self.bits >> OFFSET) & MASK as u32) != 0
};
TXTENR { bits }
}
#[doc = "Bit 6 - AUTOTX Trigger Enable"]
#[inline]
pub fn autotxten(&self) -> AUTOTXTENR {
let bits = {
const MASK: bool = true;
const OFFSET: u8 = 6;
((self.bits >> OFFSET) & MASK as u32) != 0
};
AUTOTXTENR { bits }
}
#[doc = "Bit 7 - Enable Transmit Trigger After RX End of Frame Plus TCMP0VAL"]
#[inline]
pub fn txarx0en(&self) -> TXARX0ENR {
let bits = {
const MASK: bool = true;
const OFFSET: u8 = 7;
((self.bits >> OFFSET) & MASK as u32) != 0
};
TXARX0ENR { bits }
}
#[doc = "Bit 8 - Enable Transmit Trigger After RX End of Frame Plus TCMP1VAL"]
#[inline]
pub fn txarx1en(&self) -> TXARX1ENR {
let bits = {
const MASK: bool = true;
const OFFSET: u8 = 8;
((self.bits >> OFFSET) & MASK as u32) != 0
};
TXARX1ENR { bits }
}
#[doc = "Bit 9 - Enable Transmit Trigger After RX End of Frame Plus TCMP2VAL"]
#[inline]
pub fn txarx2en(&self) -> TXARX2ENR {
let bits = {
const MASK: bool = true;
const OFFSET: u8 = 9;
((self.bits >> OFFSET) & MASK as u32) != 0
};
TXARX2ENR { bits }
}
#[doc = "Bit 10 - Enable Receive Trigger After TX End of Frame Plus TCMPVAL0 Baud-times"]
#[inline]
pub fn rxatx0en(&self) -> RXATX0ENR {
let bits = {
const MASK: bool = true;
const OFFSET: u8 = 10;
((self.bits >> OFFSET) & MASK as u32) != 0
};
RXATX0ENR { bits }
}
#[doc = "Bit 11 - Enable Receive Trigger After TX End of Frame Plus TCMPVAL1 Baud-times"]
#[inline]
pub fn rxatx1en(&self) -> RXATX1ENR {
let bits = {
const MASK: bool = true;
const OFFSET: u8 = 11;
((self.bits >> OFFSET) & MASK as u32) != 0
};
RXATX1ENR { bits }
}
#[doc = "Bit 12 - Enable Receive Trigger After TX End of Frame Plus TCMPVAL2 Baud-times"]
#[inline]
pub fn rxatx2en(&self) -> RXATX2ENR {
let bits = {
const MASK: bool = true;
const OFFSET: u8 = 12;
((self.bits >> OFFSET) & MASK as u32) != 0
};
RXATX2ENR { bits }
}
#[doc = "Bits 16:20 - Trigger PRS Channel Select"]
#[inline]
pub fn tsel(&self) -> TSELR {
TSELR::_from({
const MASK: u8 = 31;
const OFFSET: u8 = 16;
((self.bits >> OFFSET) & MASK as u32) as u8
})
}
}
impl W {
#[doc = r" Reset value of the register"]
#[inline]
pub fn reset_value() -> W {
W { bits: 0 }
}
#[doc = r" Writes raw bits to the register"]
#[inline]
pub unsafe fn bits(&mut self, bits: u32) -> &mut Self {
self.bits = bits;
self
}
#[doc = "Bit 4 - Receive Trigger Enable"]
#[inline]
pub fn rxten(&mut self) -> _RXTENW {
_RXTENW { w: self }
}
#[doc = "Bit 5 - Transmit Trigger Enable"]
#[inline]
pub fn txten(&mut self) -> _TXTENW {
_TXTENW { w: self }
}
#[doc = "Bit 6 - AUTOTX Trigger Enable"]
#[inline]
pub fn autotxten(&mut self) -> _AUTOTXTENW {
_AUTOTXTENW { w: self }
}
#[doc = "Bit 7 - Enable Transmit Trigger After RX End of Frame Plus TCMP0VAL"]
#[inline]
pub fn txarx0en(&mut self) -> _TXARX0ENW {
_TXARX0ENW { w: self }
}
#[doc = "Bit 8 - Enable Transmit Trigger After RX End of Frame Plus TCMP1VAL"]
#[inline]
pub fn txarx1en(&mut self) -> _TXARX1ENW {
_TXARX1ENW { w: self }
}
#[doc = "Bit 9 - Enable Transmit Trigger After RX End of Frame Plus TCMP2VAL"]
#[inline]
pub fn txarx2en(&mut self) -> _TXARX2ENW {
_TXARX2ENW { w: self }
}
#[doc = "Bit 10 - Enable Receive Trigger After TX End of Frame Plus TCMPVAL0 Baud-times"]
#[inline]
pub fn rxatx0en(&mut self) -> _RXATX0ENW {
_RXATX0ENW { w: self }
}
#[doc = "Bit 11 - Enable Receive Trigger After TX End of Frame Plus TCMPVAL1 Baud-times"]
#[inline]
pub fn rxatx1en(&mut self) -> _RXATX1ENW {
_RXATX1ENW { w: self }
}
#[doc = "Bit 12 - Enable Receive Trigger After TX End of Frame Plus TCMPVAL2 Baud-times"]
#[inline]
pub fn rxatx2en(&mut self) -> _RXATX2ENW {
_RXATX2ENW { w: self }
}
#[doc = "Bits 16:20 - Trigger PRS Channel Select"]
#[inline]
pub fn tsel(&mut self) -> _TSELW {
_TSELW { w: self }
}
}