General Client Callback Data

group General_cb_data

Enums

enum T_CLIENT_CB_TYPE

The callback type of T_CLIENT_APP_CB_DATA.

Message data type, when data sent to APP directly.

Values:

enumerator CLIENT_APP_CB_TYPE_DISC_STATE
enumerator CLIENT_APP_CB_TYPE_DISC_RESULT
enumerator CLIENT_APP_CB_TYPE_READ_MULTI_RESULT
struct T_DISC_STATE_CB_DATA
#include <profile_client_def.h>

The callback data of CLIENT_APP_CB_TYPE_DISC_STATE.

Discovery procedure related data to inform application.

Public Members

T_DISCOVERY_STATE disc_state
struct T_DISC_RESULT_CB_DATA
#include <profile_client_def.h>

The callback data of CLIENT_APP_CB_TYPE_DISC_RESULT.

Discovery result data will be sent to Bluetooth Host through the callback.

Public Members

T_DISCOVERY_RESULT_TYPE result_type
T_DISCOVERY_RESULT_DATA result_data
struct T_READ_MULTI_DATA
#include <profile_client_def.h>

Public Members

uint16_t handle
uint16_t read_len
uint16_t total_len
uint8_t *p_data
struct T_READ_MULTI_RESULT_CB_DATA
#include <profile_client_def.h>

Public Members

T_CLIENT_ID client_id
uint16_t cause
uint16_t num_handle
T_READ_MULTI_DATA *p_read_tbl
union T_CLIENT_CB_DATA
#include <profile_client_def.h>

The callback data of T_CLIENT_APP_CB_DATA.

Client received data from server, when no specific client registered, will be sent to APP directly.

Public Members

T_DISC_STATE_CB_DATA disc_state_data
T_DISC_RESULT_CB_DATA disc_result_data
T_READ_MULTI_RESULT_CB_DATA read_multi_result_data
struct T_CLIENT_APP_CB_DATA
#include <profile_client_def.h>

The General Client Callback Data Struct.

Callback data sent to application directly from client, include type and content.

Public Members

T_CLIENT_CB_TYPE cb_type
T_CLIENT_CB_DATA cb_content