RayComposer Device API Documentation  1.6
Public API for RayComposer laser show DAC interfaces.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
DMX Input and Output

Query DMX universe information. Read and write DMX data. More...

Typedefs

typedef int(RCCALLTRCUniverseCount )(int)
 
typedef int(RCCALLTRCUniverseQuery )(int, unsigned int, char *, unsigned int, enum RCUniverseDirection *, unsigned int *)
 
typedef int(RCCALLTRCUniverseWrite )(int, unsigned int, unsigned int, const unsigned char *, unsigned int)
 
typedef int(RCCALLTRCUniverseRead )(int, unsigned int, unsigned int, unsigned char *, unsigned int)
 
typedef int(RCCALLTRCUniverseUpdate )(int, unsigned int)
 

Functions

int RCAPI RCUniverseCount (int handle)
 Query universe count of device. More...
 
int RCAPI RCUniverseQuery (int handle, unsigned int universeIndex, char *universeName, unsigned int maxLength, enum RCUniverseDirection *pUniverseDirection, unsigned int *pChannelCount)
 Query universe information. More...
 
int RCAPI RCUniverseWrite (int handle, unsigned int universeIndex, unsigned int startChannel, const unsigned char *data, unsigned int count)
 Write to output universe. More...
 
int RCAPI RCUniverseRead (int handle, unsigned int universeIndex, unsigned int startChannel, unsigned char *data, unsigned int count)
 Read from input universe. More...
 
int RCAPI RCUniverseUpdate (int handle, unsigned int universeIndex)
 Flush Universe. More...
 

Detailed Description

Query DMX universe information. Read and write DMX data.

Typedef Documentation

typedef int(RCCALL * TRCUniverseCount)(int)

Function type definition for RCUniverseCount()

typedef int(RCCALL * TRCUniverseQuery)(int, unsigned int, char *, unsigned int, enum RCUniverseDirection *, unsigned int *)

Function type definition for RCUniverseQuery()

typedef int(RCCALL * TRCUniverseWrite)(int, unsigned int, unsigned int, const unsigned char *, unsigned int)

Function type definition for RCUniverseWrite()

typedef int(RCCALL * TRCUniverseRead)(int, unsigned int, unsigned int, unsigned char *, unsigned int)

Function type definition for RCUniverseRead()

typedef int(RCCALL * TRCUniverseUpdate)(int, unsigned int)

Function type definition for RCUniverseUpdate()

Function Documentation

int RCAPI RCUniverseCount ( int  handle)

Query universe count of device.

This function returns how many universes exist for the device specified by devicehandle.

Parameters
handleDevice handle as obtained by RCOpenDevice()
Returns
The number of universes present on the device. If an error occured, a negative value indicating one of the RCReturnCode error codes is returned.
int RCAPI RCUniverseQuery ( int  handle,
unsigned int  universeIndex,
char *  universeName,
unsigned int  maxLength,
enum RCUniverseDirection pUniverseDirection,
unsigned int *  pChannelCount 
)

Query universe information.

This function returns the universe name, if it is an input or an output and the channel count.

Parameters
handleDevice handle as obtained by RCOpenDevice()
universeIndexUniverse Index. Range is 0 to the number returned by RCUniverseCount() -1
universeNamePointer to the buffer where the universe name will be copied
maxLengthLength of buffer passed in deviceLabel
pUniverseDirectionpointer to universe Direction variable will be set to either RCOutput or RCInput
pChannelCountPointer to Channel count. Will be set the the channel count of the universe
Returns
The number of characters written to universeName. If an error occured, a negative value indicating one of the RCReturnCode error codes is returned.
int RCAPI RCUniverseWrite ( int  handle,
unsigned int  universeIndex,
unsigned int  startChannel,
const unsigned char *  data,
unsigned int  count 
)

Write to output universe.

Parameters
handleDevice handle as obtained by RCOpenDevice()
universeIndexUniverse Index. Range is 0 to the number returned by RCUniverseCount() -1
startChannelFirst channel to write. startChannel 0 is the first DMX channel.
dataPointer to dmx value buffer
countNumber of channels to write
Returns
RCOk on success. If an error occured, a negative value indicating one of the RCReturnCode error codes is returned.
int RCAPI RCUniverseRead ( int  handle,
unsigned int  universeIndex,
unsigned int  startChannel,
unsigned char *  data,
unsigned int  count 
)

Read from input universe.

Parameters
handleDevice handle as obtained by RCOpenDevice()
universeIndexUniverse Index. Range is 0 to the number returned by RCUniverseCount() -1
startChannelFirst channel to write. 0 is the first channel.
dataPointer to dmx value buffer
countNumber of channels to read
Returns
RCOk on success. If an error occured, a negative value indicating one of the RCReturnCode error codes is returned.
int RCAPI RCUniverseUpdate ( int  handle,
unsigned int  universeIndex 
)

Flush Universe.

Parameters
handleDevice handle as obtained by RCOpenDevice()
universeIndexUniverse Index. Range is 0 to the number returned by RCUniverseCount() -1
Returns
RCOk on success. If an error occured, a negative value indicating one of the RCReturnCode error codes is returned.