components

Module isl29035

Source
Expand description

Components for the ISL29035 sensor.

This provides two Components, Isl29035Component, which provides direct access to the ISL29035 within the kernel, and AmbientLightComponent, which provides the ambient light system call interface to the ISL29035. Note that only one of these Components should be instantiated, as AmbientLightComponent itself creates an Isl29035Component, which depends on a static buffer: if you allocate both, then the two instances of Isl29035Component will conflict on the buffer.

§Usage

let isl29035 = Isl29035Component::new(mux_i2c, mux_alarm)
    .finalize(components::isl29035_component_static!(sam4l::ast::Ast));
let ambient_light =
    AmbientLightComponent::new(board_kernel, capsules_extra::ambient_light::DRIVER_NUM, isl29035)
        .finalize(components::ambient_light_component_static!());

Structs§