Added set_address_resolution method in GAP Pal with Cordio implementation

pull/6932/head
Donatien Garnier 2018-05-13 18:53:23 +01:00
parent 7b4a813aca
commit 5734fca195
2 changed files with 20 additions and 0 deletions

View File

@ -649,6 +649,19 @@ struct Gap {
disconnection_reason_t disconnection_reason
) = 0;
/** Enable or disable private addresses resolution
*
* @param enable whether to enable private addresses resolution
*
* @return BLE_ERROR_NONE if the request has been successfully sent or the
* appropriate error otherwise.
*
* @note: See Bluetooth 5 Vol 2 PartE: 7.8.44 LE Set Address Resolution Enable Command command.
*/
virtual ble_error_t set_address_resolution(
bool enable
) = 0;
/**
* Register a callback which will handle Gap events.
*

View File

@ -308,6 +308,13 @@ public:
return BLE_ERROR_NONE;
}
virtual ble_error_t set_address_resolution(
bool enable
) {
DmPrivSetAddrResEnable(enable);
return BLE_ERROR_NONE;
}
// singleton of the ARM Cordio client
static Gap& get_gap() {
static Gap _gap;