None

Dependents:   nRF51822

Fork of nrf51-sdk by Lancaster University

Embed: (wiki syntax)

« Back to documentation index

peer_manager_types.h File Reference

peer_manager_types.h File Reference

Go to the source code of this file.

Data Structures

struct  pm_peer_data_bonding_t
 Data associated with a bond to a peer. More...
struct  pm_peer_data_local_gatt_db_t
 Data on a local GATT database. More...
struct  pm_peer_data_local_gatt_db_flash_t
 Data on a local GATT database, as formatted in flash. More...
struct  pm_peer_data_remote_gatt_db_t
 Data on a remote GATT database. More...
struct  pm_peer_data_remote_gatt_db_flash_t
 Data on a remote GATT database, as formatted in flash. More...
union  pm_peer_data_unit_t
 Union of all data associated with one peer. More...
union  pm_peer_data_unit_const_t
 Immutable version of pm_peer_data_unit_t. More...
union  pm_peer_data_unit_flash_t
 Data from pm_peer_data_unit_t, as mapped in flash. More...
struct  pm_peer_data_t
 One piece of data associated with a peer, together with the type. More...
struct  pm_peer_data_const_t
 Immutable version of pm_peer_data_t. More...
struct  pm_peer_data_flash_t
 Data from pm_peer_data_t, as mapped in flash. More...

Typedefs

typedef uint16_t pm_peer_id_t
 Handle to uniquely identify a peer for which we have persistently stored data.
typedef uint32_t pm_prepare_token_t
 Typedef for type used for write prepares.
typedef uint32_t pm_store_token_t
 Typedef for type used to hold reference to stored item in flash.

Enumerations

enum  pm_sec_error_code_t { PM_SEC_ERROR_CODE_PIN_OR_KEY_MISSING = BLE_HCI_STATUS_CODE_PIN_OR_KEY_MISSING, PM_SEC_ERROR_CODE_MIC_FAILURE = BLE_HCI_CONN_TERMINATED_DUE_TO_MIC_FAILURE, PM_SEC_ERROR_SMP_TIMEOUT }
 

Errors originating from the Peer Manager module.

More...
enum  pm_sec_procedure_t { PM_LINK_SECURED_PROCEDURE_ENCRYPTION, PM_LINK_SECURED_PROCEDURE_BONDING, PM_LINK_SECURED_PROCEDURE_PAIRING }
 

Enumeration describing the different procedures that can lead to an encrypted link.

More...
enum  pm_peer_data_id_t
 

The different types of data associated with a peer.

More...

Functions

static __INLINE uint16_t PM_BONDING_DATA_N_WORDS (void)
 Function for calculating the flash size of bonding data.
static __INLINE uint16_t PM_SC_STATE_N_WORDS (void)
 Function for calculating the flash size of service changed pending state.
static __INLINE uint16_t PM_LOCAL_DB_N_WORDS (uint16_t local_db_len)
 Function for calculating the flash size of local GATT database data.
static __INLINE uint16_t PM_LOCAL_DB_LEN (uint16_t n_words)
 Function for calculating the length of a local GATT database attribute array.
static __INLINE uint16_t PM_REMOTE_DB_N_WORDS (uint16_t service_count)
 Function for calculating the flash size of remote GATT database data.
static __INLINE bool PM_PEER_DATA_ID_IS_VALID (pm_peer_data_id_t data_id)
 Macro saying whether a data_id is valid, i.e.

Detailed Description

Definition in file peer_manager_types.h.