CCP Interface Functions

[English]

CCP_IF API Brief

Application

Brief

ccp_if_register_event_callback()

Register CCP event callback

ccp_if_init()

Initialize Call Control Profile

ccp_if_send_cp_opcode()

Send CCP control point opcode

CCP_IF API Reference

Header File

Functions

void ccp_if_register_event_callback(btif_ccp_register_t *p_callback)

Register CCP event callback.

Register callback [p_callback] to the CCP events callback list.

参数:

p_callback[in] pointer to a CCP event callback of type btif_ccp_register_t.

返回:

N/A

void ccp_if_init(void)

Initialize Call Control Profile.

Install the CCP event callback handler to the BLE host to enable CCP client functionality.

返回:

N/A

btif_ret_t ccp_if_send_cp_opcode(uint16_t handle, ccp_if_cp_opcode_t opcode, uint8_t idx, uint8_t *p_uri, uint8_t uri_len)

Send CCP control point opcode.

Write the opcode [opcode] to the call control point of the mobile phone with connection handle [handle].

参数:
  • handle[in] CCP connection handle

  • opcode[in] call control point opcode of type ccp_if_cp_opcode_t

  • idx[in] call index of the incoming call.

  • p_uri[in] pointer to a Uniform Resource Identifier(URI)

  • uri_len[in] length of a Uniform Resource Identifier(URI)

返回值:
  • 0 – success [BTIF_EXIT_SUCCESS]

  • other – fail BK_TBS_CLIENT CCP_IF_H EOF

返回:

result

Structures

struct btif_ccp_register_t

CCP register event callback structure definition.

struct ccp_if_general_evt_t

CCP general event structure definition.

struct ccp_if_general_short_val_evt_t

CCP general event by short value structure definition.

struct ccp_if_general_long_val_evt_t

CCP general event by long value structure definition.

struct ccp_if_general_call_evt_t

CCP general call event structure definition.

Macros

CCP_IF_CB_EVENT_CONNECTED
CCP_IF_CB_EVENT_DISCONNECTED
CCP_IF_CB_EVENT_DISCOVER_DONE
CCP_IF_CB_EVENT_TECHNO
CCP_IF_CB_EVENT_SIGN_STRENGTH
CCP_IF_CB_EVENT_SIGN_STRENGTH_INTV
CCP_IF_CB_EVENT_CALL_TERM
CCP_IF_CB_EVENT_PROV_NAME
CCP_IF_CB_EVENT_UCI
CCP_IF_CB_EVENT_INCOMING_CALL
CCP_IF_CB_EVENT_FREE_ALL_CALL_INFO
CCP_IF_CB_EVENT_CALL_STATE
CCP_IF_CB_EVENT_CURR_CALL_LIST

Type Definitions

typedef uint8_t ccp_if_cb_event_t

Call Control Profile(CCP) callback event type definition.