Enum capsules::tsl2561::State
[−]
[src]
enum State { Idle, SelectId, ReadingId, TakeMeasurementTurnOn, TakeMeasurementConfigMeasurement, TakeMeasurementReset1, TakeMeasurementReset2, ReadMeasurement1, ReadMeasurement2, ReadMeasurement3, GotMeasurement, Done, }
Variants
Idle
SelectId
Read the Id register.
ReadingId
TakeMeasurementTurnOn
Process of taking a light measurement.
TakeMeasurementConfigMeasurement
TakeMeasurementReset1
TakeMeasurementReset2
ReadMeasurement1
Read the ADC registers.
ReadMeasurement2
ReadMeasurement3
GotMeasurement
Calculate light and call the callback with the value.
Done
Disable I2C and release buffer
Trait Implementations
impl Clone for State
[src]
fn clone(&self) -> State
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more