#include <MIDI_Inputs/MCU/VPotRing.hpp>
Struct that keeps track of the value and overload indicator of a Mackie Control Universal VPot LED ring.
Definition at line 14 of file VPotRing.hpp.
Data access | |
uint8_t | getPosition () const |
Return the position of the V-Pot ring. [0, 11]. | |
bool | getCenterLed () const |
Return the status of the center LED of the V-Pot ring. | |
Mode | getMode () const |
Return the mode of the V-Pot ring. | |
uint8_t | getStartOn () const |
Get the first segment that should be on. | |
uint8_t | getStartOff () const |
Get the first segment that should be off. | |
Public Types | |
enum | Mode { SingleDot = 0 , BoostCut = 1 , Wrap = 2 , Spread = 3 } |
Determines how the VPot value is displayed using the LEDs. More... | |
Public Member Functions | |
VPotState (uint8_t value=0) | |
Constructor. | |
bool | update (uint8_t data) |
Static Public Member Functions | |
static uint8_t | sanitizeData (uint8_t data) |
Make sure that the received value is valid and will not result in array out of bounds conditions. | |
Public Attributes | |
uint8_t | value |
The value representing the VPot position, mode and LED. | |
Determines how the VPot value is displayed using the LEDs.
Enumerator | |
---|---|
SingleDot | Single dot. |
BoostCut | Boost/Cut. |
Wrap | Wrap. |
Spread | Spread. |
Definition at line 28 of file VPotRing.hpp.
Constructor.
Definition at line 16 of file VPotRing.hpp.
Definition at line 20 of file VPotRing.hpp.
|
inline |
Return the position of the V-Pot ring. [0, 11].
Definition at line 39 of file VPotRing.hpp.
|
inline |
Return the status of the center LED of the V-Pot ring.
Definition at line 41 of file VPotRing.hpp.
|
inline |
Return the mode of the V-Pot ring.
Definition at line 43 of file VPotRing.hpp.
|
inline |
Get the first segment that should be on.
Definition at line 46 of file VPotRing.hpp.
|
inline |
Get the first segment that should be off.
Definition at line 61 of file VPotRing.hpp.
Make sure that the received value is valid and will not result in array out of bounds conditions.
Definition at line 76 of file VPotRing.hpp.
uint8_t value |
The value representing the VPot position, mode and LED.
Definition at line 18 of file VPotRing.hpp.