Mistake on this page?
Report an issue in GitHub or email us
Data Structures | Macros | Enumerations | Functions
BB_API_BLE_PDU_FILT

Data Structures

struct  bbBlePerPduFiltParams_t
 Periodic PDU filtering parameters. More...
 
struct  bbBlePduFiltParams_t
 PDU filtering parameters. More...
 
struct  bbBlePduExtFiltParams_t
 Extended PDU filtering parameters. More...
 
struct  bbBlePduFiltResults_t
 PDU filtering results. More...
 

Macros

#define BB_BLE_PDU_FILT_FLAG_IS_SET(pFilt, flag)    (((pFilt)->flags & BB_BLE_PDU_FILT_FLAG_##flag) != 0)
 Check whether a flag is set. More...
 
#define BB_BLE_PDU_FILT_SET_FLAG(pFilt, flag)    (pFilt)->flags |= BB_BLE_PDU_FILT_FLAG_##flag;
 Set a flag. More...
 

Enumerations

Functions

bool_t BbBlePduFiltCheck (const uint8_t *pBuf, const bbBlePduFiltParams_t *pFiltParams, bool_t forceRes, bbBlePduFiltResults_t *pFiltResults)
 Check if PDU is allowed, i.e., should not be ignored. More...
 
bool_t BbBleExtPduFiltCheck (const bbBlePduExtFiltParams_t *pExtFiltParams, const bbBlePduFiltParams_t *pFiltParams, bool_t forceRes, bbBlePduFiltResults_t *pFiltResults)
 Check if PDU is allowed, i.e., should not be ignored. More...
 
static void BbBlePduFiltResultsGetPeerIdAddr (const bbBlePduFiltResults_t *pFiltResults, uint64_t *pPeerIdAddr, uint8_t *pPeerIdAddrType)
 Get the peer ID address. More...
 
static void BbBlePduFiltResultsGetPeerRpa (const bbBlePduFiltResults_t *pFiltResults, uint64_t *pPeerRpa)
 Get the peer RPA. More...
 

Detailed Description

Macro Definition Documentation

#define BB_BLE_PDU_FILT_FLAG_IS_SET (   pFilt,
  flag 
)    (((pFilt)->flags & BB_BLE_PDU_FILT_FLAG_##flag) != 0)

Check whether a flag is set.

Definition at line 42 of file bb_ble_api_pdufilt.h.

#define BB_BLE_PDU_FILT_SET_FLAG (   pFilt,
  flag 
)    (pFilt)->flags |= BB_BLE_PDU_FILT_FLAG_##flag;

Set a flag.

Definition at line 45 of file bb_ble_api_pdufilt.h.

Enumeration Type Documentation

anonymous enum

PDU filtering flags.

Enumerator
BB_BLE_PDU_FILT_FLAG_LOCAL_ADDR_MATCH_ENA 

Local address should be matched.

BB_BLE_PDU_FILT_FLAG_LOCAL_ADDR_MATCH_RAND 

Local address to match is a random address.

BB_BLE_PDU_FILT_FLAG_PEER_ADDR_MATCH_ENA 

Peer address should be matched.

BB_BLE_PDU_FILT_FLAG_PEER_ADDR_MATCH_RAND 

Peer address to match is a random address.

BB_BLE_PDU_FILT_FLAG_LOCAL_ADDR_RES_ENA 

Local address resolution is enabled.

BB_BLE_PDU_FILT_FLAG_LOCAL_ADDR_RES_OPT 

Local address resolution is optional.

BB_BLE_PDU_FILT_FLAG_PEER_ADDR_RES_ENA 

Peer address resolution is enabled.

Definition at line 48 of file bb_ble_api_pdufilt.h.

Function Documentation

bool_t BbBleExtPduFiltCheck ( const bbBlePduExtFiltParams_t pExtFiltParams,
const bbBlePduFiltParams_t pFiltParams,
bool_t  forceRes,
bbBlePduFiltResults_t pFiltResults 
)

Check if PDU is allowed, i.e., should not be ignored.

Parameters
pExtFiltParamsExtended filter parameters.
pFiltParamsFilter parameters.
forceResTRUE if address resolution should be forced.
pFiltResultsStorage for filter results.
Returns
TRUE if PDU is allowed, FALSE if PDU should be ignored.
bool_t BbBlePduFiltCheck ( const uint8_t *  pBuf,
const bbBlePduFiltParams_t pFiltParams,
bool_t  forceRes,
bbBlePduFiltResults_t pFiltResults 
)

Check if PDU is allowed, i.e., should not be ignored.

Parameters
pBufPDU buffer.
pFiltParamsFilter parameters.
forceResTRUE if address resolution should be forced.
pFiltResultsStorage for filter results.
Returns
TRUE if PDU is allowed, FALSE if PDU should be ignored.
static void BbBlePduFiltResultsGetPeerIdAddr ( const bbBlePduFiltResults_t pFiltResults,
uint64_t *  pPeerIdAddr,
uint8_t *  pPeerIdAddrType 
)
static

Get the peer ID address.

Parameters
pFiltResultsFilter results.
pPeerIdAddrStorage for peer ID address.
pPeerIdAddrTypeStorage for peer ID address type;

Definition at line 149 of file bb_ble_api_pdufilt.h.

static void BbBlePduFiltResultsGetPeerRpa ( const bbBlePduFiltResults_t pFiltResults,
uint64_t *  pPeerRpa 
)
static

Get the peer RPA.

Parameters
pFiltResultsFilter results.
pPeerRpaStorage for peer RPA or 0.

Definition at line 170 of file bb_ble_api_pdufilt.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.