MIDI Control Surface library for Arduino
|
Go to the documentation of this file.
6 #include <Settings/NamespaceSettings.hpp>
38 return Cable{uint8_t(oneBasedCable - 1)};
107 constexpr
Cable operator"" _cb(
unsigned long long cb) {
A type-safe class for MIDI USB Cable numbers.
#define BEGIN_CS_NAMESPACE
constexpr bool operator==(const Cable &rhs) const
Check if two cables are the same.
Cable operator+(uint8_t rhs) const
Add an offset to a cable.
Cable & operator-=(uint8_t rhs)
Subtract an offset.
constexpr Cable(uint8_t zeroBasedCable)
Create a MIDI Cable object.
Cable operator-(uint8_t rhs) const
Subtract an offset from a cable.
constexpr uint8_t getRaw() const
Get the cable as an integer.
Cable & operator+=(uint8_t rhs)
Add an offset.
static constexpr Cable createCable(uint8_t oneBasedCable)
Create a cable.