45 lines
1.2 KiB
C
45 lines
1.2 KiB
C
/*
|
|
* Copyright (c) CompanyNameMagicTag. 2022. All rights reserved.
|
|
* Description: BluetoothHeadsetEvent.
|
|
*/
|
|
#ifndef BLUETOOTH_HEADSET_EVENT_H
|
|
#define BLUETOOTH_HEADSET_EVENT_H
|
|
|
|
#include "bts_def.h"
|
|
#include "bts_br_gap.h"
|
|
#include "td_type.h"
|
|
#include "bt_audio.h"
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
enum {
|
|
AVRCP_SRV_PRESS_VALUE,
|
|
AVRCP_SRV_RELEASED_VALUE,
|
|
AVRCP_SRV_INIT_VALUE
|
|
};
|
|
|
|
typedef struct {
|
|
td_pvoid stream_hdl;
|
|
uint8_t loc_volume;
|
|
uint8_t play_stat;
|
|
uint8_t dir_forward;
|
|
uint8_t avrcp_button_flag;
|
|
bd_addr_t bd_addr;
|
|
uint8_t reg_cap_auto;
|
|
uint8_t resrv;
|
|
profile_connect_state_t avrcp_srv_conn_stat;
|
|
} BtAvrcpTgInf;
|
|
|
|
void UsingPressButtonStatusCallback(td_u32 keyOperation, td_u32 keyValue);
|
|
void MediaStatusCallback(bt_avrcp_tg_evt_status_param *eventStatusParam);
|
|
void PressButtonStatusCallback(td_u32 keyOperation, td_u32 keyValue);
|
|
void ConnCtStateChangedCallback(const bd_addr_t *bdAddr, profile_connect_state_t state);
|
|
void ConnectTgStateChangedCallback(const bd_addr_t *bdAddr, profile_connect_state_t state);
|
|
void InitBtHeadsetEvent(void);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif // BLUETOOTH_HEADSET_FUNCTION_BUTTONS_HS
|