pub struct Channel1;Expand description
Representation of registers for channel 1.
Trait Implementations§
Source§impl ChannelRegisters for Channel1
impl ChannelRegisters for Channel1
Source§const BTPAUSE_BIT: u8 = 32u8
const BTPAUSE_BIT: u8 = 32u8
BTPAUSE bit in the BTPAUSE_MAXWIN register.
Source§const MAXWIN_BIT: u8 = 2u8
const MAXWIN_BIT: u8 = 2u8
MAXWIN bit in the BTPAUSE_MAXWIN register.
Source§const ANTICOM_BIT: u8 = 32u8
const ANTICOM_BIT: u8 = 32u8
ANTICOM bit in the COMMON_DEFORM register.
Source§const ANTIDFORM_BIT: u8 = 2u8
const ANTIDFORM_BIT: u8 = 2u8
ANTIDFORM bit in the COMMON_DEFORM register.
Source§const CNTSC_MASK: u8 = 12u8
const CNTSC_MASK: u8 = 12u8
Mask for the CNTSC bits in the CNTSC register.
Source§const CNTSC_OFFSET: u8 = 2u8
const CNTSC_OFFSET: u8 = 2u8
Offset to the CNTSC bits in the CNTSC register.
Source§const FTF_OFFSET: u8 = 4u8
const FTF_OFFSET: u8 = 4u8
Offset to the FTF bits in the FTF register for this channel.
Source§const DEFAULT_MODE: ChannelMode = ChannelMode::NormalMode
const DEFAULT_MODE: ChannelMode = ChannelMode::NormalMode
Default mode.
Source§fn raw_data_lsb(&self) -> Register
fn raw_data_lsb(&self) -> Register
Get the RAW_DATA_LSB register for this channel.
Source§fn sensor_config(&self) -> Register
fn sensor_config(&self) -> Register
Get the SENSOR_CONFIG register for this channel.
impl Copy for Channel1
Auto Trait Implementations§
impl Freeze for Channel1
impl RefUnwindSafe for Channel1
impl Send for Channel1
impl Sync for Channel1
impl Unpin for Channel1
impl UnwindSafe for Channel1
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more