Infineon Logo AIROC BTSDK v4.9 - Documentation
 
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Groups
Scrolldriver

Functions

void scroll_turnOff (void)
 Defines a scroll driver that uses the quadrature HW. More...
 
void scroll_turnOn (void)
 Turn on scroll HW. More...
 
void scroll_registerForInterrupt (void(*userfn)(void *), void *userdata)
 Register a thread context interrupt handler. More...
 
INT16 scroll_getCount (void)
 Gets the current count of the scroll wheel. More...
 
void scroll_init (void)
 

Detailed Description

Function Documentation

INT16 scroll_getCount ( void  )

Gets the current count of the scroll wheel.

Returns
scroll count.
void scroll_registerForInterrupt ( void(*)(void *)  userfn,
void *  userdata 
)

Register a thread context interrupt handler.

Parameters
userfnPointer to the callback function to be invoked.
userdataPointer to a context that is passed into callback when the interrupt occurs.
void scroll_turnOff ( void  )

Defines a scroll driver that uses the quadrature HW.

Turn off scroll HW. This is used when entering power-off mode (software or low battery).

void scroll_turnOn ( void  )

Turn on scroll HW.

This is used when exiting power-off mode (software or low battery).