mirror of https://github.com/ARMmbed/mbed-os.git
Added set_address_resolution method in GAP Pal with Cordio implementation
parent
7b4a813aca
commit
5734fca195
|
|
@ -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.
|
||||
*
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue