Go to the documentation of this file.00001 #ifndef __CPHIDGETTEXTLED
00002 #define __CPHIDGETTEXTLED
00003 #include "cphidget.h"
00004
00011 DPHANDLE(TextLED)
00012 CHDRSTANDARD(TextLED)
00013
00019 CHDRGET(TextLED,RowCount,int *count)
00025 CHDRGET(TextLED,ColumnCount,int *count)
00026
00032 CHDRGET(TextLED,Brightness,int *brightness)
00038 CHDRSET(TextLED,Brightness,int brightness)
00039
00046 CHDRSETINDEX(TextLED,DisplayString,char *displayString)
00047
00048 #ifndef REMOVE_DEPRECATED
00049 DEP_CHDRGET("Deprecated - use CPhidgetTextLED_getRowCount",TextLED,NumRows,int *)
00050 DEP_CHDRGET("Deprecated - use CPhidgetTextLED_getColumnCount",TextLED,NumColumns,int *)
00051 #endif
00052
00053 #ifndef EXTERNALPROTO
00054 #define TEXTLED_MAXROWS 4
00055 #define TEXTLED_MAXCOLS 8
00056
00057 #define TEXTLED_BRIGHTNESS_PACKET -1
00058 #define TEXTLED_DISPLAYSTRING_PACKET 0
00059
00060 struct _CPhidgetTextLED {
00061 CPhidget phid;
00062
00063 char *displayStringPtr[TEXTLED_MAXROWS];
00064 int brightness;
00065
00066 unsigned char outputPacket[MAX_OUT_PACKET_SIZE];
00067 unsigned int outputPacketLen;
00068
00069 char *strings[TEXTLED_MAXROWS];
00070 } typedef CPhidgetTextLEDInfo;
00071 #endif
00072
00075 #endif