Cordio Stack and Cordio Profiles  r2p3-02rel0

Functions

void SvcBattAddGroup (void)
 Add the services to the attribute server. More...
 
void SvcBattRemoveGroup (void)
 Remove the services from the attribute server. More...
 
void SvcBattCbackRegister (attsReadCback_t readCback, attsWriteCback_t writeCback)
 Register callbacks for the service. More...
 
void * SvcBattAddGroupDyn (void)
 Add the battery service using the dynamic attribute subsystem. More...
 

Battery Service Handles

enum  {
  BATT_SVC_HDL = BATT_START_HDL,
  BATT_LVL_CH_HDL,
  BATT_LVL_HDL,
  BATT_LVL_CH_CCC_HDL,
  BATT_MAX_HDL
}
 Battery Service Handles. More...
 
#define BATT_START_HDL   0x60
 Service start handle.
 
#define BATT_END_HDL   (BATT_MAX_HDL - 1)
 Service end handle.
 

Description

Enumeration Type Documentation

anonymous enum

Battery Service Handles.

Enumerator
BATT_SVC_HDL 

Battery service declaration.

BATT_LVL_CH_HDL 

Battery level characteristic.

BATT_LVL_HDL 

Battery level.

BATT_LVL_CH_CCC_HDL 

Battery level CCCD.

BATT_MAX_HDL 

Maximum handle.

Definition at line 46 of file svc_batt.h.

47 {
48  BATT_SVC_HDL = BATT_START_HDL, /*!< \brief Battery service declaration */
49  BATT_LVL_CH_HDL, /*!< \brief Battery level characteristic */
50  BATT_LVL_HDL, /*!< \brief Battery level */
51  BATT_LVL_CH_CCC_HDL, /*!< \brief Battery level CCCD */
52  BATT_MAX_HDL /*!< \brief Maximum handle. */
53 };
Battery level characteristic.
Definition: svc_batt.h:49
Battery service declaration.
Definition: svc_batt.h:48
Battery level.
Definition: svc_batt.h:50
#define BATT_START_HDL
Service start handle.
Definition: svc_batt.h:38
Battery level CCCD.
Definition: svc_batt.h:51
Maximum handle.
Definition: svc_batt.h:52

Function Documentation

void SvcBattAddGroup ( void  )

Add the services to the attribute server.

Returns
None.
void SvcBattRemoveGroup ( void  )

Remove the services from the attribute server.

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

Register callbacks for the service.

Parameters
readCbackRead callback function.
writeCbackWrite callback function.
Returns
None.
void* SvcBattAddGroupDyn ( void  )

Add the battery service using the dynamic attribute subsystem.

Returns
None.