DMX512, RDM send/recv library http://mbed.org/users/okini3939/notebook/dmx512
Dependents: dmx_test ArtNodeLED SPK-DVIMXR SPK-DMXer ... more
DMX512 send/recv library
DMX512 is protocol for lighting.
調光プロトコル DMX512 を送受信するライブラリです。
see: http://mbed.org/users/okini3939/notebook/dmx512/
LPC1114 support is thanks to Stanly Chen
Diff: DMX.cpp
- Revision:
- 17:c9198630ba05
- Parent:
- 16:4eeb749806e5
- Child:
- 18:69d65ca92bcc
--- a/DMX.cpp Thu Aug 20 09:21:28 2015 +0000 +++ b/DMX.cpp Wed Sep 30 13:52:20 2015 +0000 @@ -221,3 +221,23 @@ data_rx[i] = 0; } } + +int DMX::isRecived (){ + int r = is_recived; + is_recived = 0; + return r; +} + +int DMX::isSent () { + int r = is_sent; + is_sent = 0; + return r; +} + +unsigned char *DMX::getRxBuffer () { + return data_rx; +} + +unsigned char *DMX::getTxBuffer () { + return data_tx; +}