Cordio Stack and Cordio Profiles  r2p3-02rel0
bas_api.h File Reference

Battery service server. More...

#include "wsf_timer.h"
#include "att_api.h"
Include dependency graph for bas_api.h:

Go to the source code of this file.

Data Structures

struct  basCfg_t
 Battery service configurable parameters. More...
 

Functions

void BasInit (wsfHandlerId_t handlerId, basCfg_t *pCfg)
 Initialize the battery service server. More...
 
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 measurements. More...
 
void BasMeasBattStop (dmConnId_t connId)
 Stop periodic battery level measurement. More...
 
void BasProcMsg (wsfMsgHdr_t *pMsg)
 Process received WSF message. More...
 
void BasSendBattLevel (dmConnId_t connId, uint8_t idx, uint8_t level)
 Send the battery level to the peer device. More...
 
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 parameter to SvcBattCbackRegister(). More...
 

Description

Battery service server.

Copyright (c) 2012-2018 Arm Ltd. All Rights Reserved. ARM Ltd. confidential and proprietary.

IMPORTANT. Your use of this file is governed by a Software License Agreement ("Agreement") that must be accepted in order to download or otherwise receive a copy of this file. You may not use or copy this file for any purpose other than as described in the Agreement. If you do not agree to all of the terms of the Agreement do not use this file and delete all copies in your possession or control; if you do not have a copy of the Agreement, you must contact ARM Ltd. prior to any use, copying or further distribution of this software.

Definition in file bas_api.h.