-
Notifications
You must be signed in to change notification settings - Fork 0
/
BandPassFilter.cs
39 lines (32 loc) · 955 Bytes
/
BandPassFilter.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
using System;
using Microsoft.SPOT;
namespace TwoBySixAntennaSwitch
{
public enum BandPassFilterType
{
None = 0,
YaesuBCD = 1,
SeparateBands = 2
}
public partial class Utilities
{
public static string BandPassFilterTypeToString(BandPassFilterType bandPassFilterType)
{
switch (bandPassFilterType)
{
case BandPassFilterType.None:
return "None";
case BandPassFilterType.YaesuBCD:
return "Yaesu (BCD)";
case BandPassFilterType.SeparateBands:
return "Separate Bands";
}
return "UNKNOWN";
}
public static string BandPassFilterTypeToString(string bandPassFilterType)
{
var x = (BandPassFilterType)Convert.ToInt16(bandPassFilterType);
return BandPassFilterTypeToString(x);
}
}
}