Module capsules_extra::ninedof

source ·
Expand description

Provides userspace with virtualized access to 9DOF sensors.

§Usage

You need a device that provides the hil::sensors::NineDof trait.


let grant_cap = create_capability!(capabilities::MemoryAllocationCapability);
let grant_ninedof = board_kernel.create_grant(&grant_cap);

let ninedof = static_init!(
    capsules::ninedof::NineDof<'static>,
    capsules::ninedof::NineDof::new(grant_ninedof));
ninedof.add_driver(fxos8700);
hil::sensors::NineDof::set_client(fxos8700, ninedof);

Structs§

Enums§

Constants§