aboutsummaryrefslogtreecommitdiff
path: root/platform/atm2/ATM22xx-x1x/lib/app_bass/app_bass.h
blob: d70f89f355c859043dd12bb86c71c53287d1464e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
/**
 *******************************************************************************
 *
 * @file app_bass.h
 *
 * @brief Battery service for application layer
 *
 * Copyright (C) Atmosic 2020
 *
 *******************************************************************************
 */
#pragma once

/**
 *******************************************************************************
 * @defgroup ATM_BTFM_APPBASS Battery service for application layer
 * @ingroup ATM_BTFM_API
 * @brief The battery service for application of ATM bluetooth framework
 *
 * This module contains the battery service interface for application layer.
 *
 * @{
 *******************************************************************************
 */

/*
 * INCLUDE FILE
 *******************************************************************************
 */
#include "ble_bass.h"
#include "gadc.h"

#ifdef __cplusplus
extern "C" {
#endif

/**
 *******************************************************************************
 * @brief Retrieve the parameters of battery service
 * return Battery service parameters
 *******************************************************************************
 */
ble_bass_params_t const *app_bass_param(void);

/**
 *******************************************************************************
 * @brief Get battery level
 * return Return the current battery level
 *******************************************************************************
 */
uint8_t app_bass_get_battery_lvl(void);

/**
 *******************************************************************************
 * @brief Send battery level
 * @param[in] lvl Battery level.
 *******************************************************************************
 */
void app_bass_send_battery_lvl(uint8_t lvl);

#ifdef __cplusplus
}
#endif

///@} ATM_BTFM_APPBASS