Cordio Stack and Cordio Profiles  r2p3-02rel0
bda.h File Reference

Bluetooth device address utilities. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

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

Typedefs

typedef uint8_t bdAddr_t[BDA_ADDR_LEN]
 BD address data type.
 

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_tBdaClr (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...
 

Description

Bluetooth device address utilities.

Copyright (c) 2009-2018 Arm Ltd. All Rights Reserved. ARM Ltd. confidential and proprietary.

IMPORTANT. Your use of this file is governed by a Software License Agreement ("Agreement") that must be accepted in order to download or otherwise receive a copy of this file. You may not use or copy this file for any purpose other than as described in the Agreement. If you do not agree to all of the terms of the Agreement do not use this file and delete all copies in your possession or control; if you do not have a copy of the Agreement, you must contact ARM Ltd. prior to any use, copying or further distribution of this software.

Definition in file bda.h.