Bluetooth: HCI: Re-organize vendor read static address handling
Add header definition for bt_read_static_addr function. Declaring it without a header definition will not give any compilation error when function definition changes. Refactor nRF SoC specific code into nRF specific source files and provide weak definitions when these are not implemented. This will make it easier to add handlers per vendor. Signed-off-by: Joakim Andersson <joakim.andersson@nordicsemi.no>
This commit is contained in:
parent
0095daefbc
commit
e4538c6807
7 changed files with 129 additions and 121 deletions
|
@ -10,6 +10,7 @@
|
|||
#ifndef ZEPHYR_INCLUDE_BLUETOOTH_ADDR_H_
|
||||
#define ZEPHYR_INCLUDE_BLUETOOTH_ADDR_H_
|
||||
|
||||
#include <string.h>
|
||||
#include <zephyr/types.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
|
|
@ -20,6 +20,7 @@
|
|||
#include <stdbool.h>
|
||||
#include <net/buf.h>
|
||||
#include <bluetooth/buf.h>
|
||||
#include <bluetooth/hci_vs.h>
|
||||
#include <device.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
@ -95,6 +96,15 @@ int bt_recv(struct net_buf *buf);
|
|||
*/
|
||||
int bt_recv_prio(struct net_buf *buf);
|
||||
|
||||
/** @brief Read static addresses from the controller.
|
||||
*
|
||||
* @param addrs Random static address and Identity Root (IR) array.
|
||||
* @param size Size of array.
|
||||
*
|
||||
* @return Number of addresses read.
|
||||
*/
|
||||
u8_t bt_read_static_addr(struct bt_hci_vs_static_addr addrs[], u8_t size);
|
||||
|
||||
/** Possible values for the 'bus' member of the bt_hci_driver struct */
|
||||
enum bt_hci_driver_bus {
|
||||
BT_HCI_DRIVER_BUS_VIRTUAL = 0,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue