Enum ads1x15::Channel [−][src]
pub enum Channel { A0, A1, A2, A3, }
A channel on the ADS1x15 that contains an analog electric signal.
Variants
A0
The channel corresponding to the A0
pin.
A1
The channel corresponding to the A1
pin.
A2
The channel corresponding to the A2
pin.
A3
The channel corresponding to the A3
pin.
Methods
impl Channel
[src]
impl Channel
pub fn as_reg_config_mux_single(&self) -> ConfigMux
[src]
pub fn as_reg_config_mux_single(&self) -> ConfigMux
Converts this channel value into a valid value for the I2C Config
register, setting the
mux to single-ended measurements for that channel.
Trait Implementations
impl Clone for Channel
[src]
impl Clone for Channel
fn clone(&self) -> Channel
[src]
fn clone(&self) -> Channel
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Copy for Channel
[src]
impl Copy for Channel
impl Debug for Channel
[src]
impl Debug for Channel