#ifndef _V2_RF_ENCODING_H #define _V2_RF_ENCODING_H #include "stdint.h" #include "string.h" #define TESTDECODE 0 #define V2_OFFSET_JUMP_START 0x54 void encodeV2Packet(uint8_t* packet); void decodeV2Packet(uint8_t* packet); uint8_t xorKey(uint8_t key); uint8_t encodeByte(uint8_t byte, uint8_t s1, uint8_t xorKey, uint8_t s2); uint8_t decodeByte(uint8_t byte, uint8_t s1, uint8_t xorKey, uint8_t s2); void TestDecode(void); #endif