一个段码屏驱动多端数码管程序,这个LCD_LgcBuf[15]有什么含义吗
typedef union { unsigned char LCD_LgcBuf[15];//这段代码什么意思 struct unsigned char Sign_T5:1; unsigned char Sign_T16:1; unsigned char Sign_4F:1; unsigned char Sign_4E:1; }Sign_SEG1_2; { unsigned char Sign_4B:1; unsigned char Sign_4D:1; unsigned char Sign_5G:1; unsigned char Sign_T18:1; struct unsigned char Sign_5A:1; unsigned char Sign_5C:1; unsigned char Sign_6F:1; unsigned char Sign_6E:1; }Sign_SEG5_6; { unsigned char Sign_6B:1; unsigned char Sign_6D:1; unsigned char Sign_7G:1; unsigned char Sign_COL:1; struct unsigned char Sign_7A:1; unsigned char Sign_7C:1; unsigned char Sign_8F:1; unsigned char Sign_8E:1; }Sign_SEG9_10; { unsigned char Sign_8B:1; unsigned char Sign_8D:1; unsigned char Sign_9G:1; unsigned char Sign_P3:1; struct unsigned char Sign_9A:1; unsigned char Sign_9C:1; unsigned char Sign_10F:1; unsigned char Sign_10E:1; }Sign_SEG13_14; { unsigned char Sign_10B:1; unsigned char Sign_10D:1; unsigned char Sign_11G:1; unsigned char Sign_P5:1; struct unsigned char Sign_11A:1; unsigned char Sign_11C:1; unsigned char Sign_T22:1; unsigned char Sign_T23:1; }Sign_SEG17_18; { unsigned char Sign_T7:1; unsigned char Sign_T9:1; unsigned char Sign_T12:1; unsigned char Sign_T10:1; struct unsigned char Sign_3A:1; unsigned char Sign_3C:1; unsigned char Sign_3F:1; unsigned char Sign_3E:1; }Sign_SEG21_22; { unsigned char Sign_2B:1; unsigned char Sign_2D:1; unsigned char Sign_2G:1; //unsigned char Sign_:1; struct unsigned char Sign_1A:1; unsigned char Sign_1C:1; unsigned char Sign_1F:1; unsigned char Sign_1E:1; }Sign_SEG25_26; { unsigned char Sign_T2:1; unsigned char Sign_T3:1; unsigned char Sign_S11:1; unsigned char Sign_S9:1; struct unsigned char Sign_S5:1; unsigned char Sign_S7:1; unsigned char Sign_S4:1; unsigned char Sign_S2:1; }Sign_SEG29_30; }GStr_LcdBuf;
友情提示: 此问题已得到解决,问题已经关闭,关闭后问题禁止继续编辑,回答。
unsigned char LCD_LgcBuf[15];
struct{
struct
{
unsigned char Sign_T5:1;
unsigned char Sign_T15:1;
unsigned char Sign_T16:1;
unsigned char Sign_T17:1;
unsigned char Sign_4F:1;
unsigned char Sign_4G:1;
unsigned char Sign_4E:1;
unsigned char Sign_T19:1;
}Sign_SEG1_2;
struct
{
unsigned char Sign_4A:1;
unsigned char Sign_4B:1;
unsigned char Sign_4C:1;
unsigned char Sign_4D:1;
unsigned char Sign_5F:1;
unsigned char Sign_5G:1;
unsigned char Sign_5E:1;
unsigned char Sign_T18:1;
}Sign_SEG3_4;
struct
{
unsigned char Sign_5A:1;
unsigned char Sign_5B:1;
unsigned char Sign_5C:1;
unsigned char Sign_5D:1;
unsigned char Sign_6F:1;
unsigned char Sign_6G:1;
unsigned char Sign_6E:1;
unsigned char Sign_T21:1;
}Sign_SEG5_6;
struct
{
unsigned char Sign_6A:1;
unsigned char Sign_6B:1;
unsigned char Sign_6C:1;
unsigned char Sign_6D:1;
unsigned char Sign_7F:1;
unsigned char Sign_7G:1;
unsigned char Sign_7E:1;
unsigned char Sign_COL:1;
}Sign_SEG7_8;
struct
{
unsigned char Sign_7A:1;
unsigned char Sign_7B:1;
unsigned char Sign_7C:1;
unsigned char Sign_7D:1;
unsigned char Sign_8F:1;
unsigned char Sign_8G:1;
unsigned char Sign_8E:1;
unsigned char Sign_P2:1;
}Sign_SEG9_10;
struct
{
unsigned char Sign_8A:1;
unsigned char Sign_8B:1;
unsigned char Sign_8C:1;
unsigned char Sign_8D:1;
unsigned char Sign_9F:1;
unsigned char Sign_9G:1;
unsigned char Sign_9E:1;
unsigned char Sign_P3:1;
}Sign_SEG11_12;
struct
{
unsigned char Sign_9A:1;
unsigned char Sign_9B:1;
unsigned char Sign_9C:1;
unsigned char Sign_9D:1;
unsigned char Sign_10F:1;
unsigned char Sign_10G:1;
unsigned char Sign_10E:1;
unsigned char Sign_P4:1;
}Sign_SEG13_14;
struct
{
unsigned char Sign_10A:1;
unsigned char Sign_10B:1;
unsigned char Sign_10C:1;
unsigned char Sign_10D:1;
unsigned char Sign_11F:1;
unsigned char Sign_11G:1;
unsigned char Sign_11E:1;
unsigned char Sign_P5:1;
}Sign_SEG15_16;
struct
{
unsigned char Sign_11A:1;
unsigned char Sign_11B:1;
unsigned char Sign_11C:1;
unsigned char Sign_11D:1;
unsigned char Sign_T22:1;
unsigned char Sign_T20:1;
unsigned char Sign_T23:1;
unsigned char Sign_T24:1;
}Sign_SEG17_18;
struct
{
unsigned char Sign_T6:1;
unsigned char Sign_T7:1;
unsigned char Sign_T8:1;
unsigned char Sign_T9:1;
unsigned char Sign_T13:1;
unsigned char Sign_T12:1;
unsigned char Sign_T11:1;
unsigned char Sign_T10:1;
}Sign_SEG19_20;
struct
{
unsigned char Sign_3A:1;
unsigned char Sign_3B:1;
unsigned char Sign_3C:1;
unsigned char Sign_3D:1;
unsigned char Sign_3F:1;
unsigned char Sign_3G:1;
unsigned char Sign_3E:1;
unsigned char Sign_P1:1;
}Sign_SEG21_22;
struct
{
unsigned char Sign_2A:1;
unsigned char Sign_2B:1;
unsigned char Sign_2C:1;
unsigned char Sign_2D:1;
unsigned char Sign_2F:1;
unsigned char Sign_2G:1;
unsigned char Sign_2E:1;
//unsigned char Sign_:1;
}Sign_SEG23_24;
struct
{
unsigned char Sign_1A:1;
unsigned char Sign_1B:1;
unsigned char Sign_1C:1;
unsigned char Sign_1D:1;
unsigned char Sign_1F:1;
unsigned char Sign_1G:1;
unsigned char Sign_1E:1;
//unsigned char Sign_:1;
}Sign_SEG25_26;
struct
{
unsigned char Sign_T1:1;
unsigned char Sign_T2:1;
unsigned char Sign_T4:1;
unsigned char Sign_T3:1;
unsigned char Sign_T14:1;
unsigned char Sign_S11:1;
unsigned char Sign_S10:1;
unsigned char Sign_S9:1;
}Sign_SEG27_28;
struct
{
unsigned char Sign_S5:1;
unsigned char Sign_S6:1;
unsigned char Sign_S7:1;
unsigned char Sign_S8:1;
unsigned char Sign_S4:1;
unsigned char Sign_S3:1;
unsigned char Sign_S2:1;
unsigned char Sign_S1:1;
}Sign_SEG29_30;
}Signs;
}GStr_LcdBuf;
一周热门 更多>