allow for vendor-specific command to set public bd addr

This commit is contained in:
matthias.ringwald@gmail.com 2015-02-10 21:30:12 +00:00
parent ad108f5ede
commit dda2afc516
2 changed files with 8 additions and 0 deletions

View File

@ -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 = {

View File

@ -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