PebbleOS v4.43.0-153-g7e4f46eff
Loading...
Searching...
No Matches
pbl_touch_ops Struct Reference

Touchscreen driver operations, called with the device lock held. More...

#include <touch.h>

Data Fields

int(* init )(const struct pbl_touch *touch)
 Bring the hardware up, leaving it powered down.
 
int(* enable )(const struct pbl_touch *touch)
 Power the touchscreen up and start reporting.
 
int(* disable )(const struct pbl_touch *touch)
 Stop reporting and power the touchscreen down.
 

Detailed Description

Touchscreen driver operations, called with the device lock held.

Field Documentation

◆ disable

int(* pbl_touch_ops::disable) (const struct pbl_touch *touch)

Stop reporting and power the touchscreen down.

◆ enable

int(* pbl_touch_ops::enable) (const struct pbl_touch *touch)

Power the touchscreen up and start reporting.

◆ init

int(* pbl_touch_ops::init) (const struct pbl_touch *touch)

Bring the hardware up, leaving it powered down.

Returns 0, -ENODEV if the part does not answer, or a negative errno.


The documentation for this struct was generated from the following file: