Trait kernel::hil::touch::Touch

source ·
pub trait Touch<'a> {
    // Required methods
    fn enable(&self) -> Result<(), ErrorCode>;
    fn disable(&self) -> Result<(), ErrorCode>;
    fn set_client(&self, touch_client: &'a dyn TouchClient);
}
Expand description

Single touch panels should implement this

Required Methods§

source

fn enable(&self) -> Result<(), ErrorCode>

Enable the touch panel

returns Ok(()) even if device is already enabled

source

fn disable(&self) -> Result<(), ErrorCode>

Disable the touch panel

returns Ok(()) even if device is already disabled

source

fn set_client(&self, touch_client: &'a dyn TouchClient)

Set the touch client

Implementors§