/* This project is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. Multiprotocol is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with Multiprotocol. If not, see . */ #ifndef _MULTIPROTOCOL_H_ #define _MULTIPROTOCOL_H_ //****************** // Version //****************** #define NONE 0 #include "tx_def.h" #include "stdint.h" void set_rx_tx_addr(uint32_t id); extern uint8_t protocol_flags; extern uint8_t protocol_flags2; extern uint8_t crc8; extern uint8_t packet_count; extern uint8_t packet[40]; extern uint8_t option; extern uint16_t state; extern uint8_t len; // Telemetry enum MultiPacketTypes { MULTI_TELEMETRY_STATUS = 1, MULTI_TELEMETRY_SPORT = 2, MULTI_TELEMETRY_HUB = 3, MULTI_TELEMETRY_DSM = 4, MULTI_TELEMETRY_DSMBIND = 5, MULTI_TELEMETRY_AFHDS2A = 6, MULTI_TELEMETRY_CONFIG = 7, MULTI_TELEMETRY_SYNC = 8, MULTI_TELEMETRY_SPORT_POLLING = 9, MULTI_TELEMETRY_HITEC = 10, }; // Macros #ifndef _BV #define _BV(i) (1<