rehome a declaration
This commit is contained in:
parent
e49d800d20
commit
93033eca69
1 changed files with 10 additions and 10 deletions
20
public/Gap.h
20
public/Gap.h
|
@ -82,6 +82,16 @@ public:
|
|||
CENTRAL = 0x2, /**< Central Role. */
|
||||
};
|
||||
|
||||
struct AdvertisementCallbackParams_t {
|
||||
Address_t peerAddr;
|
||||
int8_t rssi;
|
||||
bool isScanResponse;
|
||||
AdvertisementType_t type;
|
||||
uint8_t advertisingDataLen;
|
||||
const uint8_t *advertisingData;
|
||||
};
|
||||
typedef FunctionPointerWithContext<const AdvertisementCallbackParams_t *> AdvertisementReportCallback_t;
|
||||
|
||||
enum SecurityMode_t {
|
||||
SECURITY_MODE_NO_ACCESS,
|
||||
SECURITY_MODE_ENCRYPTION_OPEN_LINK, /**< require no protection, open link. */
|
||||
|
@ -159,16 +169,6 @@ public:
|
|||
typedef void (*LinkSecuredCallback_t)(Handle_t handle, SecurityMode_t securityMode);
|
||||
typedef void (*PasskeyDisplayCallback_t)(Handle_t handle, const Passkey_t passkey);
|
||||
|
||||
struct AdvertisementCallbackParams_t {
|
||||
Address_t peerAddr;
|
||||
int8_t rssi;
|
||||
bool isScanResponse;
|
||||
AdvertisementType_t type;
|
||||
uint8_t advertisingDataLen;
|
||||
const uint8_t *advertisingData;
|
||||
};
|
||||
typedef FunctionPointerWithContext<const AdvertisementCallbackParams_t *> AdvertisementReportCallback_t;
|
||||
|
||||
friend class BLEDevice;
|
||||
|
||||
private:
|
||||
|
|
Loading…
Reference in a new issue