![]() |
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. | |
| 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.
| void SvcBattAddGroup | ( | void | ) |
Add the services to the attribute server.
| void SvcBattRemoveGroup | ( | void | ) |
Remove the services from the attribute server.
| void SvcBattCbackRegister | ( | attsReadCback_t | readCback, |
| attsWriteCback_t | writeCback | ||
| ) |
Register callbacks for the service.
| readCback | Read callback function. |
| writeCback | Write callback function. |
| void* SvcBattAddGroupDyn | ( | void | ) |
Add the battery service using the dynamic attribute subsystem.