TWS Private Command Functions
TWS_PRIVATE_CMD API Brief
Application |
Brief |
|---|---|
send tws private command |
|
receive tws command |
|
send tws command |
|
handle rx tws private data |
|
handle rx tws private connection event |
|
initialize tws private command |
|
carry out pending tx command |
TWS_PRIVATE_CMD API Reference
Header File
Functions
-
void tws_send_private_cmd(void *p_data, uint32_t length, bool need_rsp)
send tws private command
common interface for send tws command
- 参数:
p_data – [in] pointer to command data.
length – [in] length of command data.
need_rsp – [in] need response. true is need response, false is no response.
- 返回:
N/A
-
void tws_recv_tws_cmd_in_task(tws_rx_data_t *p_msg)
receive tws command
receive tws command handler in tws task
- 参数:
p_msg – [in] pointer to message data.
- 返回:
N/A
-
void tws_send_tws_cmd_in_task(tws_tx_data_t *p_msg)
send tws command
send tws command in tws task
- 参数:
p_msg – [in] pointer to message data.
- 返回:
N/A
-
void tws_l2cap_rx_data_handle(uint8_t *p_data, uint16_t length)
handle rx tws private data
tws private data handler in bt task
- 参数:
p_data – [in] pointer to rx data.
length – [in] length of rx data.
- 返回:
N/A
-
void tws_l2cap_rx_event_handle(uint8_t event)
handle rx tws private connection event
tws private connection event callback function
- 参数:
event – [in] tws private connection event.
- 返回:
N/A
-
void tws_private_cmd_init(void)
initialize tws private command
tws private cmd init function
- 返回:
N/A
-
void tws_carryout_pending_tx_cmd(void)
carry out pending tx command
carry out pending tx command
- 返回:
N/A TWS_PRIVATE_CMD_H EOF
Structures
-
struct del_lk
Delete link key structure definition.
-
struct cmd_rsp_t
Command response structure definition.
-
struct private_cmd_handle_t
tws private command handle structure definition.
-
struct tws_tx_t
tws tx structure definition.
-
struct tws_tx_data_t
tws tx data structure definition.
-
struct tws_rx_data_t
tws rx data structure definition.
Macros
-
NO_RSP_TIMEOUT
-
RSP_TIMEOUT
-
RX_RSP_NULL
-
RX_RSP_TO_NULL
-
RSP_CMD
-
SHARE_INFO_CMD
-
DEL_LINK_KEY
-
TWS_HANDSHAKE_CMD
-
DISC_MOBILE_CMD
-
MASTER_REQ_TSS
-
SLAVE_REQ_TSS
-
TWS_STOP_SNOOP
-
TWS_SYNC_PROFILE
-
TWS_SYNC_DONE
-
TWS_SYNC_CMD_INFO
-
TWS_PLAYBACK_INFO
-
NOTIFY_SLAVE_OTA_RESULT
-
TWS_ANC_CTRL
-
TWS_MASTER_REQ_CONNECT
-
TWS_CMD_DIRECT_SEND_START
-
TWS_SET_TRIGGER
-
TWS_SET_RETRIGGER
-
TWS_SET_A2DP_SCH
-
TWS_AUDIO_REJOIN
-
TWS_LOCAL_MEDIA_TRIGGER
-
TWS_AUDIO_JOIN_DIFF
-
TWS_CMD_DIRECT_SEND_END
Type Definitions
-
typedef void (*private_cmd_rx_handle)(const uint8_t *p_buff, uint16_t length)
Handles rx tws private command function pointer definition.
-
typedef uint16_t private_cmd_t
tws private command type definition.