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

woz_bytes.h

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

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:32

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:42

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:53

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:63

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:74

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:85

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:98

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:109

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

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