#include <inttypes.h>
Go to the source code of this file.
◆ target_byte_order
Target byte order for conversion.
Enumerator |
---|
TO_NETWORK_BYTE_ORDER | |
TO_HOST_HOST_BYTE_ORDER | |
◆ lrtr_convert_long()
uint32_t lrtr_convert_long |
( |
const enum target_byte_order |
tbo, |
|
|
const uint32_t |
value |
|
) |
| |
Converts the passed long value to the given target byte order.
- Parameters
-
[in] | tbo | Target byte order. |
[in] | value | Input (uint32_t) for conversion. |
- Returns
- Converted uint32_t value.
◆ lrtr_convert_short()
uint16_t lrtr_convert_short |
( |
const enum target_byte_order |
tbo, |
|
|
const uint16_t |
value |
|
) |
| |
Converts the passed short value to the given target byte order.
- Parameters
-
[in] | tbo | Target byte order. |
[in] | value | Input (uint16_t) for conversion. |
- Returns
- Converted uint16_t value.