Enum bme680::I2CAddress [−][src]
pub enum I2CAddress { Primary, Secondary, Other(u8), }
I2C Slave Address
To determine the slave address of your device you can use i2cdetect -y 1
on linux.
The 7-bit device address is 111011x. The 6 MSB bits are fixed.
The last bit is changeable by SDO value and can be changed during operation.
Connecting SDO to GND results in slave address 1110110 (0x76); connection it to V DDIO results in slave
address 1110111 (0x77), which is the same as BMP280’s I2C address.
Variants
Primary
Primary Slave Address 0x77
Secondary
Secondary Slave Address 0x77
Other(u8)
Alternative address
Methods
impl I2CAddress
[src]
impl I2CAddress
Trait Implementations
impl Debug for I2CAddress
[src]
impl Debug for I2CAddress
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for I2CAddress
[src]
impl Clone for I2CAddress
fn clone(&self) -> I2CAddress
[src]
fn clone(&self) -> I2CAddress
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 I2CAddress
[src]
impl Copy for I2CAddress
impl Default for I2CAddress
[src]
impl Default for I2CAddress
fn default() -> I2CAddress
[src]
fn default() -> I2CAddress
Returns the "default value" for a type. Read more
Auto Trait Implementations
impl Send for I2CAddress
impl Send for I2CAddress
impl Sync for I2CAddress
impl Sync for I2CAddress