Zephyr API Documentation
4.1.99
A Scalable Open Source RTOS
4.1.99
Toggle main menu visibility
Main Page
Related Pages
Topics
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
u
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
▼
Zephyr API Documentation
►
Introduction
Deprecated List
►
Topics
►
Data Structures
▼
Files
▼
File List
►
doc
►
kernel
►
lib
►
subsys
▼
zephyr
►
acpi
►
app_memory
►
arch
►
audio
▼
bluetooth
►
audio
►
classic
►
mesh
►
services
►
addr.h
►
att.h
►
bluetooth.h
►
buf.h
►
byteorder.h
►
conn.h
►
controller.h
►
crypto.h
►
cs.h
►
direction.h
►
ead.h
►
gap.h
►
gatt.h
►
hci.h
►
hci_raw.h
►
hci_types.h
►
hci_vs.h
►
iso.h
►
l2cap.h
mesh.h
►
testing.h
►
uuid.h
►
canbus
►
console
►
crypto
►
data
►
debug
►
devicetree
►
dfu
►
display
►
drivers
►
dsp
►
dt-bindings
►
fs
►
input
►
internal
►
ipc
►
kernel
►
linker
►
llext
►
logging
►
lorawan
►
math
►
mem_mgmt
►
mgmt
►
misc
►
modbus
►
modem
►
multi_heap
►
net
►
platform
►
pm
►
pmci
►
portability
►
posix
►
psa
►
random
►
retention
►
rtio
►
sd
►
sensing
►
settings
►
shell
►
sip_svc
►
stats
►
storage
►
sys
►
task_wdt
►
timing
►
toolchain
►
tracing
►
usb
►
usb_c
►
xen
►
zbus
►
zvfs
►
bindesc.h
►
cache.h
►
device.h
►
devicetree.h
►
fatal.h
►
fatal_types.h
►
init.h
►
irq.h
►
irq_multilevel.h
►
irq_nextlevel.h
►
irq_offload.h
►
kernel.h
kernel_includes.h
►
kernel_structs.h
►
kernel_version.h
►
net_buf.h
►
shared_irq.h
►
smf.h
►
spinlock.h
►
sw_isr_table.h
►
sys_clock.h
►
syscall.h
►
toolchain.h
types.h
►
Globals
•
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
36
#define BT_BYTES_LIST_LE16(_v) \
…
50
#define BT_BYTES_LIST_LE24(_v) \
51
BT_BYTES_LIST_LE16(_v), \
52
(((_v) >> 16) & 0xFFU) \
53
50
#define BT_BYTES_LIST_LE24(_v) \
…
64
#define BT_BYTES_LIST_LE32(_v) \
65
BT_BYTES_LIST_LE24(_v), \
66
(((_v) >> 24) & 0xFFU) \
67
64
#define BT_BYTES_LIST_LE32(_v) \
…
78
#define BT_BYTES_LIST_LE40(_v) \
79
BT_BYTES_LIST_LE24(_v), \
80
BT_BYTES_LIST_LE16((_v) >> 24) \
81
78
#define BT_BYTES_LIST_LE40(_v) \
…
92
#define BT_BYTES_LIST_LE48(_v) \
93
BT_BYTES_LIST_LE32(_v), \
94
BT_BYTES_LIST_LE16((_v) >> 32) \
95
92
#define BT_BYTES_LIST_LE48(_v) \
…
106
#define BT_BYTES_LIST_LE64(_v) \
107
BT_BYTES_LIST_LE32(_v), \
108
BT_BYTES_LIST_LE32((_v) >> 32) \
109
106
#define BT_BYTES_LIST_LE64(_v) \
…
120
#define BT_BYTES_LIST_BE16(_v) (((_v) >> 8) & 0xFFU), (((_v) >> 0) & 0xFFU)
121
132
#define BT_BYTES_LIST_BE24(_v) (((_v) >> 16) & 0xFFU), BT_BYTES_LIST_BE16(_v)
133
144
#define BT_BYTES_LIST_BE32(_v) (((_v) >> 24) & 0xFFU), BT_BYTES_LIST_BE24(_v)
145
156
#define BT_BYTES_LIST_BE40(_v) BT_BYTES_LIST_BE16((_v) >> 24), BT_BYTES_LIST_BE24(_v)
157
168
#define BT_BYTES_LIST_BE48(_v) BT_BYTES_LIST_BE16((_v) >> 32), BT_BYTES_LIST_BE32(_v)
169
180
#define BT_BYTES_LIST_BE64(_v) BT_BYTES_LIST_BE32((_v) >> 32), BT_BYTES_LIST_BE32(_v)
181
186
#ifdef __cplusplus
187
}
188
#endif
189
190
#endif
/* ZEPHYR_INCLUDE_BLUETOOTH_BYTEORDER_H_ */
zephyr
bluetooth
byteorder.h
Generated on Fri May 16 2025 12:05:40 for Zephyr API Documentation by
1.12.0