Smart Remote 3 nRF52 v1.2
Data Structures | Typedefs | Functions
Touchpad driver

Touchpad driver API. More...

Data Structures

struct  drv_touchpad_data_t
 Touchpad output data. More...
 

Typedefs

typedef void(* drv_touchpad_read_handler_t )(ret_code_t status, drv_touchpad_data_t *p_data)
 Touchpad read data handler.
 

Functions

ret_code_t drv_touchpad_disable (void)
 Disable touchpad to manage power consumption. More...
 
ret_code_t drv_touchpad_enable (void)
 Enable touchpad to manage power consumption. More...
 
ret_code_t drv_touchpad_init (drv_touchpad_read_handler_t read_handler)
 Touchpad driver initialization. More...
 
ret_code_t drv_touchpad_schedule_read (drv_touchpad_data_t *p_data)
 Schedule a touchpad read. More...
 

Detailed Description

Touchpad driver API.

Function Documentation

ret_code_t drv_touchpad_disable ( void  )

Disable touchpad to manage power consumption.

Returns
NRF_SUCCESS If the disable request was scheduled, otherwise an error code.
ret_code_t drv_touchpad_enable ( void  )

Enable touchpad to manage power consumption.

Returns
NRF_SUCCESS If the enable request was scheduled, otherwise an error code.
ret_code_t drv_touchpad_init ( drv_touchpad_read_handler_t  read_handler)

Touchpad driver initialization.

Parameters
[in]read_handlerCallback function for a data ready event.
Returns
Return values
NRF_SUCCESS
NRF_ERROR_INTERNALBus error.
ret_code_t drv_touchpad_schedule_read ( drv_touchpad_data_t p_data)

Schedule a touchpad read.

Parameters
[in]p_dataPointer to the touchpad output data.
Returns
NRF_SUCCESS If the read operation was scheduled, otherwise an error code.

Documentation feedback | Developer Zone | Subscribe | Updated