6#include <Settings/NamespaceSettings.hpp>
45 return Cable {
static_cast<uint8_t
>(oneBasedCable - 1)};
Print & operator<<(Print &, Cable)
#define BEGIN_CS_NAMESPACE
A type-safe class for MIDI USB Cable numbers.
Cable & operator+=(uint8_t rhs)
Add an offset.
static constexpr Cable createCable(uint8_t oneBasedCable)
Create a cable.
constexpr bool operator==(const Cable &rhs) const
Check if two cables are the same.
constexpr bool operator!=(const Cable &rhs) const
Check if two cables are the different.
Cable operator-(uint8_t rhs) const
Subtract an offset from a cable.
constexpr uint8_t getOneBased() const
Get the cable as an integer.
constexpr Cable(uint8_t zeroBasedCable)
Create a MIDI Cable object.
constexpr uint8_t getRaw() const
Get the cable as an integer.
Cable & operator-=(uint8_t rhs)
Subtract an offset.
Cable operator+(uint8_t rhs) const
Add an offset to a cable.