Modules | Classes | Typedefs
Typedefs
BLE » Profile » Profile Common

## Modules
| Structures

## Classes
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, const ble_gap_bdaddr_t *p_peer_bd_addr)
| 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

  status | code to know if profile initialization succeeds or not.

Definition at line 78 of file ble_prf.h.

## ◆ prf_on_connect_func_t

typedef void(* prf_on_connect_func_t) (uint8_t conn_idx, const ble_gap_bdaddr_t *p_peer_bd_addr)

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

Parameters

  [in] | conn_idx | Connection index.
  [in] | p_peer_bd_addr | The pointer for the peer identity address.

Definition at line 88 of file ble_prf.h.

## ◆ 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_idx | Connection index.
  [in] | reason | Disconnection reason.

Definition at line 98 of file ble_prf.h.