4#include <AH/STL/cstdint>
5#include <Settings/NamespaceSettings.hpp>
11 uint8_t((u >> 0) & 0xFF),
12 uint8_t((u >> 8) & 0xFF),
13 uint8_t((u >> 16) & 0xFF),
14 uint8_t((u >> 24) & 0xFF),
18inline uint32_t
bytes_to_u32(uint8_t b0, uint8_t b1, uint8_t b2, uint8_t b3) {
19 return (uint32_t(b0) << 0) |
21 (uint32_t(b2) << 16) |
26 return (uint32_t(b.
data[0]) << 0) |
27 (uint32_t(b.
data[1]) << 8) |
28 (uint32_t(b.
data[2]) << 16) |
29 (uint32_t(b.
data[3]) << 24);
36#if defined(TEENSYDUINO)
41#elif defined(__MK20DX128__) \
42 || defined(__MK20DX256__) \
43 || defined(__MK64FX512__) \
44 || defined(__MK66FX1M0__)
47#elif defined(__IMXRT1062__) || defined(__IMXRT1052__)
50#elif defined(__MKL26Z64__)
54#warning "Unknown Teensy board, please open an issue on GitHub" \
55 "https://github.com/tttapa/Arduino-Helpers"
60#elif defined(ARDUINO_ARCH_MBED_RP2040)
64#elif defined(ARDUINO_ARCH_MBED)
68#elif defined(ARDUINO_RASPBERRY_PI_PICO) && defined(USE_TINYUSB)
78#define CS_USB_MIDI_NOT_SUPPORTED
#define BEGIN_CS_NAMESPACE
AH::Array< uint8_t, 4 > u32_to_bytes(uint32_t u)
uint32_t bytes_to_u32(uint8_t b0, uint8_t b1, uint8_t b2, uint8_t b3)