mirror of
https://github.com/meshtastic/firmware.git
synced 2025-02-04 03:39:56 +00:00
e65d9e8ccd
* Add support for SX1281 on 2.4 GHz * only allow wide BW settings when the right chip is detected * portduino cannot use this chip yet as it uses an old modified version of radiolib * missed a spot * Attempt to supress false positive * Attempt to supress false positive * Trying casing from the cpp-check manual * Trying casing from the cpp-check manual * Inline suppr should be default but... * Maybe casting it will make the damn thing shut up Co-authored-by: Ben Meadors <benmmeadors@gmail.com>
25 lines
553 B
C
25 lines
553 B
C
#pragma once
|
|
|
|
#include "MemoryPool.h"
|
|
#include "MeshTypes.h"
|
|
#include "PointerQueue.h"
|
|
#include "configuration.h"
|
|
|
|
// Map from old region names to new region enums
|
|
struct RegionInfo {
|
|
Config_LoRaConfig_RegionCode code;
|
|
float freqStart;
|
|
float freqEnd;
|
|
float dutyCycle;
|
|
float spacing;
|
|
uint8_t powerLimit; // Or zero for not set
|
|
bool audioPermitted;
|
|
bool freqSwitching;
|
|
bool wideLora;
|
|
const char *name; // EU433 etc
|
|
};
|
|
|
|
extern const RegionInfo regions[];
|
|
extern const RegionInfo *myRegion;
|
|
|
|
extern void initRegion(); |