Zephyr API Documentation
3.6.0
A Scalable Open Source RTOS
3.6.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
byteorder.h
Go to the documentation of this file.
1
5
/*
6
* Copyright (c) 2023 Nordic Semiconductor ASA
7
*
8
* SPDX-License-Identifier: Apache-2.0
9
*/
10
11
#ifndef ZEPHYR_INCLUDE_BLUETOOTH_BYTEORDER_H_
12
#define ZEPHYR_INCLUDE_BLUETOOTH_BYTEORDER_H_
13
21
#ifdef __cplusplus
22
extern
"C"
{
23
#endif
24
25
36
#define BT_BYTES_LIST_LE16(_v) \
37
(((_v) >> 0) & 0xFFU), \
38
(((_v) >> 8) & 0xFFU) \
39
50
#define BT_BYTES_LIST_LE24(_v) \
51
BT_BYTES_LIST_LE16(_v), \
52
(((_v) >> 16) & 0xFFU) \
53
64
#define BT_BYTES_LIST_LE32(_v) \
65
BT_BYTES_LIST_LE24(_v), \
66
(((_v) >> 24) & 0xFFU) \
67
78
#define BT_BYTES_LIST_LE40(_v) \
79
BT_BYTES_LIST_LE24(_v), \
80
BT_BYTES_LIST_LE16((_v) >> 24) \
81
92
#define BT_BYTES_LIST_LE48(_v) \
93
BT_BYTES_LIST_LE32(_v), \
94
BT_BYTES_LIST_LE16((_v) >> 32) \
95
106
#define BT_BYTES_LIST_LE64(_v) \
107
BT_BYTES_LIST_LE32(_v), \
108
BT_BYTES_LIST_LE32((_v) >> 32) \
109
114
#ifdef __cplusplus
115
}
116
#endif
117
118
#endif
/* ZEPHYR_INCLUDE_BLUETOOTH_BYTEORDER_H_ */
zephyr
bluetooth
byteorder.h
Generated on Sat Feb 24 2024 03:45:05 for Zephyr API Documentation by
1.9.6