MT7687 API Reference  LinkIt SDK v4
Enum
HAL » GPC

Overview

Enumerations

enum  hal_gpc_edge_t {
  HAL_GPC_EDGE_RAISING = 0,
  HAL_GPC_EDGE_FALLING = 1
}
 This enum define GPC caputure edge. More...
 
enum  hal_gpc_status_t {
  HAL_GPC_STATUS_ERROR = -3,
  HAL_GPC_STATUS_ERROR_PORT = -2,
  HAL_GPC_STATUS_INVALID_PARAMETER = -1,
  HAL_GPC_STATUS_OK = 0
}
 This enum define GPC function status. More...
 
enum  hal_gpc_running_status_t {
  HAL_GPC_STATUS_IDLE = 0,
  HAL_GPC_STATUS_BUSY = 1
}
 define GPC busy status More...
 
enum  hal_gpc_port_t {
  HAL_GPC_0 = 0,
  HAL_GPC_MAX_PORT
}
 gpc port More...
 

Enumeration Type Documentation

This enum define GPC caputure edge.

Enumerator
HAL_GPC_EDGE_RAISING 

Set the GPC raising edge.

HAL_GPC_EDGE_FALLING 

Set the falling edge.

gpc port

Enumerator
HAL_GPC_0 

gpc port0

HAL_GPC_MAX_PORT 

gpc max port

define GPC busy status

Enumerator
HAL_GPC_STATUS_IDLE 

The GPC is idle.

HAL_GPC_STATUS_BUSY 

The GPC is busy.

This enum define GPC function status.

Enumerator
HAL_GPC_STATUS_ERROR 

A GPC function ERROR occured.

HAL_GPC_STATUS_ERROR_PORT 

A wrong GPC port.

HAL_GPC_STATUS_INVALID_PARAMETER 

An invalid parameter.

HAL_GPC_STATUS_OK 

No error occurred during the function call.