38} bt_hc_chip_power_state_t;
44 BT_HC_LPM_WAKE_ASSERT,
45 BT_HC_LPM_WAKE_DEASSERT,
46} bt_hc_low_power_event_t;
58} bt_hc_logging_state_t;
65} bt_hc_transmit_result_t;
69 BT_HC_PRELOAD_SUCCESS,
71} bt_hc_preload_result_t;
75 BT_HC_POSTLOAD_SUCCESS,
77} bt_hc_postload_result_t;
83} bt_hc_lpm_request_result_t;
89 BT_HC_STATUS_NOT_READY,
92 BT_HC_STATUS_CORRUPTED_BUFFER
103typedef void (*hostwake_ind_cb)(bt_hc_low_power_event_t event);
106typedef void (*preload_result_cb)(TRANSAC transac, bt_hc_preload_result_t result);
109typedef void (*postload_result_cb)(TRANSAC transac, bt_hc_postload_result_t result);
112typedef void (*lpm_result_cb)(bt_hc_lpm_request_result_t result);
115typedef char* (*alloc_mem_cb)(
int size);
118typedef int (*dealloc_mem_cb)(TRANSAC transac,
char *p_buf);
121typedef int (*tx_result_cb)(TRANSAC transac,
char *p_buf, bt_hc_transmit_result_t result);
125typedef int (*data_ind_cb)(TRANSAC transac,
char *p_buf,
int len);
132 preload_result_cb preload_cb;
135 postload_result_cb postload_cb;
138 lpm_result_cb lpm_cb;
141 hostwake_ind_cb hostwake_ind;
147 dealloc_mem_cb dealloc;
150 data_ind_cb data_ind;
153 tx_result_cb tx_result;
173 int (*
lpm)(bt_hc_low_power_event_t event);
188 int (*
logging)(bt_hc_logging_state_t state,
char *p_path);
void(* set_power)(bt_hc_chip_power_state_t state)
int(* lpm)(bt_hc_low_power_event_t event)
void(* preload)(TRANSAC transac)
int(* init)(const bt_hc_callbacks_t *p_cb, unsigned char *local_bdaddr)
int(* transmit_buf)(TRANSAC transac, char *p_buf, int len)
int(* set_rxflow)(bt_rx_flow_state_t state)
void(* postload)(TRANSAC transac)
int(* logging)(bt_hc_logging_state_t state, char *p_path)