Typedefs

Modules

 Structures
 

Data Structures

struct  ble_prf_manager_cbs_t
 Profile manager callbacks. More...
 

Typedefs

typedef uint8_t(* prf_init_func_t) (void)
 Initialization of the Profile module. More...
 
typedef void(* prf_on_connect_func_t) (uint8_t conn_idx)
 Handles Connection creation. There is no need to recovery CCCD because stack will do that. More...
 
typedef void(* prf_on_disconnect_func_t) (uint8_t conn_idx, uint8_t reason)
 Handles Disconnection. There is no need to recovery CCCD because stack will do that. More...
 

Detailed Description

Typedef Documentation

◆ prf_init_func_t

typedef uint8_t(* prf_init_func_t) (void)

Initialization of the Profile module.

Note
This function performs all the initializations of the Profile module, and it will be automatically called after the ble_server_prf_add() or ble_client_prf_add() function.
  • Creation of database (if it's a service) and ble_gatts_srvc_db_create should be called.
  • Allocation of profile-required memory.
Return values
statuscode to know if profile initialization succeeds or not.

◆ prf_on_connect_func_t

typedef void(* prf_on_connect_func_t) (uint8_t conn_idx)

Handles Connection creation. There is no need to recovery CCCD because stack will do that.

Parameters
[in]conn_idxConnection index.

◆ prf_on_disconnect_func_t

typedef void(* prf_on_disconnect_func_t) (uint8_t conn_idx, uint8_t reason)

Handles Disconnection. There is no need to recovery CCCD because stack will do that.

Parameters
[in]conn_idxConnection index.
[in]reasonDisconnection reason.