components/bt: Add API and EVT for set AFH channels(BR/EDR)
This commit is contained in:
@@ -354,6 +354,9 @@ typedef UINT8 ACO[ACO_LEN]; /* Authenticated ciphering offset */
|
||||
#define COF_LEN 12
|
||||
typedef UINT8 COF[COF_LEN]; /* ciphering offset number */
|
||||
|
||||
#define AFH_CHANNELS_LEN 10
|
||||
typedef UINT8 AFH_CHANNELS[AFH_CHANNELS_LEN];
|
||||
|
||||
typedef struct {
|
||||
UINT8 qos_flags; /* TBD */
|
||||
UINT8 service_type; /* see below */
|
||||
@@ -687,6 +690,8 @@ typedef void (BT_LOG_FUNC) (int trace_type, const char *fmt_str, ...);
|
||||
typedef uint8_t BD_ADDR[BD_ADDR_LEN];
|
||||
#endif
|
||||
|
||||
/* */
|
||||
|
||||
// From bd.c
|
||||
|
||||
/*****************************************************************************
|
||||
|
||||
@@ -798,6 +798,14 @@ typedef struct {
|
||||
BD_ADDR rem_bda;
|
||||
} tBTM_LINK_QUALITY_RESULTS;
|
||||
|
||||
/* Structure returned with set AFH channels event (in tBTM_CMPL_CB callback function)
|
||||
** in response to BTM_SetAfhChannels call.
|
||||
*/
|
||||
typedef struct {
|
||||
tBTM_STATUS status;
|
||||
UINT8 hci_status;
|
||||
} tBTM_SET_AFH_CHANNELS_RESULTS;
|
||||
|
||||
/* Structure returned with read inq tx power quality event (in tBTM_CMPL_CB callback function)
|
||||
** in response to BTM_ReadInquiryRspTxPower call.
|
||||
*/
|
||||
@@ -4098,6 +4106,18 @@ void BTM_PCM2Setup_Write (BOOLEAN clk_master, tBTM_VSC_CMPL_CB *p_arc_cb);
|
||||
*******************************************************************************/
|
||||
//extern
|
||||
tBTM_CONTRL_STATE BTM_PM_ReadControllerState(void);
|
||||
|
||||
/*******************************************************************************
|
||||
**
|
||||
** Function BTM_SetAfhChannels
|
||||
**
|
||||
** Description This function is called to set AFH channels
|
||||
**
|
||||
** Returns status of the operation
|
||||
**
|
||||
*******************************************************************************/
|
||||
tBTM_STATUS BTM_SetAfhChannels (AFH_CHANNELS channels, tBTM_CMPL_CB *p_afh_channels_cmpl_cback);
|
||||
|
||||
/*
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
||||
@@ -520,6 +520,8 @@ BOOLEAN btsnd_hcic_change_name(BD_NAME name);
|
||||
|
||||
#define HCIC_WRITE_PARAM3_PARAM_OFF 0
|
||||
|
||||
/* set AFH channels */
|
||||
BOOLEAN btsnd_hcic_set_afh_channels (AFH_CHANNELS channels);
|
||||
#define HCIC_PARAM_SIZE_SET_AFH_CHANNELS 10
|
||||
|
||||
BOOLEAN btsnd_hcic_write_pin_type(UINT8 type); /* Write PIN Type */
|
||||
|
||||
Reference in New Issue
Block a user