#include <Utils.hpp>
|
static float | bytesToFloat (uint8_t b0, uint8_t b1, uint8_t b2, uint8_t b3) |
| converts 4 bytes to float (big endian) More...
|
|
static uint32_t | bytesToInt (uint8_t b0, uint8_t b1, uint8_t b2, uint8_t b3) |
| converts 4 bytes to uint32_t (big endian) More...
|
|
◆ bytesToFloat()
float Utils::bytesToFloat |
( |
uint8_t |
b0, |
|
|
uint8_t |
b1, |
|
|
uint8_t |
b2, |
|
|
uint8_t |
b3 |
|
) |
| |
|
static |
converts 4 bytes to float (big endian)
converts a float to a byte array
- Parameters
-
b0 | first byte |
b1 | second byte |
b2 | third byte |
b3 | fourth byte |
- Returns
- float
- Parameters
-
- Returns
- float
◆ bytesToInt()
uint32_t Utils::bytesToInt |
( |
uint8_t |
b0, |
|
|
uint8_t |
b1, |
|
|
uint8_t |
b2, |
|
|
uint8_t |
b3 |
|
) |
| |
|
static |
converts 4 bytes to uint32_t (big endian)
converts a byte array to a float
- Parameters
-
b0 | first byte |
b1 | second byte |
b2 | third byte |
b3 | fourth byte |
- Returns
- uint32_t
- Parameters
-
- Returns
- uint32_t
The documentation for this class was generated from the following files: