Ardour  9.0-pre0-582-g084a23a80d
ArdourSurface::Push2::LED Struct Referenceabstract

#include <push2.h>

Inheritance diagram for ArdourSurface::Push2::LED:
[legend]

Public Types

enum  State {
  NoTransition , OneShot24th , OneShot16th , OneShot8th ,
  OneShot4th , OneShot2th , Pulsing24th , Pulsing16th ,
  Pulsing8th , Pulsing4th , Pulsing2th , Blinking24th ,
  Blinking16th , Blinking8th , Blinking4th , Blinking2th
}
 
enum  Colors {
  Black = 0 , Red = 127 , Green = 126 , Blue = 125 ,
  DarkGray = 124 , LightGray = 123 , White = 122
}
 

Public Member Functions

 LED (uint8_t e)
 
virtual ~LED ()
 
uint8_t extra () const
 
uint8_t color_index () const
 
State state () const
 
void set_color (uint8_t color_index)
 
void set_state (State state)
 
virtual MidiByteArray state_msg () const =0
 

Protected Attributes

uint8_t _extra
 
uint8_t _color_index
 
State _state
 

Detailed Description

Definition at line 120 of file push2.h.

Member Enumeration Documentation

◆ Colors

Enumerator
Black 
Red 
Green 
Blue 
DarkGray 
LightGray 
White 

Definition at line 141 of file push2.h.

◆ State

Enumerator
NoTransition 
OneShot24th 
OneShot16th 
OneShot8th 
OneShot4th 
OneShot2th 
Pulsing24th 
Pulsing16th 
Pulsing8th 
Pulsing4th 
Pulsing2th 
Blinking24th 
Blinking16th 
Blinking8th 
Blinking4th 
Blinking2th 

Definition at line 122 of file push2.h.

Constructor & Destructor Documentation

◆ LED()

ArdourSurface::Push2::LED::LED ( uint8_t  e)
inline

Definition at line 151 of file push2.h.

◆ ~LED()

virtual ArdourSurface::Push2::LED::~LED ( )
inlinevirtual

Definition at line 152 of file push2.h.

Member Function Documentation

◆ color_index()

uint8_t ArdourSurface::Push2::LED::color_index ( ) const
inline

Definition at line 155 of file push2.h.

◆ extra()

uint8_t ArdourSurface::Push2::LED::extra ( ) const
inline

Definition at line 154 of file push2.h.

◆ set_color()

void ArdourSurface::Push2::LED::set_color ( uint8_t  color_index)

◆ set_state()

void ArdourSurface::Push2::LED::set_state ( State  state)

◆ state()

State ArdourSurface::Push2::LED::state ( void  ) const
inline

Definition at line 156 of file push2.h.

◆ state_msg()

virtual MidiByteArray ArdourSurface::Push2::LED::state_msg ( ) const
pure virtual

Member Data Documentation

◆ _color_index

uint8_t ArdourSurface::Push2::LED::_color_index
protected

Definition at line 165 of file push2.h.

◆ _extra

uint8_t ArdourSurface::Push2::LED::_extra
protected

Definition at line 164 of file push2.h.

◆ _state

State ArdourSurface::Push2::LED::_state
protected

Definition at line 166 of file push2.h.


The documentation for this struct was generated from the following file: