components

Module analog_comparator

Source
Expand description

Component for initializing an Analog Comparator.

This provides one Component, AcComponent, which implements a userspace syscall interface to a passed analog comparator driver.

§Usage

let analog_comparator = components::analog_comparator::AnalogComparatorComponent::new(
    &sam4l::acifc::ACIFC,
    components::analog_comparator_component_helper!(
        <sam4l::acifc::Acifc as kernel::hil::analog_comparator::AnalogComparator>::Channel,
        &sam4l::acifc::CHANNEL_AC0,
        &sam4l::acifc::CHANNEL_AC1,
        &sam4l::acifc::CHANNEL_AC2,
        &sam4l::acifc::CHANNEL_AC3
    ),
)
.finalize(components::analog_comparator_component_static!(sam4l::acifc::Acifc));

Structs§