DMX512, RDM send/recv library http://mbed.org/users/okini3939/notebook/dmx512

Dependents:   dmx_test ArtNodeLED SPK-DVIMXR SPK-DMXer ... more

Embed: (wiki syntax)

« Back to documentation index

DMX Class Reference

DMX Class Reference

DMX512 class (sender/client) More...

#include <DMX.h>

Public Member Functions

 DMX (PinName p_tx, PinName p_rx, PinName p_xmit=NC)
 init DMX class
void put (int addr, int data)
 Send the data.
void put (unsigned char *buf, int addr=0, int len=DMX_SIZE)
 Send the data.
int get (int addr)
 Send the data.
void get (unsigned char *buf, int addr=0, int len=DMX_SIZE)
 Send the data.
void start ()
 Start DMX send operation.
void stop ()
 Stop DMX send operation.
void clear ()
 Clear DMX data.

Detailed Description

DMX512 class (sender/client)

Definition at line 70 of file DMX.h.


Constructor & Destructor Documentation

DMX ( PinName  p_tx,
PinName  p_rx,
PinName  p_xmit = NC 
)

init DMX class

Parameters:
p_txTX serial port (p9, p13, p28)
p_rxRX serial port (p10, p14, p27)
p_redata enable/~receive enable

Definition at line 15 of file DMX.cpp.


Member Function Documentation

void clear (  )

Clear DMX data.

void get ( unsigned char *  buf,
int  addr = 0,
int  len = DMX_SIZE 
)

Send the data.

Parameters:
bufDMX data buffer
addrDMX data address
lendata length

Definition at line 117 of file DMX.cpp.

int get ( int  addr )

Send the data.

Parameters:
addrDMX data address (0-511)
Returns:
DMX data (0-255)

Definition at line 112 of file DMX.cpp.

void put ( unsigned char *  buf,
int  addr = 0,
int  len = DMX_SIZE 
)

Send the data.

Parameters:
bufDMX data buffer
addrDMX data address
lendata length

Definition at line 106 of file DMX.cpp.

void put ( int  addr,
int  data 
)

Send the data.

Parameters:
addrDMX data address (0-511)
dataDMX data (0-255)

Definition at line 101 of file DMX.cpp.

void start (  )

Start DMX send operation.

void stop (  )

Stop DMX send operation.