Ardour  9.0-pre0-582-g084a23a80d
ArdourSurface::Maschine2Mk2 Class Reference

#include <m2_dev_mk2.h>

Inheritance diagram for ArdourSurface::Maschine2Mk2:
[legend]

Classes

struct  machine_mk2_input
 

Public Member Functions

 Maschine2Mk2 ()
 
void clear (bool splash=false)
 
void read (hid_device *, M2Contols *)
 
void write (hid_device *, M2Contols *)
 
Cairo::RefPtr< Cairo::ImageSurface > surface ()
 
- Public Member Functions inherited from ArdourSurface::M2Device
 M2Device ()
 
virtual ~M2Device ()
 

Private Member Functions

void assign_controls (M2Contols *) const
 
void set_colors80 (M2Contols *, uint8_t *) const
 
void set_colors81 (M2Contols *, uint8_t *) const
 
void set_colors82 (M2Contols *, uint8_t *) const
 

Private Attributes

struct ArdourSurface::Maschine2Mk2::machine_mk2_input ctrl_in
 
uint16_t pad [16]
 
Cairo::RefPtr< Cairo::ImageSurface > _surface
 
uint8_t ctrl82 [32]
 
uint8_t ctrl81 [57]
 
uint8_t ctrl80 [49]
 
uint8_t _img [2][8][265]
 

Additional Inherited Members

- Public Attributes inherited from ArdourSurface::M2Device
PBD::Signal< bool()> vblank
 
- Protected Member Functions inherited from ArdourSurface::M2Device
void bump_blink ()
 
- Protected Attributes inherited from ArdourSurface::M2Device
uint32_t _splashcnt
 
unsigned int _blink_counter
 
float _blink_shade
 
- Static Protected Attributes inherited from ArdourSurface::M2Device
static const uint32_t _splashtime = 25 * 3
 

Detailed Description

Definition at line 29 of file m2_dev_mk2.h.

Constructor & Destructor Documentation

◆ Maschine2Mk2()

ArdourSurface::Maschine2Mk2::Maschine2Mk2 ( )

Member Function Documentation

◆ assign_controls()

void ArdourSurface::Maschine2Mk2::assign_controls ( M2Contols ) const
private

◆ clear()

void ArdourSurface::Maschine2Mk2::clear ( bool  splash = false)
virtual

Reimplemented from ArdourSurface::M2Device.

◆ read()

void ArdourSurface::Maschine2Mk2::read ( hid_device *  ,
M2Contols  
)
virtual

◆ set_colors80()

void ArdourSurface::Maschine2Mk2::set_colors80 ( M2Contols ,
uint8_t *   
) const
private

◆ set_colors81()

void ArdourSurface::Maschine2Mk2::set_colors81 ( M2Contols ,
uint8_t *   
) const
private

◆ set_colors82()

void ArdourSurface::Maschine2Mk2::set_colors82 ( M2Contols ,
uint8_t *   
) const
private

◆ surface()

Cairo::RefPtr<Cairo::ImageSurface> ArdourSurface::Maschine2Mk2::surface ( )
inlinevirtual

Implements ArdourSurface::M2Device.

Definition at line 36 of file m2_dev_mk2.h.

◆ write()

void ArdourSurface::Maschine2Mk2::write ( hid_device *  ,
M2Contols  
)
virtual

Member Data Documentation

◆ _img

uint8_t ArdourSurface::Maschine2Mk2::_img[2][8][265]
private

Definition at line 118 of file m2_dev_mk2.h.

◆ _surface

Cairo::RefPtr<Cairo::ImageSurface> ArdourSurface::Maschine2Mk2::_surface
private

Definition at line 106 of file m2_dev_mk2.h.

◆ ctrl80

uint8_t ArdourSurface::Maschine2Mk2::ctrl80[49]
private

Definition at line 117 of file m2_dev_mk2.h.

◆ ctrl81

uint8_t ArdourSurface::Maschine2Mk2::ctrl81[57]
private

Definition at line 116 of file m2_dev_mk2.h.

◆ ctrl82

uint8_t ArdourSurface::Maschine2Mk2::ctrl82[32]
private

Definition at line 115 of file m2_dev_mk2.h.

◆ ctrl_in

struct ArdourSurface::Maschine2Mk2::machine_mk2_input ArdourSurface::Maschine2Mk2::ctrl_in
private

◆ pad

uint16_t ArdourSurface::Maschine2Mk2::pad[16]
private

Definition at line 104 of file m2_dev_mk2.h.


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