Mistake on this page?
Report an issue in GitHub or email us
Macros | Typedefs | Functions
bda.h File Reference

Bluetooth device address utilities. More...

Go to the source code of this file.

Macros

#define BDA_ADDR_LEN   6
 BD address length. More...
 
#define BDA_ADDR_STR_LEN   (BDA_ADDR_LEN * 2)
 BD address string length. More...
 
#define BDA_ADDR_IS_RPA(bda)    (((bda)[5] & 0xC0) == 0x40)
 BDA RPA check. More...
 
#define BDA_ADDR_IS_NRPA(bda)    (((bda)[5] & 0xC0) == 0x00)
 BDA NRPA check. More...
 
#define BDA_ADDR_IS_STATIC(bda)    (((bda)[5] & 0xC0) == 0xC0)
 BDA static random check. More...
 
#define BDA64_ADDR_IS_RPA(bda64)    ((((bda64) >> 40) & 0xC0) == 0x40)
 BDA64 RPA check. More...
 
#define BDA64_ADDR_IS_NRPA(bda64)    ((((bda64) >> 40) & 0xC0) == 0x00)
 BDA64 NRPA check. More...
 
#define BDA64_ADDR_IS_STATIC(bda64)    ((((bda64) >> 40) & 0xC0) == 0xC0)
 BDA64 static random check. More...
 

Typedefs

typedef uint8_t bdAddr_t[6]
 BD address data type. More...
 

Functions

void BdaCpy (uint8_t *pDst, const uint8_t *pSrc)
 Copy a BD address from source to destination. More...
 
bool_t BdaCmp (const uint8_t *pAddr1, const uint8_t *pAddr2)
 Compare two BD addresses. More...
 
uint8_t * BdaClr (uint8_t *pDst)
 Set a BD address to all zeros. More...
 
bool_t BdaIsZeros (const uint8_t *pAddr)
 Check if a BD address is all zeros. More...
 
char * Bda2Str (const uint8_t *pAddr)
 Convert a BD address to a string. More...
 

Detailed Description

Bluetooth device address utilities.

Copyright (c) 2009-2018 Arm Ltd. All Rights Reserved.

Copyright (c) 2019-2020 Packetcraft, Inc.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Definition in file bda.h.

Important Information for this Arm website

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies. If you are not happy with the use of these cookies, please review our Cookie Policy to learn how they can be disabled. By disabling cookies, some features of the site will not work.