38 #define BATT_START_HDL 0x60 39 #define BATT_END_HDL (BATT_MAX_HDL - 1) uint8_t(* attsWriteCback_t)(dmConnId_t connId, uint16_t handle, uint8_t operation, uint16_t offset, uint16_t len, uint8_t *pValue, attsAttr_t *pAttr)
Attribute group write callback.
Battery level characteristic.
Battery service declaration.
void SvcBattAddGroup(void)
Add the services to the attribute server.
#define BATT_START_HDL
Service start handle.
void * SvcBattAddGroupDyn(void)
Add the battery service using the dynamic attribute subsystem.
void SvcBattRemoveGroup(void)
Remove the services from the attribute server.
uint8_t(* attsReadCback_t)(dmConnId_t connId, uint16_t handle, uint8_t operation, uint16_t offset, attsAttr_t *pAttr)
Attribute group read callback.
void SvcBattCbackRegister(attsReadCback_t readCback, attsWriteCback_t writeCback)
Register callbacks for the service.