Add macros for replay packet id

This commit is contained in:
Davide De Rosa 2018-10-18 23:18:12 +02:00
parent 8a25cd8747
commit a974646558
1 changed files with 2 additions and 0 deletions

View File

@ -45,6 +45,8 @@ NS_ASSUME_NONNULL_BEGIN
#define PacketAckLengthLength ((NSInteger)1) #define PacketAckLengthLength ((NSInteger)1)
#define PacketPeerIdLength ((NSInteger)3) #define PacketPeerIdLength ((NSInteger)3)
#define PacketPeerIdDisabled ((uint32_t)0xffffffu) #define PacketPeerIdDisabled ((uint32_t)0xffffffu)
#define PacketReplayIdLength ((NSInteger)4)
#define PacketReplayTimestampLength ((NSInteger)4)
typedef NS_ENUM(uint8_t, PacketCode) { typedef NS_ENUM(uint8_t, PacketCode) {
PacketCodeSoftResetV1 = 0x03, PacketCodeSoftResetV1 = 0x03,