Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of mbed-cloud-workshop-connect-HTS221 by
pv_endian.h File Reference
Utility functions that treats endianness. More...
Go to the source code of this file.
Functions | |
| static uint32_t | pv_le32_to_h (uint32_t le32) |
| Converts a little endian 32 bit integer to the host endianness, in a platform independent manner. | |
| static uint32_t | pv_be32_to_h (uint32_t be32) |
| Converts a big endian 32 bit integer to the host endianness, in a platform independent manner. | |
| static uint32_t | pv_h_to_le32 (uint32_t host32) |
| Converts a host endianness 32 bit integer to little endian, in a platform independent manner. | |
| static uint32_t | pv_h_to_be32 (uint32_t host32) |
| Converts a host endianness 32 bit integer to big endian, in a platform independent manner. | |
Detailed Description
Utility functions that treats endianness.
Definition in file pv_endian.h.
Function Documentation
| static uint32_t pv_be32_to_h | ( | uint32_t | be32 ) | [static] |
Converts a big endian 32 bit integer to the host endianness, in a platform independent manner.
- Parameters:
-
be32 [in] 32 bit integer in big endian format.
- Returns:
- 32 bit integer in host endianness format.
Definition at line 56 of file pv_endian.h.
| static uint32_t pv_h_to_be32 | ( | uint32_t | host32 ) | [static] |
Converts a host endianness 32 bit integer to big endian, in a platform independent manner.
- Parameters:
-
host32 [in] 32 bit integer in host endianness format
- Returns:
- 32 bit integer in big endian format.
Definition at line 97 of file pv_endian.h.
| static uint32_t pv_h_to_le32 | ( | uint32_t | host32 ) | [static] |
Converts a host endianness 32 bit integer to little endian, in a platform independent manner.
- Parameters:
-
host32 [in] 32 bit integer in host endianness format
- Returns:
- 32 bit integer in little endian format.
Definition at line 73 of file pv_endian.h.
| static uint32_t pv_le32_to_h | ( | uint32_t | le32 ) | [static] |
Converts a little endian 32 bit integer to the host endianness, in a platform independent manner.
- Parameters:
-
le32 [in] 32 bit integer in little endian format.
- Returns:
- 32 bit integer in host endianness format.
Definition at line 40 of file pv_endian.h.
Generated on Tue Jul 12 2022 19:12:18 by
1.7.2
