程序编写范例,各位看官欢迎评论,有什么好的建议说说!
文档内容节选
1将一个long型的数据拆分成4个bytevoid mytestfuncunsigned long dat unsigned char i i unsigned char dat3keil小端模式 低byte i unsigned char dat2 i unsigned char dat1 i unsigned char dat0高byte2位操作define BITn 1L nHTCCON BIT7HTCCON BIT73结构体与素组共内存unsigned char OneNtPade32typedef struct ntpadestatus unsigned int RegFlag unsigned char RandBuff4 unsigned char RecordSpaceStatu8 unsigned char RecordIndex unsigned char PlayIndex unsigned int RegFlag2 unsigned char RsvBuff14STATUSALL xdata PSTATUSALLdefine FirstNtPad......
猜您喜欢
评论