makes GPIO_PIN_RST optional for the sx1276
[ExpressLRS.git] / src / lib / TelemetryProtocol / telemetry_protocol.h
blob47658a8fb54ea6fc0d94c175e2e94572937b9128
1 #pragma once
3 #define ELRS_TELEMETRY_TYPE_LINK 0x01
4 #define ELRS_TELEMETRY_TYPE_DATA 0x02
5 #define ELRS_TELEMETRY_TYPE_MASK 0x03
6 #define ELRS_TELEMETRY_SHIFT 2
7 #define ELRS_TELEMETRY_BYTES_PER_CALL 5
8 #define ELRS_TELEMETRY_MAX_PACKAGES (255 >> ELRS_TELEMETRY_SHIFT)
10 #define ELRS_MSP_BYTES_PER_CALL 5
11 #define ELRS_MSP_BUFFER 65
12 #define ELRS_MSP_MAX_PACKAGES ((ELRS_MSP_BUFFER/ELRS_MSP_BYTES_PER_CALL)+1)