MT2523 API Reference  LinkIt SDK v4
Define

Overview

Macros

#define BT_A2DP_CONNECT_IND   (BT_MODULE_A2DP | 0x1200)
 The event report to user. More...
 
#define BT_A2DP_CONNECT_CNF   (BT_MODULE_A2DP | 0x1201)
 The result of a connect attempt initiated by a local or remote device is available, with bt_a2dp_connect_cnf_t as the payload in the callback function. More...
 
#define BT_A2DP_DISCONNECT_IND   (BT_MODULE_A2DP | 0x1202)
 A disconnect attempt is initiated by a local or remote device or a link loss occurred, with bt_a2dp_disconnect_ind_t as the payload in the callback function. More...
 
#define BT_A2DP_DISCONNECT_CNF   (BT_MODULE_A2DP | 0x1203)
 The result of a disconnect attempt initiated by a local device is available, with bt_a2dp_disconnect_cnf_t as the payload in the callback function. More...
 
#define BT_A2DP_START_STREAMING_IND   (BT_MODULE_A2DP | 0x1204)
 A start streaming request is initiated from a remote device, with bt_a2dp_start_streaming_ind_t as the payload in the callback function. More...
 
#define BT_A2DP_START_STREAMING_CNF   (BT_MODULE_A2DP | 0x1205)
 The result of a start streaming attempt initiated by a local device is available, with bt_a2dp_start_streaming_cnf_t as the payload in the callback function. More...
 
#define BT_A2DP_SUSPEND_STREAMING_IND   (BT_MODULE_A2DP | 0x1206)
 A suspend streaming request is initiated from a remote device, with bt_a2dp_suspend_streaming_ind_t as the payload in the callback function. More...
 
#define BT_A2DP_SUSPEND_STREAMING_CNF   (BT_MODULE_A2DP | 0x1207)
 The result of a suspend streaming attempt initiated by a local device is available, with bt_a2dp_suspend_streaming_cnf_t as the payload in the callback function. More...
 
#define BT_A2DP_RECONFIGURE_IND   (BT_MODULE_A2DP | 0x1208)
 A reconfigure codec capability request is initiated from a remote device, with bt_a2dp_reconfigure_ind_t as the payload in the callback function. More...
 
#define BT_A2DP_RECONFIGURE_CNF   (BT_MODULE_A2DP | 0x1209)
 The result of a reconfigure codec capability attempt initiated by a local device is available, with bt_a2dp_reconfigure_cnf_t as the payload in the callback function. More...
 
#define BT_A2DP_STREAMING_RECEIVED_IND   (BT_MODULE_A2DP | 0x120A)
 The A2DP streaming information is available, with bt_a2dp_streaming_received_ind_t as the payload in the callback function. More...
 
#define BT_STATUS_A2DP_TIMEOUT   (BT_MODULE_A2DP|0xF0)
 Define for A2DP failed status. More...
 
#define BT_STATUS_A2DP_BAD_STATE   (BT_MODULE_A2DP|0xF1)
 The state for the operation is not correct. More...
 
#define BT_STATUS_A2DP_NO_CONNECTION   (BT_MODULE_A2DP|0xF2)
 The A2DP is not connected. More...
 
#define BT_A2DP_CODEC_SBC   (0)
 Define for A2DP codec type. More...
 
#define BT_A2DP_CODEC_AAC   (2)
 AAC codec. More...
 
#define BT_A2DP_SOURCE   (0)
 Define for A2DP role type. More...
 
#define BT_A2DP_SINK   (1)
 SNK role. More...
 
#define BT_A2DP_SOURCE_AND_SINK   (2)
 Both roles for a single device (series case). More...
 
#define BT_A2DP_INVALID_ROLE   (0xFF)
 Invalid role. More...
 
#define BT_A2DP_IDLE   (0)
 Define for A2DP state type. More...
 
#define BT_A2DP_OPENED   (1)
 Open state. More...
 
#define BT_A2DP_STREAMING   (2)
 Streaming state. More...
 
#define BT_A2DP_INVALID_STATE   (0xFF)
 Invalid state. More...
 

Typedefs

typedef uint8_t bt_a2dp_codec_type_t
 The type of A2DP codec. More...
 
typedef uint8_t bt_a2dp_role_t
 The type of A2DP role. More...
 
typedef uint8_t bt_a2dp_state_t
 The type of A2DP state. More...
 

Macro Definition Documentation

#define BT_A2DP_CODEC_AAC   (2)

AAC codec.

#define BT_A2DP_CODEC_SBC   (0)

Define for A2DP codec type.

SBC codec.

#define BT_A2DP_CONNECT_CNF   (BT_MODULE_A2DP | 0x1201)

The result of a connect attempt initiated by a local or remote device is available, with bt_a2dp_connect_cnf_t as the payload in the callback function.

#define BT_A2DP_CONNECT_IND   (BT_MODULE_A2DP | 0x1200)

The event report to user.

An attempt to connect from a remote device, with bt_a2dp_connect_ind_t as the payload in the callback function. Call bt_a2dp_connect_response() to accept or reject the attempt.

#define BT_A2DP_DISCONNECT_CNF   (BT_MODULE_A2DP | 0x1203)

The result of a disconnect attempt initiated by a local device is available, with bt_a2dp_disconnect_cnf_t as the payload in the callback function.

#define BT_A2DP_DISCONNECT_IND   (BT_MODULE_A2DP | 0x1202)

A disconnect attempt is initiated by a local or remote device or a link loss occurred, with bt_a2dp_disconnect_ind_t as the payload in the callback function.

#define BT_A2DP_IDLE   (0)

Define for A2DP state type.

Idle state.

#define BT_A2DP_INVALID_ROLE   (0xFF)

Invalid role.

#define BT_A2DP_INVALID_STATE   (0xFF)

Invalid state.

#define BT_A2DP_OPENED   (1)

Open state.

#define BT_A2DP_RECONFIGURE_CNF   (BT_MODULE_A2DP | 0x1209)

The result of a reconfigure codec capability attempt initiated by a local device is available, with bt_a2dp_reconfigure_cnf_t as the payload in the callback function.

#define BT_A2DP_RECONFIGURE_IND   (BT_MODULE_A2DP | 0x1208)

A reconfigure codec capability request is initiated from a remote device, with bt_a2dp_reconfigure_ind_t as the payload in the callback function.

Call bt_a2dp_reconfigure_response() to accept or reject the request.

#define BT_A2DP_SINK   (1)

SNK role.

#define BT_A2DP_SOURCE   (0)

Define for A2DP role type.

SRC role.

#define BT_A2DP_SOURCE_AND_SINK   (2)

Both roles for a single device (series case).

#define BT_A2DP_START_STREAMING_CNF   (BT_MODULE_A2DP | 0x1205)

The result of a start streaming attempt initiated by a local device is available, with bt_a2dp_start_streaming_cnf_t as the payload in the callback function.

#define BT_A2DP_START_STREAMING_IND   (BT_MODULE_A2DP | 0x1204)

A start streaming request is initiated from a remote device, with bt_a2dp_start_streaming_ind_t as the payload in the callback function.

Call bt_a2dp_start_streaming_response() to accept or reject the request.

#define BT_A2DP_STREAMING   (2)

Streaming state.

#define BT_A2DP_STREAMING_RECEIVED_IND   (BT_MODULE_A2DP | 0x120A)

The A2DP streaming information is available, with bt_a2dp_streaming_received_ind_t as the payload in the callback function.

#define BT_A2DP_SUSPEND_STREAMING_CNF   (BT_MODULE_A2DP | 0x1207)

The result of a suspend streaming attempt initiated by a local device is available, with bt_a2dp_suspend_streaming_cnf_t as the payload in the callback function.

#define BT_A2DP_SUSPEND_STREAMING_IND   (BT_MODULE_A2DP | 0x1206)

A suspend streaming request is initiated from a remote device, with bt_a2dp_suspend_streaming_ind_t as the payload in the callback function.

Call bt_a2dp_suspend_streaming_response() to accept or reject the request.

#define BT_STATUS_A2DP_BAD_STATE   (BT_MODULE_A2DP|0xF1)

The state for the operation is not correct.

#define BT_STATUS_A2DP_NO_CONNECTION   (BT_MODULE_A2DP|0xF2)

The A2DP is not connected.

#define BT_STATUS_A2DP_TIMEOUT   (BT_MODULE_A2DP|0xF0)

Define for A2DP failed status.

Timeout for the A2DP operation.

Typedef Documentation

typedef uint8_t bt_a2dp_codec_type_t

The type of A2DP codec.

typedef uint8_t bt_a2dp_role_t

The type of A2DP role.

typedef uint8_t bt_a2dp_state_t

The type of A2DP state.