modules/woz_uwb/src/facade/woz_bytes.h
openaliro/openaliro
Module

woz_bytes.h

modules/woz_uwb/src/facade/woz_bytes.h8 documented symbols

Overview

@file woz_bytes.h Byte-order utilities: read/write 16-bit and 32-bit integers in little-endian or big-endian order.

used by ccc_shim_rx.c ccc_shim_wrap.c ccc_sts.c

API

Fstatic inline uint16_t sys_get_le16(const uint8_t *p)

modules/woz_uwb/src/facade/woz_bytes.h:36

Read a 16-bit little-endian value from a byte buffer.

p
Pointer to the byte buffer.
returns
The 16-bit value in native byte order.

Fstatic inline uint32_t sys_get_le32(const uint8_t *p)

modules/woz_uwb/src/facade/woz_bytes.h:46

Read a 32-bit little-endian value from a byte buffer.

p
Pointer to the byte buffer.
returns
The 32-bit value in native byte order.

Fstatic inline uint16_t sys_get_be16(const uint8_t *p)

modules/woz_uwb/src/facade/woz_bytes.h:57

Read a 16-bit big-endian value from a byte buffer.

p
Pointer to the byte buffer.
returns
The 16-bit value in native byte order.

Fstatic inline uint32_t sys_get_be32(const uint8_t *p)

modules/woz_uwb/src/facade/woz_bytes.h:67

Read a 32-bit big-endian value from a byte buffer.

p
Pointer to the byte buffer.
returns
The 32-bit value in native byte order.

Fstatic inline void sys_put_le16(uint16_t v, uint8_t *p)

modules/woz_uwb/src/facade/woz_bytes.h:78

Write a 16-bit value to a byte buffer in little-endian order.

v
The value to write.
p
Pointer to the byte buffer.

Fstatic inline void sys_put_le32(uint32_t v, uint8_t *p)

modules/woz_uwb/src/facade/woz_bytes.h:89

Write a 32-bit value to a byte buffer in little-endian order.

v
The value to write.
p
Pointer to the byte buffer.

Fstatic inline void sys_put_be16(uint16_t v, uint8_t *p)

modules/woz_uwb/src/facade/woz_bytes.h:102

Write a 16-bit value to a byte buffer in big-endian order.

v
The value to write.
p
Pointer to the byte buffer.

Fstatic inline void sys_put_be32(uint32_t v, uint8_t *p)

modules/woz_uwb/src/facade/woz_bytes.h:113

Write a 32-bit value to a byte buffer in big-endian order.

v
The value to write.
p
Pointer to the byte buffer.