You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
meshcore-client/lib/models/radio_settings.dart

49 lines
1007 B

// LoRa radio parameter values. The regional presets that combine them live in
// radio_preset.dart and come from OffbandMesh/config-profiles (#647).
enum LoRaBandwidth {
bw7_8(7800, '7.8 kHz'),
bw10_4(10400, '10.4 kHz'),
bw15_6(15600, '15.6 kHz'),
bw20_8(20800, '20.8 kHz'),
bw31_25(31250, '31.25 kHz'),
bw41_7(41700, '41.7 kHz'),
bw62_5(62500, '62.5 kHz'),
bw125(125000, '125 kHz'),
bw250(250000, '250 kHz'),
bw500(500000, '500 kHz');
final int hz;
final String label;
const LoRaBandwidth(this.hz, this.label);
}
enum LoRaSpreadingFactor {
sf5(5, 'SF5'),
sf6(6, 'SF6'),
sf7(7, 'SF7'),
sf8(8, 'SF8'),
sf9(9, 'SF9'),
sf10(10, 'SF10'),
sf11(11, 'SF11'),
sf12(12, 'SF12');
final int value;
final String label;
const LoRaSpreadingFactor(this.value, this.label);
}
enum LoRaCodingRate {
cr4_5(5, '4/5'),
cr4_6(6, '4/6'),
cr4_7(7, '4/7'),
cr4_8(8, '4/8');
final int value;
final String label;
const LoRaCodingRate(this.value, this.label);
}

Powered by TurnKey Linux.