MT2523 API Reference  LinkIt SDK v4
Enum

Overview

Enumerations

enum  hal_eint_trigger_mode_t {
  HAL_EINT_LEVEL_LOW = 0,
  HAL_EINT_LEVEL_HIGH = 1,
  HAL_EINT_EDGE_FALLING = 2,
  HAL_EINT_EDGE_RISING = 3,
  HAL_EINT_EDGE_FALLING_AND_RISING = 4
}
 This emun defines the EINT trigger mode. More...
 
enum  hal_eint_status_t {
  HAL_EINT_STATUS_ERROR_EINT_NUMBER = -3,
  HAL_EINT_STATUS_INVALID_PARAMETER = -2,
  HAL_EINT_STATUS_ERROR = -1,
  HAL_EINT_STATUS_OK = 0
}
 This enum define the API return type. More...
 
enum  hal_eint_number_t {
  HAL_EINT_NUMBER_0 = 0,
  HAL_EINT_NUMBER_1 = 1,
  HAL_EINT_NUMBER_2 = 2,
  HAL_EINT_NUMBER_3 = 3,
  HAL_EINT_NUMBER_4 = 4,
  HAL_EINT_NUMBER_5 = 5,
  HAL_EINT_NUMBER_6 = 6,
  HAL_EINT_NUMBER_7 = 7,
  HAL_EINT_NUMBER_8 = 8,
  HAL_EINT_NUMBER_9 = 9,
  HAL_EINT_NUMBER_10 = 10,
  HAL_EINT_NUMBER_11 = 11,
  HAL_EINT_NUMBER_12 = 12,
  HAL_EINT_NUMBER_13 = 13,
  HAL_EINT_NUMBER_14 = 14,
  HAL_EINT_NUMBER_15 = 15,
  HAL_EINT_NUMBER_16 = 16,
  HAL_EINT_NUMBER_17 = 17,
  HAL_EINT_NUMBER_18 = 18,
  HAL_EINT_NUMBER_19 = 19,
  HAL_EINT_KEYPAD = 20,
  HAL_EINT_UART_0_RX = 21,
  HAL_EINT_UART_1_RX = 22,
  HAL_EINT_UART_2_RX = 23,
  HAL_EINT_UART_3_RX = 24,
  HAL_EINT_BTSYS = 25,
  HAL_EINT_BTSYS_BTIF = 26,
  HAL_EINT_USB = 27,
  HAL_EINT_ACCDET = 28,
  HAL_EINT_RTC = 29,
  HAL_EINT_PMIC = 30,
  HAL_EINT_GPCOUNTER = 31,
  HAL_EINT_NUMBER_MAX
}
 EINT pins. More...
 

Enumeration Type Documentation

EINT pins.

Enumerator
HAL_EINT_KEYPAD 

EINT number 20: Keypad.

HAL_EINT_UART_0_RX 

EINT number 21: UART0 RX.

HAL_EINT_UART_1_RX 

EINT number 22: UART1 RX.

HAL_EINT_UART_2_RX 

EINT number 23: UART2 RX.

HAL_EINT_UART_3_RX 

EINT number 24: BTSYS.

HAL_EINT_BTSYS 

EINT number 25: BTSYS BTIF.

HAL_EINT_BTSYS_BTIF 

EINT number 26: UART3 RX.

HAL_EINT_USB 

EINT number 27: USB.

HAL_EINT_ACCDET 

EINT number 28: ACCDET.

HAL_EINT_RTC 

EINT number 29: RTC.

HAL_EINT_PMIC 

EINT number 30: PMIC.

HAL_EINT_GPCOUNTER 

EINT number 31: GPCOUNTER.

HAL_EINT_NUMBER_MAX 

The total number of EINT channels (invalid EINT channel).

This enum define the API return type.

Enumerator
HAL_EINT_STATUS_ERROR_EINT_NUMBER 

EINT error number.

HAL_EINT_STATUS_INVALID_PARAMETER 

EINT error invalid parameter.

HAL_EINT_STATUS_ERROR 

EINT undefined error.

HAL_EINT_STATUS_OK 

EINT operation completed successfully.

This emun defines the EINT trigger mode.

Enumerator
HAL_EINT_LEVEL_LOW 

Level and low trigger.

HAL_EINT_LEVEL_HIGH 

Level and high trigger.

HAL_EINT_EDGE_FALLING 

Edge and falling trigger.

HAL_EINT_EDGE_RISING 

Edge and rising trigger.

HAL_EINT_EDGE_FALLING_AND_RISING 

Edge and falling or rising trigger.