Zephyr API Documentation
3.7.0
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
bas.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2018 Nordic Semiconductor ASA
3
* Copyright (c) 2016 Intel Corporation
4
*
5
* SPDX-License-Identifier: Apache-2.0
6
*/
7
8
#ifndef ZEPHYR_INCLUDE_BLUETOOTH_SERVICES_BAS_H_
9
#define ZEPHYR_INCLUDE_BLUETOOTH_SERVICES_BAS_H_
10
21
#include <
stdint.h
>
22
23
#ifdef __cplusplus
24
extern
"C"
{
25
#endif
26
33
uint8_t
bt_bas_get_battery_level
(
void
);
34
44
int
bt_bas_set_battery_level
(
uint8_t
level);
45
46
47
#ifdef __cplusplus
48
}
49
#endif
50
55
#endif
/* ZEPHYR_INCLUDE_BLUETOOTH_SERVICES_BAS_H_ */
bt_bas_set_battery_level
int bt_bas_set_battery_level(uint8_t level)
Update battery level value.
bt_bas_get_battery_level
uint8_t bt_bas_get_battery_level(void)
Read battery level value.
stdint.h
uint8_t
__UINT8_TYPE__ uint8_t
Definition:
stdint.h:88
zephyr
bluetooth
services
bas.h
Generated on Fri Jul 26 2024 14:01:56 for Zephyr API Documentation by
1.9.6