MT2523 API Reference  LinkIt SDK v4
Enum

Overview

Enumerations

enum  hal_keypad_mode_t {
  HAL_KEYPAD_MODE_SINGLE_KEY = 0,
  HAL_KEYPAD_MODE_DOUBLE_KEY = 1
}
 This enum defines keypad mode selection. More...
 
enum  hal_keypad_status_t {
  HAL_KEYPAD_STATUS_ERROR = -2,
  HAL_KEYPAD_INVALID_PARAMETER = -1,
  HAL_KEYPAD_STATUS_OK = 0
}
 This enum defines keypad status. More...
 
enum  hal_keypad_key_state_t {
  HAL_KEYPAD_KEY_RELEASE = 0,
  HAL_KEYPAD_KEY_PRESS = 1,
  HAL_KEYPAD_KEY_LONG_PRESS = 2,
  HAL_KEYPAD_KEY_REPEAT = 3,
  HAL_KEYPAD_KEY_PMU_LONG_PRESS = 4
}
 This enum defines key status. More...
 

Enumeration Type Documentation

This enum defines key status.

Enumerator
HAL_KEYPAD_KEY_RELEASE 

A key is released.

HAL_KEYPAD_KEY_PRESS 

A key is pressed.

HAL_KEYPAD_KEY_LONG_PRESS 

A key is long pressed.

HAL_KEYPAD_KEY_REPEAT 

A key is repeat pressed.

HAL_KEYPAD_KEY_PMU_LONG_PRESS 

PMU hardware powerkey is long pressed.

This enum defines keypad mode selection.

Enumerator
HAL_KEYPAD_MODE_SINGLE_KEY 

Sets the keypad single key mode.

HAL_KEYPAD_MODE_DOUBLE_KEY 

Sets the keypad double key mode.

This enum defines keypad status.

Enumerator
HAL_KEYPAD_STATUS_ERROR 

A keypad function error.

HAL_KEYPAD_INVALID_PARAMETER 

An invalid parameter.

HAL_KEYPAD_STATUS_OK 

No error occurred during the function call.