Logo
UNICENS V2.1.0-3491
User Manual and API Reference

Referred types used by the Extended Resource Manager. More...

Data Structures

struct  Ucs_Gpio_ResultDetails_t
 Detailed information used for GPIO results. More...
 
struct  Ucs_Gpio_Result_t
 Result structure of the GPIO Module. More...
 

Callback Functions

typedef void(* Ucs_Gpio_CreatePortResCb_t )(uint16_t node_address, uint16_t gpio_port_handle, Ucs_Gpio_Result_t result, void *user_ptr)
 Function signature of result callback used by Ucs_Gpio_CreatePort()
 
typedef void(* Ucs_Gpio_ConfigPinModeResCb_t )(uint16_t node_address, uint16_t gpio_port_handle, Ucs_Gpio_PinConfiguration_t pin_cfg_list[], uint8_t list_sz, Ucs_Gpio_Result_t result, void *user_ptr)
 Function signature of result callback used by Ucs_Gpio_SetPinMode() and Ucs_Gpio_GetPinMode().
 
typedef void(* Ucs_Gpio_PinStateResCb_t )(uint16_t node_address, uint16_t gpio_port_handle, uint16_t current_state, uint16_t sticky_state, Ucs_Gpio_Result_t result, void *user_ptr)
 Function signature of result callback used by Ucs_Gpio_WritePort() and Ucs_Gpio_ReadPort().
 
typedef void(* Ucs_Gpio_TriggerEventResultCb_t )(uint16_t node_address, uint16_t gpio_port_handle, uint16_t rising_edges, uint16_t falling_edges, uint16_t levels, void *user_ptr)
 Function signature of result callback used by Gpio_TriggerEvents()
 

Enumerations

enum  Ucs_Gpio_PinMode_t {
  UCS_GPIO_UNAVAILABLE = 0x00U,
  UCS_GPIO_UNUSED = 0x01U,
  UCS_GPIO_INPUT = 0x10U,
  UCS_GPIO_IN_STICKY_HL = 0x11U,
  UCS_GPIO_IN_STICKY_LL = 0x12U,
  UCS_GPIO_IN_TRIGGER_RE = 0x13U,
  UCS_GPIO_IN_TRIGGER_FE = 0x14U,
  UCS_GPIO_IN_TRIGGER_HL = 0x16U,
  UCS_GPIO_IN_TRIGGER_LL = 0x17U,
  UCS_GPIO_IN_DEBOUNCED = 0x30U,
  UCS_GPIO_IN_DB_TRIGGER_RE = 0x33U,
  UCS_GPIO_IN_DB_TRIGGER_FE = 0x34U,
  UCS_GPIO_IN_DB_TRIGGER_HL = 0x36U,
  UCS_GPIO_IN_DB_TRIGGER_LL = 0x37U,
  UCS_GPIO_OUT_DEFAULT_LOW = 0x40U,
  UCS_GPIO_OUT_DEFAULT_HIGH = 0x41U,
  UCS_GPIO_OUT_OPEN_DRAIN = 0x50U,
  UCS_GPIO_OUT_OD_TRIGGER_RE = 0x53U,
  UCS_GPIO_OUT_OD_TRIGGER_FE = 0x54U,
  UCS_GPIO_OUT_OD_TRIGGER_HL = 0x56U,
  UCS_GPIO_OUT_OD_TRIGGER_LL = 0x57U
}
 The mode of the GPIO pin. More...
 
enum  Ucs_Gpio_ResultCode_t {
  UCS_GPIO_RES_SUCCESS = 0x00U,
  UCS_GPIO_RES_ERR_CMD = 0x01U,
  UCS_GPIO_RES_ERR_SYNC = 0x02U
}
 Result codes of the GPIO Module. More...
 
enum  Ucs_Gpio_ResultType_t {
  UCS_GPIO_RESULT_TYPE_TGT = 0x00U,
  UCS_GPIO_RESULT_TYPE_TX = 0x01U
}
 This enumerator specifies the kind of result - Target or Transmission. More...
 

Detailed Description

Referred types used by the Extended Resource Manager.