K8062 for Linux

Helper functions

An helper .c file is added to the project to make developping of applications easier. Right now, it's very basic, in the future, it'll be replaced with a library which will handle lots of the daemon-version problems.

You should use the dmx_open() function before any use of the DMX system. That function will attach the shared memory and initialize the DMX-related variables.

At the end of your program, you may call the dmx_close() function to detach the shared memory. If you need to reaccess the DMX, you'll need to call dmx_open() again and you will have to rely on the new values of the DMX variables.

All access have to be done through the dmx_* variables. Direct access to the shared memory base address should be avoided

void dmx_open(void)

This function opens the connexion with the daemon

void dmx_close(void)

This functions closes the connexion with the daemon

int *dmx_maxchannels R/W

This variable holds the number of channels sent through the DMX interface

int *dmx_shutdown R/W

Set this variable to -1 to ask to the daemon to shutdown.

int *dmx_caps R/O

This variable holds the extra-capabilities of the daemon.

int dmx_channels[512] R/W

This array holds the value of the 512 DMX channels.