Struct ina260::INA260

source ·
pub struct INA260<I2C> { /* private fields */ }

Implementations§

Add a new driver for a INA260 chip found on the I2C bus at the specified address

Put the INA260 chip managed by the driver in shut down and release I2C resource

Change the averaging mode of the INA260

Change the operating mode of the INA260. Please note that if you change to Triggered mode, you’ll have to call this method again each time you would like to get a new sample.

Change the shut current conversion time

Change the bus voltage conversion time

Delivers the unique chip id

Delivers the die revision id

Delivers the measured raw current in 1.25mA per bit

Delivers the measured current in uA

Delivers the measured current in as tuple of full volts and tenth millivolts

Delivers the measured raw voltage in 1.25mV per bit

Delivers the measured voltage in uV

Delivers the measured voltage in as tuple of full volts and tenth millivolts

Delivers the measured power in 10mW per bit

Delivers the measured raw power in mW

Delivers the measured power in as tuple of full volts and tenth millivolts

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.