Changeset 5913:25cf996e88b3 in roaraudio


Ignore:
Timestamp:
09/08/13 14:56:00 (6 years ago)
Author:
phi
Branch:
default
Message:

updated some protocol constants

File:
1 edited

Legend:

Unmodified
Added
Removed
  • include/libroarlight/roardmx.h

    r5823 r5913  
    5454#define ROAR_ROARDMX_TYPE_IPO4      0x02 /* poly5 interpolation (a*t^4 + b*t^3 + c*t^2 + d*t + e) */ 
    5555#define ROAR_ROARDMX_TYPE_INC8S     0x03 /* signed 8 bit increment */ 
     56#define ROAR_ROARDMX_TYPE_RANGESET  0x04 /* like simple set but set ranges of channels */ 
     57#define ROAR_ROARDMX_TYPE_EVENT     0x0E /* used to transmit simple events like step, blackout and stuff */ 
     58#define ROAR_ROARDMX_TYPE_CONTROL   0x0F /* Used to transmit other control information like codec version */ 
     59 
     60// Events: 
     61// event types (ETYPE) will be bit or-ed with event. 
     62#define ROAR_ROARDMX_MASK_EVENT     0x3F 
     63#define ROAR_ROARDMX_MASK_ETYPE     0xC0 
     64 
     65#define ROAR_ROARDMX_ETYPE_BEAT     0x00 /* event happens NOW */ 
     66#define ROAR_ROARDMX_ETYPE_OFF      0x40 /* event ended */ 
     67#define ROAR_ROARDMX_ETYPE_ON       0x80 /* event started */ 
     68#define ROAR_ROARDMX_ETYPE_HOLD     0xC0 /* event is still running, used as keep-alive */ 
     69 
     70// events: must be in range 0x00 to 0x3F. 
     71#define ROAR_ROARDMX_EVENT_NONE     0x00 /* can be used as keep-alive or padding */ 
     72#define ROAR_ROARDMX_EVENT_STEP     0x01 
     73#define ROAR_ROARDMX_EVENT_TAP      0x02 
     74#define ROAR_ROARDMX_EVENT_BEAT     0x03 /* audio signal generated beat */ 
     75#define ROAR_ROARDMX_EVENT_BLACKOUT 0x04 /* set all light channels to zero */ 
     76#define ROAR_ROARDMX_EVENT_FULLON   0x05 /* set all light channels to full intensity */ 
     77#define ROAR_ROARDMX_EVENT_FLASH    0x06 /* like fullon but can also use strobe. */ 
     78#define ROAR_ROARDMX_EVENT_STROBE   0x07 /* triggers all strobes */ 
     79#define ROAR_ROARDMX_EVENT_FOG      0x08 /* triggers all fog machines */ 
     80#define ROAR_ROARDMX_EVENT_FOGREADY 0x09 /* Fog machine is ready */ 
     81#define ROAR_ROARDMX_EVENT_FOGHEAT  0x0A /* Fog machine is heating up */ 
    5682 
    5783struct roar_roardmx_message { 
Note: See TracChangeset for help on using the changeset viewer.