BTool.DeviceFormUtils.GetGapChannelMapStr C# (CSharp) Method

GetGapChannelMapStr() public method

public GetGapChannelMapStr ( byte channelMap ) : string
channelMap byte
return string
        public string GetGapChannelMapStr(byte channelMap)
        {
            string ch_map = string.Empty;

            if (channelMap == 0)
                return "Channel Map Bit Mask Is Not Set";

            if ((channelMap & 0x00) == 0x00)
                ch_map = "Channel 37";

            if ((channelMap & 0x01) != 0)
            {
                if (!string.IsNullOrEmpty(ch_map))
                    ch_map += newline_2tab;
                ch_map += "Channel 38";
            }

            if ((channelMap & 0x02) != 0)
            {
                if (!string.IsNullOrEmpty(ch_map))
                    ch_map += newline_2tab;
                ch_map += "Channel 39";
            }

            if (string.IsNullOrEmpty(ch_map))
                ch_map = "Unknown Gap Channel Map";
            return ch_map;
        }