Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- static uint8_t aBlock[] = { 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
- };
- after this
- aBlock[5] = dir; ( direction of message)
- aBlock[6] = ( address ) & 0xFF; (Hardware address of device)
- aBlock[7] = ( address >> 8 ) & 0xFF; (Hardware address of device)
- aBlock[8] = ( address >> 16 ) & 0xFF; (Hardware address of device)
- aBlock[9] = ( address >> 24 ) & 0xFF; (Hardware address of device)
- aBlock[10] = ( sequenceCounter ) & 0xFF; (counter that never repeats)
- aBlock[11] = ( sequenceCounter >> 8 ) & 0xFF; (counter that never repeats)
- aBlock[12] = ( sequenceCounter >> 16 ) & 0xFF; (counter that never repeats)
- aBlock[13] = ( sequenceCounter >> 24 ) & 0xFF; (counter that never repeats)
- aBlock[15] = ( ( ctr ) & 0xFF ); ( a counter value that is incremented for every 16 Byte Block)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement