KEYSCAN

Description

Keyscan driver.

Data Structures

struct sl_keyscan_driver_process_keyscan_event_handle_t

Functions

sl_status_t sl_keyscan_driver_init (void)
Initializes the keyscan driver.
void sl_keyscan_driver_subscribe_event ( sl_keyscan_driver_process_keyscan_event_handle_t *event_handle)
Registers an event callback on Keyscan event.
void sl_keyscan_driver_unsubscribe_event ( sl_keyscan_driver_process_keyscan_event_handle_t *event_handle)
Unregisters an event callback on Keyscan event.
sl_status_t sl_keyscan_driver_start_scan (void)
Starts the keyscan scan.
sl_status_t sl_keyscan_driver_stop_scan (void)
Stops the keyscan scan.

Typedefs

typedef void(* sl_keyscan_driver_process_keyscan_event ) (uint8_t *p_keyscan_matrix, sl_keyscan_driver_status_t status)

Enumerations

enum sl_keyscan_driver_status_t {
SL_KEYSCAN_STATUS_KEYPRESS_VALID = 0,
SL_KEYSCAN_STATUS_KEYPRESS_INVALID ,
SL_KEYSCAN_STATUS_KEYPRESS_RELEASED
}
KEYSCAN status values.

Function Documentation

sl_keyscan_driver_init()

sl_status_t sl_keyscan_driver_init ( void )

Initializes the keyscan driver.

sl_keyscan_driver_subscribe_event()

void sl_keyscan_driver_subscribe_event ( sl_keyscan_driver_process_keyscan_event_handle_t * event_handle )

Registers an event callback on Keyscan event.

sl_keyscan_driver_unsubscribe_event()

void sl_keyscan_driver_unsubscribe_event ( sl_keyscan_driver_process_keyscan_event_handle_t * event_handle )

Unregisters an event callback on Keyscan event.

sl_keyscan_driver_start_scan()

sl_status_t sl_keyscan_driver_start_scan ( void )

Starts the keyscan scan.

sl_keyscan_driver_stop_scan()

sl_status_t sl_keyscan_driver_stop_scan ( void )

Stops the keyscan scan.

Enumeration Type Documentation

sl_keyscan_driver_status_t

KEYSCAN status values.