1 /*****************************************************************************
3 ** Name: srvc_battery_int.h
5 ** Description: this file contains the Battery service internal interface
9 ** Copyright (c) 1999-2008, Broadcom Corp., All Rights Reserved.
10 ** WIDCOMM Bluetooth Core. Proprietary and confidential.
11 ******************************************************************************/
13 #ifndef SRVC_BATTERY_INT_H
14 #define SRVC_BATTERY_INT_H
16 #include "bt_target.h"
20 #ifndef BA_MAX_INT_NUM
21 #define BA_MAX_INT_NUM 4
24 #define BATTERY_LEVEL_SIZE 1
37 UINT16 pending_handle;
38 UINT8 pending_clcb_idx;
45 tBA_INST battery_inst[BA_MAX_INT_NUM];
55 /* Global GATT data */
56 #if GATT_DYNAMIC_MEMORY == FALSE
57 GATT_API extern tBATTERY_CB battery_cb;
59 GATT_API extern tBATTERY_CB *battery_cb_ptr;
60 #define battery_cb (*battery_cb_ptr)
64 extern BOOLEAN battery_valid_handle_range(UINT16 handle);
66 extern UINT8 battery_s_write_attr_value(UINT8 clcb_idx, tGATT_WRITE_REQ * p_value,
67 tGATT_STATUS *p_status);
68 extern UINT8 battery_s_read_attr_value (UINT8 clcb_idx, UINT16 handle, tGATT_VALUE *p_value, BOOLEAN is_long, tGATT_STATUS* p_status);