Cordio Stack and Cordio Profiles  r2p3-02rel0

Functions

void SvcCoreAddGroup (void)
 Add the services to the attribute server. More...
 
void SvcCoreRemoveGroup (void)
 Remove the services from the attribute server. More...
 
void SvcCoreGattCbackRegister (attsReadCback_t readCback, attsWriteCback_t writeCback)
 Register callbacks for the service. More...
 
void SvcCoreGapCbackRegister (attsReadCback_t readCback, attsWriteCback_t writeCback)
 Register callbacks for the service. More...
 
void SvcCoreGapCentAddrResUpdate (bool_t value)
 Update the central address resolution attribute value. More...
 
void SvcCoreGapAddRpaoCh (void)
 Add the Resolvable Private Address Only (RPAO) characteristic to the GAP service. The RPAO characteristic should be added only when DM Privacy is enabled. More...
 

GAP Service Handles

enum  {
  GAP_SVC_HDL = GAP_START_HDL,
  GAP_DN_CH_HDL,
  GAP_DN_HDL,
  GAP_AP_CH_HDL,
  GAP_AP_HDL,
  GAP_CAR_CH_HDL,
  GAP_CAR_HDL,
  GAP_RPAO_CH_HDL,
  GAP_RPAO_HDL,
  GAP_MAX_HDL
}
 GAP service handle. More...
 
#define GAP_START_HDL   0x01
 GAP start handle.
 
#define GAP_END_HDL   (GAP_MAX_HDL - 3)
 GAP end handle.
 

GATT Service Handles

enum  {
  GATT_SVC_HDL = GATT_START_HDL,
  GATT_SC_CH_HDL,
  GATT_SC_HDL,
  GATT_SC_CH_CCC_HDL,
  GATT_MAX_HDL
}
 GATT service handles. More...
 
#define GATT_START_HDL   0x10
 GATT start handle.
 
#define GATT_END_HDL   (GATT_MAX_HDL - 1)
 GATT end handle.
 

Description

Enumeration Type Documentation

anonymous enum

GAP service handle.

Enumerator
GAP_SVC_HDL 

GAP service declaration.

GAP_DN_CH_HDL 

Device name characteristic.

GAP_DN_HDL 

Device name.

GAP_AP_CH_HDL 

Appearance characteristic.

GAP_AP_HDL 

Appearance.

GAP_CAR_CH_HDL 

Central address resolution characteristic.

GAP_CAR_HDL 

Central address resolution.

GAP_RPAO_CH_HDL 

Resolvable private address only characteristic.

GAP_RPAO_HDL 

Resolvable private address only.

GAP_MAX_HDL 

GAP maximum handle.

Definition at line 60 of file svc_core.h.

61 {
62  GAP_SVC_HDL = GAP_START_HDL, /*!< \brief GAP service declaration */
63  GAP_DN_CH_HDL, /*!< \brief Device name characteristic */
64  GAP_DN_HDL, /*!< \brief Device name */
65  GAP_AP_CH_HDL, /*!< \brief Appearance characteristic */
66  GAP_AP_HDL, /*!< \brief Appearance */
67  GAP_CAR_CH_HDL, /*!< \brief Central address resolution characteristic */
68  GAP_CAR_HDL, /*!< \brief Central address resolution */
69  GAP_RPAO_CH_HDL, /*!< \brief Resolvable private address only characteristic */
70  GAP_RPAO_HDL, /*!< \brief Resolvable private address only */
71  GAP_MAX_HDL /*!< \brief GAP maximum handle */
72 };
Resolvable private address only characteristic.
Definition: svc_core.h:69
Appearance characteristic.
Definition: svc_core.h:65
Central address resolution.
Definition: svc_core.h:68
Resolvable private address only.
Definition: svc_core.h:70
GAP maximum handle.
Definition: svc_core.h:71
GAP service declaration.
Definition: svc_core.h:62
#define GAP_START_HDL
GAP start handle.
Definition: svc_core.h:39
Central address resolution characteristic.
Definition: svc_core.h:67
Device name.
Definition: svc_core.h:64
Appearance.
Definition: svc_core.h:66
Device name characteristic.
Definition: svc_core.h:63
anonymous enum

GATT service handles.

Enumerator
GATT_SVC_HDL 

GATT service declaration.

GATT_SC_CH_HDL 

Service changed characteristic.

GATT_SC_HDL 

Service changed.

GATT_SC_CH_CCC_HDL 

Service changed client characteristic configuration descriptor.

GATT_MAX_HDL 

GATT maximum handle.

Definition at line 80 of file svc_core.h.

81 {
82  GATT_SVC_HDL = GATT_START_HDL, /*!< \brief GATT service declaration */
83  GATT_SC_CH_HDL, /*!< \brief Service changed characteristic */
84  GATT_SC_HDL, /*!< \brief Service changed */
85  GATT_SC_CH_CCC_HDL, /*!< \brief Service changed client characteristic configuration descriptor */
86  GATT_MAX_HDL /*!< \brief GATT maximum handle */
87 };
GATT service declaration.
Definition: svc_core.h:82
Service changed characteristic.
Definition: svc_core.h:83
Service changed.
Definition: svc_core.h:84
GATT maximum handle.
Definition: svc_core.h:86
#define GATT_START_HDL
GATT start handle.
Definition: svc_core.h:47
Service changed client characteristic configuration descriptor.
Definition: svc_core.h:85

Function Documentation

void SvcCoreAddGroup ( void  )

Add the services to the attribute server.

Returns
None.
void SvcCoreRemoveGroup ( void  )

Remove the services from the attribute server.

Returns
None.
void SvcCoreGattCbackRegister ( attsReadCback_t  readCback,
attsWriteCback_t  writeCback 
)

Register callbacks for the service.

Parameters
readCbackRead callback function.
writeCbackWrite callback function.
Returns
None.
void SvcCoreGapCbackRegister ( attsReadCback_t  readCback,
attsWriteCback_t  writeCback 
)

Register callbacks for the service.

Parameters
readCbackRead callback function.
writeCbackWrite callback function.
Returns
None.
void SvcCoreGapCentAddrResUpdate ( bool_t  value)

Update the central address resolution attribute value.

Parameters
valueNew value.
Returns
None.
void SvcCoreGapAddRpaoCh ( void  )

Add the Resolvable Private Address Only (RPAO) characteristic to the GAP service. The RPAO characteristic should be added only when DM Privacy is enabled.

Returns
None.