RS232 control for TVOne products
Diff: spk_tvone_mbed.h
- Revision:
- 23:46f42462a183
- Parent:
- 21:2260dde18dfa
- Child:
- 24:4eec37b8387e
--- a/spk_tvone_mbed.h Tue May 21 23:37:09 2013 +0000 +++ b/spk_tvone_mbed.h Tue Jun 25 02:06:35 2013 +0000 @@ -40,10 +40,14 @@ struct processorType {int version; int productType; int boardType;}; processorType getProcessorType(); - int getResolution(); + int getResolution(int device = 0); int getEDID(); bool setResolution(int resolution, int edidSlot); bool setHDCPOn(bool state); + + enum aspectType { aspectFit = 1, aspectHFill = 2, aspectVFill = 3, aspect1to1 = 4, aspectSPKFill }; + aspectType getAspect(); + bool setAspect(aspectType aspect); bool uploadEDID(FILE* file, int edidSlotIndex); bool uploadImage(FILE* file, int sisIndex); @@ -63,6 +67,8 @@ bool command(commandType readWrite, int* ackBuffer, int ackLength, uint8_t channel, uint8_t window, int32_t func, int32_t payload); bool uploadFile(char command, FILE* file, int dataLength, int index); + bool getResolutionParams(int resStoreNumber, int &horizpx, int &vertpx); + bool set1920x480(int resStoreNumber); bool set1600x600(int resStoreNumber); bool set2048x768(int resStoreNumber);