完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
一个段码屏驱动多端数码管程序,这个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; |
|
相关推荐
4个回答
|
|
unsigned char LCD_LgcBuf[15]这个里面赋值,下面的结构里面就有相应拆分好了的数值;
如果下面各个结构里面赋值了,那么你这个数组里面也有值了
最佳答案
|
|
|
|
程序发上来怎么变了
|
|
1 条评论
|
|
typedef union {
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; |
|
|
|
LCD_LgcBuf[这个缓存,是与Sign_SEG27_28这些占用同一块空间的
|
|
|
|
你正在撰写答案
如果你是对答案或其他答案精选点评或询问,请使用“评论”功能。
690 浏览 0 评论
735 浏览 1 评论
基于瑞萨FPB-RA4E2智能床头灯项目——1编译环境搭建与点亮驱动ws2812全彩LED
624 浏览 0 评论
嵌入式学习-飞凌嵌入式ElfBoard ELF 1板卡-LCD显示图片编程示例之介绍mmap
1099 浏览 0 评论
《DNESP32S3使用指南-IDF版_V1.6》第二章 常用的C语言知识点
1092 浏览 0 评论
【youyeetoo X1 windows 开发板体验】少儿AI智能STEAM积木平台
11794 浏览 31 评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-11-26 07:32 , Processed in 0.856980 second(s), Total 92, Slave 71 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号