H
Hed
Unregistered / Unconfirmed
GUEST, unregistred user!
commandBuffer 为一个数组
int TMnFrm::SendMICode(unsigned char MICode, unsigned char *code, int len)
{
int rc;
int index = 0;
//Ns = Nr = 0;
CommandBuffer[index] = 0x10;
++index;
CommandBuffer[index] = 0x01;
++index;
rc = AddByte( CommandBuffer+index, (MAddr&0xFF) );
index += rc;
rc = AddByte( CommandBuffer+index, ((SAddr >> 8)&0xFF) );
index += rc;
}
Addbyte里的CommandBuffer+index是什么意思?
CommandBuffer 是一个数组,为什么可以加一个数字呢?
说明:Addbyte是个函数
int TMnFrm::SendMICode(unsigned char MICode, unsigned char *code, int len)
{
int rc;
int index = 0;
//Ns = Nr = 0;
CommandBuffer[index] = 0x10;
++index;
CommandBuffer[index] = 0x01;
++index;
rc = AddByte( CommandBuffer+index, (MAddr&0xFF) );
index += rc;
rc = AddByte( CommandBuffer+index, ((SAddr >> 8)&0xFF) );
index += rc;
}
Addbyte里的CommandBuffer+index是什么意思?
CommandBuffer 是一个数组,为什么可以加一个数字呢?
说明:Addbyte是个函数