20 lines
444 B
C++

#pragma once
#include <tt_hal_radio.h>
template <typename Iterator>
Iterator next(Iterator i) {
return i++;
}
template <typename Iterator, typename Container>
bool is_last(Iterator i, const Container& c) {
return (i != c.end()) && (next(i) == c.end());
}
void crash(const char* const message);
void crashassert(bool assertion, const char* const message);
char *const toString(Modulation m);
char *const toString(RadioParameter p);