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

pub trait SoundPressure<'a> {
    pub fn read_sound_pressure(&self) -> ReturnCode;
pub fn enable(&self) -> ReturnCode;
pub fn disable(&self) -> ReturnCode;
pub fn set_client(&self, client: &'a dyn SoundPressureClient); }

Basic Interface for Sound Pressure

Required methods

pub fn read_sound_pressure(&self) -> ReturnCode[src]

Read the sound pressure level

pub fn enable(&self) -> ReturnCode[src]

Enable

As this is usually a microphone, some boards require an explicit enable so that they can turn on an LED. This function enables that microphone and LED. Not calling this function may result in innacurate readings.

pub fn disable(&self) -> ReturnCode[src]

Disable

As this is usually a microphone, some boards require an explicit enable so that they can turn on an LED. This function turns off that microphone. Readings perfomed after this function call might return innacurate.

pub fn set_client(&self, client: &'a dyn SoundPressureClient)[src]

Set the client

Loading content...

Implementors

Loading content...