3 #define PACKED __attribute__((packed))
16 ParameterConfiguration
= 0x50,
18 TelemetrySensorData
= 0x80,
29 uint8_t sourceDeviceId
;
30 uint8_t destinationDeviceId
;
32 uint8_t baudSupported
;
35 } PACKED Srxl2HandshakeSubHeader
;
40 } PACKED Srxl2ControlDataSubHeader
;
44 FailsafeChannelData
= 0x01,
46 } Srxl2ControlDataCommand
;
53 // uint8_t channels_0_7;
54 // uint8_t channels_8_15;
55 // uint8_t channels_16_23;
56 // uint8_t channels_24_31;
61 } PACKED Srxl2ChannelDataHeader
;
76 FlightControllerDefault
= 0x30,
77 FlightControllerMax
= 0x3F,
83 Srxl2HandshakeSubHeader payload
;
86 } PACKED Srxl2HandshakeFrame
;
90 RequestBindStatus
= 0xB5,
91 BoundDataReport
= 0xDB,
97 DSM2_1024_22ms
= 0x01,
98 DSM2_1024_MC24
= 0x02,
99 DMS2_2048_11ms
= 0x12,
102 Surface_DSM2_16_5ms
= 0x63,
103 DSMR_11ms_22ms
= 0xE2,
107 // Bit masks for Options byte
108 #define SRXL_BIND_OPT_NONE (0x00)
109 #define SRXL_BIND_OPT_TELEM_TX_ENABLE (0x01) // Set if this device should be enabled as the current telemetry device to tx over RF
110 #define SRXL_BIND_OPT_BIND_TX_ENABLE (0x02) // Set if this device should reply to a bind request with a Discover packet over RF
119 } PACKED Srxl2BindInfoPayload
;
123 Srxl2BindInfoPayload payload
;
126 } PACKED Srxl2BindInfoFrame
;
130 uint8_t band
; // VTX Band (0 = Fatshark, 1 = Raceband, 2 = E, 3 = B, 4 = A)
131 uint8_t channel
; // VTX Channel (0-7)
132 uint8_t pit
; // Pit/Race mode (0 = Race, 1 = Pit). Race = (normal operating) mode. Pit = (reduced power) mode.
133 uint8_t power
; // VTX Power (0 = Off, 1 = 1mw to 14mW, 2 = 15mW to 25mW, 3 = 26mW to 99mW, 4 = 100mW to 299mW, 5 = 300mW to 600mW, 6 = 601mW+, 7 = manual control)
134 uint16_t powerDec
; // VTX Power as a decimal 1mw/unit
135 uint8_t region
; // Region (0 = USA, 1 = EU)
136 } PACKED Srxl2VtxData
;