This file provides definitions and function prototypes for the Bluetooth LE Controller Manager (BLECM).
More...
|
void | blecm_init (void) |
| BLECM Initialization. More...
|
|
void | blecm_start (void) |
| BLECM Start. More...
|
|
void | blecm_setFilterEnable (UINT8 enable) |
| Enable/Disable CFA filter. More...
|
|
UINT8 | blecm_getFilterEnable (void) |
| Reading current CFA filter value. More...
|
|
void | blecm_regAppEvtHandler (BLECM_APP_EVT_ENUM, BLECM_NO_PARAM_FUNC func) |
| Register Event Handler. More...
|
|
void | blecm_regAclRxHandler (void *) |
| Register for ACL Data receive. More...
|
|
void | blecm_regEncryptionChangedHandler (void *) |
| Register for Encryption Changed event. More...
|
|
void | blecm_activateModule (INT32 moduleIdx, BLECM_FUNC_WITH_PARAM handler) |
|
void | blecm_clearActivateModule (INT32 moduleIdx) |
|
void | blecm_startTimerSource (INT32 id, BLECM_FUNC_WITH_PARAM appCb, UINT32 ticks) |
| Starts a software timer. More...
|
|
void | blecm_stopTimerSource (INT32 id) |
| Stopps a software timer. More...
|
|
void | blecm_refreshConnIdletimer (void) |
| Restarts the connection idle timer. More...
|
|
void | blecm_startConnIdleTimer (BLEAPP_TIMER_CB cb) |
| Starts the connection idle timer. More...
|
|
void | blecm_stopConnIdleTimer (void) |
| Stops the connection idle timer. More...
|
|
int | blecm_needToResolveRandomAddress (void) |
|
void | blecm_enableRandomAddressResolution (void) |
| Enable address resolution. More...
|
|
void | blecm_disableRandomAddressResolution (void) |
| Disable address resolution. More...
|
|
void | blecm_storeRPA (UINT8 *rpa, INT32 idx) |
| Stores random public address. More...
|
|
int | blecm_lookupAddress (INT32 type, UINT32 *rpa) |
| Looks up the given random public address in the key store. More...
|
|
int | blecm_resolveRPA (INT32 type, UINT32 *rpa) |
| Lookup and resolve address. More...
|
|
void | blecm_log (char *) |
|
void | blecm_log1 (char *str, INT32 val) |
|
void | blecm_logBytes (char *str, UINT8 *data, INT32 len) |
|
void | blecm_log_byteArray (UINT8 *, INT32 len) |
|
void | blecm_log_6 (char *, INT32, INT32, INT32, INT32, INT32, INT32) |
|
void | blecm_setAdvEnable (INT32 enableFlag) |
|
void | blecm_setAdvParam (INT32 interval, INT32 advType, INT32 advAdrType, INT32 advChanMap, INT32 advFilterPolicy, INT32 initAdrType, UINT8 *initAdr) |
|
void | blecm_hciReset (void) |
|
void | blecm_hciReadBdAddr (void) |
|
void | blecm_getRand (void) |
|
void | blecm_hciEncrypt (UINT8 *key, UINT8 *text) |
|
void | blecm_hciLTKReply (UINT16 handle, UINT8 *ltk) |
|
void | blecm_hciLTKNegReply (UINT16 handle) |
|
void | blecm_disconnect (INT32 errCode) |
|
void | blecm_setAdvData (UINT8 *data, INT32 len) |
|
void | blecm_setScanRspData (UINT8 *data, INT32 len) |
|
UINT32 | blecm_setAdvDuringConnEnable (int enableFlag) |
| Enable/disable Advertisement during connection. More...
|
|
void | blecm_enablescatternet (void) |
| Enable scatternet in the controller. More...
|
|
void | blecm_setTxPowerInConnection (INT8 maxTxPowerDb) |
| Sets the maximum TX power. More...
|
|
void | blecm_EndTest (void) |
| Ends all LE tests that were started with blecm_StartReveiverTest or blecm_StartTransmitterTest. More...
|
|
UINT8 | blecm_StartReveiverTest (UINT8 channel) |
| Starts the standard LE receiver test on the given channel. More...
|
|
UINT8 | blecm_StartTransmitterTest (UINT8 channel, UINT8 packetLength, UINT8 packetType) |
| Starts the standard LE transmitter test with the given parameters. More...
|
|
void | blecm_startAdv (INT32 advType, INT32 advInterval, INT32 advChannel, INT32 advAdrType, INT32 advFilterPolicy, INT32 initiatorAdrType, UINT8 *initiatorAdr) |
| Set advertising parameters and starts advertisements. More...
|
|
INT32 | blecm_getAvailableTxBuffers (void) |
| Gets the number of available transmit buffers in the controller.
|
|
INT32 | blecm_incAvailableTxBuffers (void) |
|
INT32 | blecm_decAvailableTxBuffers (void) |
|
void | blecm_setAvailableTxBuffers (INT32 val) |
|
INT32 | blecm_needToSelectAddress (void) |
|
INT32 | blecm_SelectAddress (BLECM_SELECT_ADDR *p_select_addr, UINT8 num) |
| Clears and then adds the given addresses to the filter accept list. More...
|
|
INT32 | blecm_SelectTargetAddress (BLECM_SELECT_ADDR *p_select_addr, UINT8 num) |
|
void | blecm_enableAddressSelection (void) |
| Enables filter accept list at the stack leyer.
|
|
void | blecm_disableAddressSelection (void) |
| Disables filter accept list at the stack leyer. More...
|
|
void | blecm_startScan (INT32 scanType, INT32 scanInterval, INT32 scanWindow, INT32 scanAdrType, INT32 scanFilterPolicy, INT32 filterDuplicates) |
| Configure LE scan parameters and start LE scan. More...
|
|
void | blecm_setScanParam (INT32 scanType, INT32 scanInterval, INT32 scanWindow, INT32 scanAdrType, INT32 scanFilterPolicy) |
| Set the LE scan parameters. More...
|
|
void | blecm_scanOn (INT32 filterDuplicates) |
| Enable LE scans. More...
|
|
void | blecm_setScanEnable (INT32 enableFlag, INT32 filterDuplicates) |
| Configure controller for LE scan. More...
|
|
void | blecm_CreateConnection (INT32 scanInterval, INT32 scanWindow, INT32 initiatorFilterPolicy, INT32 peerAddressType, char *peerAddress, INT32 ownAddressType, INT32 connMinInterval, INT32 connMaxInterval, INT32 connLatency, INT32 supervisionTimeout, INT32 connMinEventLen, INT32 connMaxEventLen) |
| Create a Link Layer connection to a connectable advertiser. More...
|
|
void | blecm_CreateConnectionCancel (void) |
| Cancel attempt to create a Link Layer connection. More...
|
|
void | blecm_ConnectionUpdate (INT32 connHandle, INT32 connMinInterval, INT32 connMaxInterval, INT32 connLatency, INT32 supervisionTimeout, INT32 connMinEventLen, INT32 connMaxEventLen) |
| Connection update request. More...
|
|
void | blecm_RegleAdvReportCb (BLECM_FUNC_WITH_PARAM cb) |
| Register to receive advertisement report. More...
|
|
void | blecm_startEncryption (INT32 Connection_Handle, UINT8 *Random_Number, INT32 Encrypted_Diversifier, UINT8 *Long_Term_Key) |
|
INT32 | blecm_needToConMux (void) |
|
void | blecm_enableConMux (void) |
| Enable connection muxing. More...
|
|
void | blecm_disableConMux (void) |
| Disable connection muxing. More...
|
|
void | blecm_ConMuxInit (INT32 con_num) |
| Initialize connection mux. More...
|
|
void | blecm_AddConMux (INT32 index, UINT16 con_handle, UINT16 db_size, void *p_db, void *dev_pinfo, void *smp_pinfo) |
| Add the connection to the list of known connections we can mux between. More...
|
|
void | blecm_DelConMux (int index) |
| Delete the connection mux/context at the given index. More...
|
|
INT32 | blecm_FindFreeConMux (void) |
| Find a free connection mux/context slot. More...
|
|
INT32 | blecm_FindConMux (UINT16 con_handle) |
| Look up the connection information structure given a handle. More...
|
|
UINT16 | blecm_GetDbSizeConMux (UINT16 con_handle) |
| Get the GATT DB size given a connection handle. More...
|
|
void * | blecm_GetDbConMux (UINT16 con_handle) |
| Get the GATT DB given a connection handle. More...
|
|
void * | blecm_GetDevConMux (UINT16 con_handle) |
| Get the device information given a connection handle. More...
|
|
void * | blecm_GetSmpConMux (UINT16 con_handle) |
| Get the SMP information given a connection handle. More...
|
|
void | blecm_ResetPtrConMux (void) |
| Reset the connection context.
|
|
void | blecm_SetPtrConMux (UINT16 con_handle) |
| Set all the connection contexts to the one for the given connection. More...
|
|
INT32 | blecm_needToGATTDB16 (void) |
|
void | blecm_enableGATTDB16 (void) |
| Enable 16-bit length fields in application GATT DB. More...
|
|
void | blecm_disableGATTDB16 (void) |
| Disable 16-bit length fields in app GATT DB.
|
|
This file provides definitions and function prototypes for the Bluetooth LE Controller Manager (BLECM).