uint8_t dmConnId_t
Connection identifier.
void BasSendBattLevel(dmConnId_t connId, uint8_t idx, uint8_t level)
Send the battery level to the peer device.
void BasMeasBattStart(dmConnId_t connId, uint8_t timerEvt, uint8_t battCccIdx)
Start periodic battery level measurement. This function starts a timer to perform periodic battery me...
uint8_t threshold
Send battery level notification to peer when below this level.
wsfTimerTicks_t period
Battery measurement timer expiration period in seconds.
void BasMeasBattStop(dmConnId_t connId)
Stop periodic battery level measurement.
uint8_t wsfHandlerId_t
Event handler ID data type.
Battery service configurable parameters.
void BasInit(wsfHandlerId_t handlerId, basCfg_t *pCfg)
Initialize the battery service server.
unsigned short uint16_t
Unsigned 16-bit value.
uint16_t count
Perform battery measurement after this many timer periods.
uint32_t wsfTimerTicks_t
Timer ticks data type.
void BasProcMsg(wsfMsgHdr_t *pMsg)
Process received WSF message.
uint8_t BasReadCback(dmConnId_t connId, uint16_t handle, uint8_t operation, uint16_t offset, attsAttr_t *pAttr)
ATTS read callback for battery service used to read the battery level. Use this function as a paramet...
Attribute protocol client and server API.
Common message structure passed to event handler.
unsigned char uint8_t
Unsigned 8-bit value.