mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-03-29 22:20:37 +00:00
allow for vendor-specific command to set public bd addr
This commit is contained in:
parent
ad108f5ede
commit
dda2afc516
@ -274,6 +274,7 @@ static const bt_control_t bt_control_cc256x = {
|
||||
bt_control_cc256x_next_cmd, // next_cmd
|
||||
NULL, // register_for_power_notifications
|
||||
NULL, // hw_error
|
||||
NULL, // set_bd_addr_cmd
|
||||
};
|
||||
|
||||
static const hci_uart_config_t hci_uart_config_cc256x = {
|
||||
|
@ -48,6 +48,7 @@
|
||||
#define __BT_CONTROL_H
|
||||
|
||||
#include <stdint.h>
|
||||
#include <btstack/utils.h>
|
||||
|
||||
#if defined __cplusplus
|
||||
extern "C" {
|
||||
@ -79,6 +80,12 @@ typedef struct {
|
||||
void (*register_for_power_notifications)(void (*cb)(POWER_NOTIFICATION_t event));
|
||||
|
||||
void (*hw_error)(void);
|
||||
|
||||
/** support for vendor-specific way to set BD ADDR - cmd has to be stored in hci_cmd_buffer
|
||||
* @return have command
|
||||
*/
|
||||
int (*set_bd_addr_cmd)(void * config, bd_addr_t addr, uint8_t *hci_cmd_buffer);
|
||||
|
||||
} bt_control_t;
|
||||
|
||||
#if defined __cplusplus
|
||||
|
Loading…
x
Reference in New Issue
Block a user