http://mbed.org/users/okini3939/notebook/art-net/

Dependents:   ArtNode ArtNode DMXStation ArtNodeLED ... more

Embed: (wiki syntax)

« Back to documentation index

DmxArtNet Class Reference

DmxArtNet Class Reference

DmxArtNet class. More...

#include <DmxArtNet.h>

Public Member Functions

int Init ()
 create network socket, setup for NetworkWork
void Done ()
 socket shutdown
int LastError ()
 last error
char * LastErrorString ()
 returns descrip of last error
void ClearError ()
 clear error
int Send_ArtDmx (int univ, int physical, char *data, int length)
 Send send an array [0..511] of (length) bytes representing the dmx you want to send to univ[0..15] , physical is info only, can be the universe number or port of device.
int Work ()
 execute often returns true if something happened

Detailed Description

DmxArtNet class.

Definition at line 297 of file DmxArtNet.h.


Member Function Documentation

void ClearError (  )

clear error

Definition at line 75 of file DmxArtNet.cpp.

void Done (  )

socket shutdown

Definition at line 328 of file DmxArtNet.cpp.

int Init (  )

create network socket, setup for NetworkWork

Returns:
true if socket creation succeded

Definition at line 79 of file DmxArtNet.cpp.

int LastError (  )

last error

Return values:
0ok

Definition at line 319 of file DmxArtNet.h.

char* LastErrorString (  )

returns descrip of last error

Returns:
descrip of last error

Definition at line 325 of file DmxArtNet.h.

int Send_ArtDmx ( int  univ,
int  physical,
char *  data,
int  length 
)

Send send an array [0..511] of (length) bytes representing the dmx you want to send to univ[0..15] , physical is info only, can be the universe number or port of device.

Definition at line 346 of file DmxArtNet.cpp.

int Work (  )

execute often returns true if something happened

Returns:
1 something happened

Definition at line 148 of file DmxArtNet.cpp.