Struct veml6040::Veml6040

source ·
pub struct Veml6040<I2C> { /* private fields */ }
Expand description

VEML6040 device driver.

Implementations

Enable the sensor.

Disable the sensor (shutdown).

Set the integration time.

Set the measurement mode: Auto/Manual.

Trigger a measurement when on Manual measurement mode.

This is not necessary on Auto measurement mode.

Read the red channel measurement data.

Read the green channel measurement data.

Read the blue channel measurement data.

Read the white channel measurement data.

Read the measurement data of all channels at once.

Create new instance of the VEML6040 device.

Destroy driver instance, return I²C bus instance.

Trait Implementations

Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more

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.