Enum ads1x15::Gain [−][src]
pub enum Gain { Within6_144V, Within4_096V, Within2_048V, Within1_024V, Within0_512V, Within0_256V, }
Configuration for the gain setting of the device.
The gain setting sets the measurable range but it is not possible to measure voltages higher than the voltage of the VDD pin of the chip.
Variants
Within6_144V
The measurable range is ±6.144V.
Within4_096V
The measurable range is ±4.096V.
Within2_048V
The measurable range is ±2.048V.
Within1_024V
The measurable range is ±1.024V.
Within0_512V
The measurable range is ±0.512V.
Within0_256V
The measurable range is ±0.256V.
Methods
impl Gain
[src]
impl Gain
pub fn as_reg_config_pga(&self) -> ConfigPga
[src]
pub fn as_reg_config_pga(&self) -> ConfigPga
Converts this gain value into a valid value for the I2C Config
register.
Trait Implementations
impl Clone for Gain
[src]
impl Clone for Gain
fn clone(&self) -> Gain
[src]
fn clone(&self) -> Gain
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 Gain
[src]
impl Copy for Gain
impl Debug for Gain
[src]
impl Debug for Gain