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)
| Handles Connection creation. More...
typedef void(* | prf_on_disconnect_func_t) (uint8_t conn_idx, uint8_t reason)
| Handles Disconnection. 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 77 of file ble_prf.h.

## ◆ 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_idx | Connection index.

Definition at line 86 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 96 of file ble_prf.h.