[][src]Trait kernel::hil::touch::Touch

pub trait Touch<'a> {
    fn enable(&self) -> ReturnCode;
fn disable(&self) -> ReturnCode;
fn set_client(&self, touch_client: &'a dyn TouchClient); }

Single touch panels should implement this

Required methods

fn enable(&self) -> ReturnCode

Enable the touch panel

returns SUCCESS even if device is already enabled

fn disable(&self) -> ReturnCode

Disable the touch panel

returns SUCCESS even if device is already disabled

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

Set the touch client

Loading content...

Implementors

Loading content...