在威纶通网站上找到的free protocol例子中,其中宏指令有这样一条语句,
address = 0
address = address * 16
HIBYTE(address, command[2])
LOBYTE(address, command[3])
read_no = 1// read 0x, 1 words
read_no = read_no << 4 // see protocol
HIBYTE(read_no, command[4])
LOBYTE(read_no, command[5])
这里的address为什么要*16,还有read_no=read_no<<4是什么意思,请教!谢谢 |
|