RS232 control for TVOne products
Diff: spk_tvone_mbed.h
- Revision:
- 10:5f398fc9b5c1
- Parent:
- 9:42c83cac2f6d
- Child:
- 11:90e5a72a0034
--- a/spk_tvone_mbed.h Mon Oct 08 03:06:00 2012 +0000 +++ b/spk_tvone_mbed.h Mon Oct 08 13:44:17 2012 +0000 @@ -31,7 +31,11 @@ public: SPKTVOne(PinName txPin, PinName rxPin, PinName signWritePin = NC, PinName signErrorPin = NC, Serial *debugSerial = NULL); + enum commandType {writeCommand = 0, readCommand = 1}; + static const int standardAckLength = 20; + bool command(uint8_t channel, uint8_t window, int32_t func, int32_t payload); + bool command(commandType readWrite, int* ackBuffer, int ackLength, uint8_t channel, uint8_t window, int32_t func, int32_t payload); void setCustomResolutions(); bool setHDCPOn(bool state);