This module implements the Link Database Module
§ linkDB_Authenticated
Check to see if the physical link is authenticated.
- Parameters
-
connectionHandle | controller link connection handle. |
- Returns
- TRUE if the link is authenticated
-
FALSE, otherwise.
§ linkDB_Bonded
Check to see if the physical link is bonded.
- Parameters
-
connectionHandle | controller link connection handle. |
- Returns
- TRUE if the link is bonded
-
FALSE, otherwise.
§ linkDB_Encrypted
Check to see if the physical link is encrypted.
- Parameters
-
connectionHandle | controller link connection handle. |
- Returns
- TRUE if the link is encrypted
-
FALSE, otherwise.
§ linkDB_Up
#define linkDB_Up |
( |
|
connectionHandle | ) |
( LL_ConnActive( connectionHandle ) == LL_STATUS_SUCCESS ? TRUE : FALSE ) |
Check to see if a physical link is up (connected).
- Parameters
-
connectionHandle | controller link connection handle. |
- Returns
- TRUE if the link is up
-
FALSE, otherwise.
§ linkDB_GetInfo()
uint8 linkDB_GetInfo |
( |
uint16 |
connectionHandle, |
|
|
linkDBInfo_t * |
pInfo |
|
) |
| |
Get information about a link
Copies all of the link information into pInfo. Uses the connection handle to search the link database.
- Parameters
-
connectionHandle | controller link connection handle. |
pInfo | output parameter to copy the link information |
- Returns
- SUCCESS
-
FAILURE connection wasn't found
§ linkDB_NumActive()
uint8 linkDB_NumActive |
( |
void |
| ) |
|
Return the number of active connections
- Returns
- the number of active connections
§ linkDB_NumConns()
uint8 linkDB_NumConns |
( |
void |
| ) |
|
Return the maximum number of connections supported.
- Returns
- the number of connections supported
§ linkDB_State()
uint8 linkDB_State |
( |
uint16 |
connectionHandle, |
|
|
uint8 |
state |
|
) |
| |
Check to see if a physical link is in a specific state.
- Parameters
-
- Returns
- TRUE if the link is found and state is set in state flags.
-
FALSE otherwise.