Trait kernel::hil::sensors::AmbientLight [] [src]

pub trait AmbientLight {
    fn set_client(&self, client: &'static AmbientLightClient);

    fn read_light_intensity(&self) -> ReturnCode { ... }
}

A basic interface for an ambient light sensor.

Required Methods

Set the client to be notified when the capsule has data ready or has finished some command. This is likely called in a board's main.rs.

Provided Methods

Get a single instantaneous reading of the ambient light intensity.

Implementors