Channel1

Struct Channel1 

Source
pub struct Channel1;
Expand description

Representation of registers for channel 1.

Trait Implementations§

Source§

impl ChannelRegisters for Channel1

Source§

const CH: u8 = 1u8

Channel number.
Source§

const EN_BIT: u8 = 2u8

EN bit in the EN register.
Source§

const LPEN_BIT: u8 = 32u8

LP_EN bit in the EN register.
Source§

const BTPAUSE_BIT: u8 = 32u8

BTPAUSE bit in the BTPAUSE_MAXWIN register.
Source§

const MAXWIN_BIT: u8 = 2u8

MAXWIN bit in the BTPAUSE_MAXWIN register.
Source§

const OPOL_BIT: u8 = 32u8

OPOL bit in the OPOL_DPOL register.
Source§

const DPOL_BIT: u8 = 2u8

DPOL bit in the OPOL_DPOL register.
Source§

const ANTICOM_BIT: u8 = 32u8

ANTICOM bit in the COMMON_DEFORM register.
Source§

const ANTIDFORM_BIT: u8 = 2u8

ANTIDFORM bit in the COMMON_DEFORM register.
Source§

const CNTSC_MASK: u8 = 12u8

Mask for the CNTSC bits in the CNTSC register.
Source§

const CNTSC_OFFSET: u8 = 2u8

Offset to the CNTSC bits in the CNTSC register.
Source§

const FTF_MASK: u8 = 48u8

Mask for the FTF bits in the FTF register for this channel.
Source§

const FTF_OFFSET: u8 = 4u8

Offset to the FTF bits in the FTF register for this channel.
Source§

const DEFAULT_MODE: ChannelMode = ChannelMode::NormalMode

Default mode.
Source§

fn data_lsb(&self) -> Register

Get the DATA_LSB register for this channel.
Source§

fn raw_data_lsb(&self) -> Register

Get the RAW_DATA_LSB register for this channel.
Source§

fn gain(&self) -> Register

Get the GAIN register for this channel.
Source§

fn sensor_config(&self) -> Register

Get the SENSOR_CONFIG register for this channel.
Source§

fn ftf(&self) -> Register

Get the FTF register for this channel.
Source§

impl Clone for Channel1

Source§

fn clone(&self) -> Channel1

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for Channel1

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.