Zephyr API Documentation
3.7.0
A Scalable Open Source RTOS
3.7.0
Toggle main menu visibility
Main Page
Related Pages
Modules
Data Structures
Data Structures
Data Structure Index
Data Fields
All
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
Variables
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
Enumerator
Files
File List
Globals
All
$
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Functions
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Variables
$
a
b
c
d
f
g
h
i
k
l
m
n
o
p
r
s
t
x
z
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
z
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
z
Macros
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
•
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Modules
Pages
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