public static int GetRegion(out FRSRegion region) // ke9ns find region programmed into your flex radio itself { uint data; int rtn = PalManager.Instance.ReadOp1(Opcode.RDAL_OP_GET_REGION, 0, 0, out data); region = (FRSRegion)data; return(rtn); }
public static int GetRegion(out FRSRegion region) { uint data; int rtn = Flex1500.ReadOp(Opcode.USB_OP_GET_REGION, 0, 0, out data); // get Flex-1500 TURF region if ((FRSRegion)data >= FRSRegion.LAST) { region = 0; return(rtn); } region = (FRSRegion)data; return(rtn); }
public static int GetRegion(out FRSRegion region) { uint data; int rtn = USBHIDAPI.ReadOp(Opcode.USB_OP_GET_REGION, 0, 0, out data); if ((FRSRegion)data >= FRSRegion.LAST) { region = 0; return(rtn); } region = (FRSRegion)data; return(rtn); }
public static int GetRegion(out FRSRegion region) { uint data; int rtn = Flex1500.ReadOp(Opcode.USB_OP_GET_REGION, 0, 0, out data); if ((FRSRegion)data >= FRSRegion.LAST) { region = 0; return rtn; } region = (FRSRegion)data; return rtn; }
public static int GetRegion(out FRSRegion region) { uint data; int rtn = Pal.ReadOp(Opcode.RDAL_OP_GET_REGION, 0, 0, out data); region = (FRSRegion)data; return rtn; }
public static void UpdateRegion(FRSRegion current_region) { //harmonize BandText and BandStack with radio region switch (current_region) { case FRSRegion.Spain_UK: case FRSRegion.Slovakia: case FRSRegion.France: AddRegion1BandStack(); ClearBandText(); AddRegion1BandText160m(); AddRegion1BandText80m(); AddRegion1BandText60m(); AddRegion1BandText40m(); AddRegion1BandText30m(); AddRegion1BandText20m(); AddRegion1BandText17m(); AddRegion1BandText15m(); AddRegion1BandText12m(); AddRegion1BandText10m(); AddRegion1BandText6m(); AddRegion1BandText4m(); AddRegion1BandTextVHFplus(); AddBandTextSWB(); break; case FRSRegion.Europe: AddRegion1BandStack(); ClearBandText(); AddRegion1BandText160m(); AddRegion1BandText80m(); AddRegion1BandText60m(); AddRegion1BandText40m(); AddRegion1BandText30m(); AddRegion1BandText20m(); AddRegion1BandText17m(); AddRegion1BandText15m(); AddRegion1BandText12m(); AddRegion1BandText10m(); AddEUBandText6m(); AddRegion1BandText4m(); AddRegion1BandTextVHFplus(); AddBandTextSWB(); break; case FRSRegion.Italy: AddRegion1BandStack(); ClearBandText(); AddItalyBandText160m(); AddRegion1BandText80m(); AddRegion1BandText60m(); AddRegion1BandText40m(); AddRegion1BandText30m(); AddRegion1BandText20m(); AddRegion1BandText17m(); AddRegion1BandText15m(); AddRegion1BandText12m(); AddRegion1BandText10m(); AddLatviaBandText6m(); AddRegion1BandText4m(); AddRegion1BandTextVHFplus(); AddBandTextSWB(); break; case FRSRegion.UK_Plus: AddUK_PlusBandStack(); ClearBandText(); AddRegion1BandText160m(); AddRegion1BandText80m(); AddUK_PlusBandText60m(); AddRegion1BandText40m(); AddRegion1BandText30m(); AddRegion1BandText20m(); AddRegion1BandText17m(); AddRegion1BandText15m(); AddRegion1BandText12m(); AddRegion1BandText10m(); AddRegion1BandText6m(); AddRegion1BandText4m(); AddRegion1BandTextVHFplus(); AddBandTextSWB(); break; case FRSRegion.Norway: case FRSRegion.Denmark: AddRegion1BandStack(); ClearBandText(); AddRegion1BandText160m(); AddRegion1BandText80m(); AddNorwayBandText60m(); AddRegion1BandText40m(); AddRegion1BandText30m(); AddRegion1BandText20m(); AddRegion1BandText17m(); AddRegion1BandText15m(); AddRegion1BandText12m(); AddRegion1BandText10m(); AddRegion1BandText6m(); AddRegion1BandText4m(); AddRegion1BandTextVHFplus(); AddBandTextSWB(); break; case FRSRegion.Latvia: AddRegion1BandStack(); ClearBandText(); AddRegion1BandText160m(); AddRegion1BandText80m(); AddRegion1BandText60m(); AddRegion1BandText40m(); AddRegion1BandText30m(); AddRegion1BandText20m(); AddRegion1BandText17m(); AddRegion1BandText15m(); AddRegion1BandText12m(); AddRegion1BandText10m(); AddLatviaBandText6m(); AddRegion1BandText4m(); AddRegion1BandTextVHFplus(); AddBandTextSWB(); break; case FRSRegion.Bulgaria: AddRegion1BandStack(); ClearBandText(); AddBulgariaBandText160m(); AddRegion1BandText80m(); AddRegion1BandText60m(); AddRegion1BandText40m(); AddRegion1BandText30m(); AddRegion1BandText20m(); AddRegion1BandText17m(); AddRegion1BandText15m(); AddRegion1BandText12m(); AddRegion1BandText10m(); AddBulgariaBandText6m(); AddRegion1BandText4m(); AddRegion1BandTextVHFplus(); AddBandTextSWB(); break; case FRSRegion.Greece: AddRegion1BandStack(); ClearBandText(); AddBulgariaBandText160m(); AddRegion1BandText80m(); AddRegion1BandText60m(); AddRegion1BandText40m(); AddRegion1BandText30m(); AddRegion1BandText20m(); AddRegion1BandText17m(); AddRegion1BandText15m(); AddRegion1BandText12m(); AddRegion1BandText10m(); AddGreeceBandText6m(); AddRegion1BandText4m(); AddRegion1BandTextVHFplus(); AddBandTextSWB(); break; case FRSRegion.Hungary: AddRegion1BandStack(); ClearBandText(); AddRegion1BandText160m(); AddRegion1BandText80m(); AddRegion1BandText60m(); AddHungaryBandText40m(); AddRegion1BandText30m(); AddRegion1BandText20m(); AddRegion1BandText17m(); AddRegion1BandText15m(); AddRegion1BandText12m(); AddRegion1BandText10m(); AddRegion1BandText6m(); AddRegion1BandText4m(); AddRegion1BandTextVHFplus(); AddBandTextSWB(); break; case FRSRegion.Netherlands: AddRegion1BandStack(); ClearBandText(); AddNetherlandsBandText160m(); AddRegion1BandText80m(); AddRegion1BandText60m(); AddRegion1BandText40m(); AddRegion1BandText30m(); AddRegion1BandText20m(); AddRegion1BandText17m(); AddRegion1BandText15m(); AddRegion1BandText12m(); AddRegion1BandText10m(); AddRegion1BandText6m(); AddRegion1BandText4m(); AddRegion1BandTextVHFplus(); AddBandTextSWB(); break; case FRSRegion.Russia: AddRegion1BandStack(); ClearBandText(); AddRegion1BandText160m(); AddRegion1BandText80m(); AddRegion1BandText60m(); AddRegion1BandText40m(); AddRegion1BandText30m(); AddRegion1BandText20m(); AddRegion1BandText17m(); AddRegion1BandText15m(); AddRussiaBandText12m(); AddRussiaBandText11m(); AddRegion1BandText10m(); AddGreeceBandText6m(); AddRegion1BandText4m(); AddRegion1BandTextVHFplus(); AddBandTextSWB(); break; case FRSRegion.Sweden: AddSwedenBandStack(); ClearBandText(); AddRegion1BandText160m(); AddRegion1BandText80m(); AddSwedenBandText60m(); AddRegion1BandText40m(); AddRegion1BandText30m(); AddRegion1BandText20m(); AddRegion1BandText17m(); AddRegion1BandText15m(); AddRegion1BandText12m(); AddRegion1BandText10m(); AddRegion1BandText6m(); AddRegion1BandText4m(); AddRegion1BandTextVHFplus(); AddBandTextSWB(); break; case FRSRegion.Region_3: AddRegion3BandStack(); ClearBandText(); AddRegion3BandText160m(); AddRegion3BandText80m(); AddRegion3BandText60m(); AddRegion3BandText40m(); AddRegion3BandText30m(); AddRegion3BandText20m(); AddRegion3BandText17m(); AddRegion3BandText15m(); AddRegion3BandText12m(); AddRegion3BandText10m(); AddRegion3BandText6m(); AddRegion3BandTextVHFplus(); AddBandTextSWB(); break; case FRSRegion.Japan: AddRegion3BandStack(); ClearBandText(); AddJapanBandText160m(); AddJapanBandText80m(); AddRegion3BandText60m(); AddJapanBandTextEmergency(); AddJapanBandText40m(); AddRegion3BandText30m(); AddRegion3BandText20m(); AddRegion3BandText17m(); AddRegion3BandText15m(); AddRegion3BandText12m(); AddJapanBandText10m(); AddJapanBandText6m(); AddRegion3BandTextVHFplus(); AddBandTextSWB(); break; case FRSRegion.Italy_Plus: AddRegion1BandStack(); ClearBandText(); AddItalyBandText160m(); AddRegion1BandText80m(); AddRegion1BandText60m(); AddItalyPlusBandText40m(); AddRegion1BandText30m(); AddRegion1BandText20m(); AddRegion1BandText17m(); AddRegion1BandText15m(); AddRegion1BandText12m(); AddRegion1BandText10m(); AddLatviaBandText6m(); AddRegion1BandText4m(); AddRegion1BandTextVHFplus(); AddBandTextSWB(); break; } CheckBandTextValid(); Update(); }
public static int GetRegion(out FRSRegion region) { // uint val = FWCMidi.SendGetMessage(Opcode.RDAL_OP_GET_REGION, 0, 0); // return (FRSRegion)val; uint data; int rtn = Pal.ReadOp(Opcode.RDAL_OP_GET_REGION, 0, 0, out data); region = (FRSRegion)data; return rtn; }