DMX512 send/recv library with STM32 slave support originally from http://mbed.org/users/okini3939/notebook/dmx512
Fork of DMX by
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; +}