Cascoda SDK
Cascoda SDK for building software to run with CA-821x transceivers
|
Functions to help converting between system types and big/little endian octet representations. More...
#include <stdint.h>
Go to the source code of this file.
Macros | |
#define | CA821X_API_INCLUDE_CA821X_ENDIAN_H_ |
Functions | |
STATIC uint8_t | LS_BYTE (uint16_t x) |
Extract the least significant octet of a 16-bit value. More... | |
STATIC uint8_t | MS_BYTE (uint16_t x) |
Extract the most significant octet of a 16-bit value. More... | |
STATIC uint8_t | LS0_BYTE (uint16_t x) |
Extract the first (little-endian) octet of a 32-bit value. More... | |
STATIC uint8_t | LS1_BYTE (uint32_t x) |
Extract the second (little-endian) octet of a 32-bit value. More... | |
STATIC uint8_t | LS2_BYTE (uint32_t x) |
Extract the third (little-endian) octet of a 32-bit value. More... | |
STATIC uint8_t | LS3_BYTE (uint32_t x) |
Extract the fourth (little-endian) octet of a 32-bit value. More... | |
STATIC uint16_t | GETLE16 (const uint8_t *in) |
Extract a 16-bit value from a little-endian octet array. More... | |
STATIC uint32_t | GETLE32 (const uint8_t *in) |
Extract a 32-bit value from a little-endian octet array. More... | |
STATIC uint64_t | GETLE64 (const uint8_t *in) |
Extract a 64-bit value from a little-endian octet array. More... | |
STATIC void | PUTLE16 (uint16_t in, uint8_t *out) |
Put a 16-bit value into a little-endian octet array. More... | |
STATIC void | PUTLE32 (uint32_t in, uint8_t *out) |
Put a 32-bit value into a little-endian octet array. More... | |
STATIC void | PUTLE64 (uint64_t in, uint8_t *out) |
Put a 64-bit value into a little-endian octet array. More... | |
STATIC uint16_t | GETBE16 (const uint8_t *in) |
Extract a 16-bit value from a big-endian octet array. More... | |
STATIC void | PUTBE16 (uint16_t in, uint8_t *out) |
Put a 16-bit value into a big-endian octet array. More... | |
STATIC uint32_t | GETBE32 (const uint8_t *in) |
Extract a 32-bit value from a big-endian octet array. More... | |
STATIC uint64_t | GETBE64 (const uint8_t *in) |
Extract a 64-bit value from a big-endian octet array. More... | |
STATIC void | PUTBE32 (uint32_t in, uint8_t *out) |
Put a 32-bit value into a big-endian octet array. More... | |
STATIC void | PUTBE64 (uint64_t in, uint8_t *out) |
Put a 64-bit value into a little-endian octet array. More... | |
Functions to help converting between system types and big/little endian octet representations.