Struct veml6070::VEML6070[][src]

pub struct VEML6070<I2C> { /* fields omitted */ }

VEML6070 device driver.

Methods

impl<I2C, E> VEML6070<I2C> where
    I2C: Write<Error = E>, 
[src]

Create new instance of the VEML6070 device.

Destroy driver instance, return I²C bus instance.

Enable the sensor.

Disable the sensor (shutdown).

Set integration time.

Enable the ACK signal.

Note: The ACK must be cleared every time after it has fired with clear_ack().

Disable the ACK signal.

Set ACK threshold.

Enable the ACK signal and set the ACK threshold at once.

Note: The ACK must be cleared every time after it has fired with clear_ack().

impl<I2C, E> VEML6070<I2C> where
    I2C: Read<Error = E>, 
[src]

Clear ACK status.

Note: The ACK status must be cleared every time after it has fired. Other registers will be blocked otherwise.

Read the UV sensor.

impl<I2C, E> VEML6070<I2C> where
    I2C: Read<Error = E> + Write<Error = E>, 
[src]

Initialize and clear ACK.

Trait Implementations

impl<I2C: Debug> Debug for VEML6070<I2C>
[src]

Formats the value using the given formatter. Read more

impl<I2C: Default> Default for VEML6070<I2C>
[src]

Returns the "default value" for a type. Read more

Auto Trait Implementations

impl<I2C> Send for VEML6070<I2C> where
    I2C: Send

impl<I2C> Sync for VEML6070<I2C> where
    I2C: Sync