using System.Text;

namespace QCRPG.TSL.FM.Packets;

public static class XfrModeMapInfo
{
	public static XfrModeMapEnum ValueToXfrModeMap(uint value)
	{
		return value switch
		{
			1u => XfrModeMapEnum.RDS_PS_0_READ, 
			2u => XfrModeMapEnum.RDS_PS_1_READ, 
			3u => XfrModeMapEnum.RDS_PS_2_READ, 
			4u => XfrModeMapEnum.RDS_PS_3_READ, 
			5u => XfrModeMapEnum.RDS_PS_4_READ, 
			6u => XfrModeMapEnum.RDS_PS_5_READ, 
			7u => XfrModeMapEnum.RDS_PS_6_READ, 
			8u => XfrModeMapEnum.RDS_RT_0_READ, 
			9u => XfrModeMapEnum.RDS_RT_1_READ, 
			10u => XfrModeMapEnum.RDS_RT_2_READ, 
			11u => XfrModeMapEnum.RDS_RT_3_READ, 
			12u => XfrModeMapEnum.RDS_RT_4_READ, 
			13u => XfrModeMapEnum.RDS_AF_0_READ, 
			14u => XfrModeMapEnum.RDS_AF_1_READ, 
			15u => XfrModeMapEnum.RDS_CONFIG_READ, 
			16u => XfrModeMapEnum.RDS_TX_GROUPS_READ, 
			17u => XfrModeMapEnum.RDS_COUNT_0_READ, 
			18u => XfrModeMapEnum.RDS_COUNT_1_READ, 
			19u => XfrModeMapEnum.RDS_COUNT_2_READ, 
			20u => XfrModeMapEnum.RADIO_CONFIG_READ, 
			21u => XfrModeMapEnum.RX_CONFIG_READ, 
			22u => XfrModeMapEnum.RX_TIMERS_READ, 
			23u => XfrModeMapEnum.RX_STATIONS_0_READ, 
			24u => XfrModeMapEnum.RX_STATIONS_1_READ, 
			25u => XfrModeMapEnum.INT_CTRL_READ, 
			26u => XfrModeMapEnum.ERROR_READ, 
			27u => XfrModeMapEnum.CHIPID_READ, 
			32u => XfrModeMapEnum.CAL_DAT_0_READ, 
			33u => XfrModeMapEnum.CAL_DAT_1_READ, 
			34u => XfrModeMapEnum.CAL_DAT_2_READ, 
			35u => XfrModeMapEnum.CAL_DAT_3_READ, 
			36u => XfrModeMapEnum.CAL_CFG_0_READ, 
			37u => XfrModeMapEnum.CAL_CFG_1_READ, 
			38u => XfrModeMapEnum.DIG_INTF_0_READ, 
			39u => XfrModeMapEnum.DIG_INTF_1_READ, 
			40u => XfrModeMapEnum.DIG_AGC_0_READ, 
			41u => XfrModeMapEnum.DIG_AGC_1_READ, 
			42u => XfrModeMapEnum.DIG_AGC_2_READ, 
			43u => XfrModeMapEnum.DIG_AUDIO_0_READ, 
			44u => XfrModeMapEnum.DIG_AUDIO_1_READ, 
			45u => XfrModeMapEnum.DIG_AUDIO_2_READ, 
			46u => XfrModeMapEnum.DIG_AUDIO_3_READ, 
			47u => XfrModeMapEnum.DIG_AUDIO_4_READ, 
			48u => XfrModeMapEnum.DIG_RXRDS_0_READ, 
			49u => XfrModeMapEnum.DIG_DCC_READ, 
			50u => XfrModeMapEnum.DIG_SPUR_READ, 
			51u => XfrModeMapEnum.DIG_PILOT_READ, 
			52u => XfrModeMapEnum.DIG_RX_READ, 
			53u => XfrModeMapEnum.DIG_INTF_2_READ, 
			54u => XfrModeMapEnum.DIG_INTF_3_READ, 
			55u => XfrModeMapEnum.DIG_TX_0_READ, 
			56u => XfrModeMapEnum.DIG_TX_1_READ, 
			57u => XfrModeMapEnum.DIG_RXRDS_1_READ, 
			58u => XfrModeMapEnum.RDS_CUSTOM_READ, 
			59u => XfrModeMapEnum.RESERVED_READ, 
			60u => XfrModeMapEnum.PHY_CONFIG_READ, 
			61u => XfrModeMapEnum.PHY_TXBLOCK_READ, 
			62u => XfrModeMapEnum.PHY_TCB_READ, 
			63u => XfrModeMapEnum.XFR_EXT_READ, 
			129u => XfrModeMapEnum.RDS_PS_0_WRITE, 
			130u => XfrModeMapEnum.RDS_PS_1_WRITE, 
			131u => XfrModeMapEnum.RDS_PS_2_WRITE, 
			132u => XfrModeMapEnum.RDS_PS_3_WRITE, 
			133u => XfrModeMapEnum.RDS_PS_4_WRITE, 
			134u => XfrModeMapEnum.RDS_PS_5_WRITE, 
			135u => XfrModeMapEnum.RDS_PS_6_WRITE, 
			136u => XfrModeMapEnum.RDS_RT_0_WRITE, 
			137u => XfrModeMapEnum.RDS_RT_1_WRITE, 
			138u => XfrModeMapEnum.RDS_RT_2_WRITE, 
			139u => XfrModeMapEnum.RDS_RT_3_WRITE, 
			140u => XfrModeMapEnum.RDS_RT_4_WRITE, 
			141u => XfrModeMapEnum.RDS_AF_0_WRITE, 
			142u => XfrModeMapEnum.RDS_AF_1_WRITE, 
			143u => XfrModeMapEnum.RDS_CONFIG_WRITE, 
			144u => XfrModeMapEnum.RDS_TX_GROUPS_WRITE, 
			145u => XfrModeMapEnum.RDS_COUNT_0_WRITE, 
			146u => XfrModeMapEnum.RDS_COUNT_1_WRITE, 
			147u => XfrModeMapEnum.RDS_COUNT_2_WRITE, 
			148u => XfrModeMapEnum.RADIO_CONFIG_WRITE, 
			149u => XfrModeMapEnum.RX_CONFIG_WRITE, 
			150u => XfrModeMapEnum.RX_TIMERS_WRITE, 
			151u => XfrModeMapEnum.RX_STATIONS_0_WRITE, 
			152u => XfrModeMapEnum.RX_STATIONS_1_WRITE, 
			153u => XfrModeMapEnum.INT_CTRL_WRITE, 
			154u => XfrModeMapEnum.ERROR_WRITE, 
			155u => XfrModeMapEnum.CHIPID_WRITE, 
			160u => XfrModeMapEnum.CAL_DAT_0_WRITE, 
			161u => XfrModeMapEnum.CAL_DAT_1_WRITE, 
			162u => XfrModeMapEnum.CAL_DAT_2_WRITE, 
			163u => XfrModeMapEnum.CAL_DAT_3_WRITE, 
			164u => XfrModeMapEnum.CAL_CFG_0_WRITE, 
			165u => XfrModeMapEnum.CAL_CFG_1_WRITE, 
			166u => XfrModeMapEnum.DIG_INTF_0_WRITE, 
			167u => XfrModeMapEnum.DIG_INTF_1_WRITE, 
			168u => XfrModeMapEnum.DIG_AGC_0_WRITE, 
			169u => XfrModeMapEnum.DIG_AGC_1_WRITE, 
			170u => XfrModeMapEnum.DIG_AGC_2_WRITE, 
			171u => XfrModeMapEnum.DIG_AUDIO_0_WRITE, 
			172u => XfrModeMapEnum.DIG_AUDIO_1_WRITE, 
			173u => XfrModeMapEnum.DIG_AUDIO_2_WRITE, 
			174u => XfrModeMapEnum.DIG_AUDIO_3_WRITE, 
			175u => XfrModeMapEnum.DIG_AUDIO_4_WRITE, 
			176u => XfrModeMapEnum.DIG_RXRDS_0_WRITE, 
			177u => XfrModeMapEnum.DIG_DCC_WRITE, 
			178u => XfrModeMapEnum.DIG_SPUR_WRITE, 
			179u => XfrModeMapEnum.DIG_PILOT_WRITE, 
			180u => XfrModeMapEnum.DIG_RX_WRITE, 
			181u => XfrModeMapEnum.DIG_INTF_2_WRITE, 
			182u => XfrModeMapEnum.DIG_INTF_3_WRITE, 
			183u => XfrModeMapEnum.DIG_TX_0_WRITE, 
			184u => XfrModeMapEnum.DIG_TX_1_WRITE, 
			185u => XfrModeMapEnum.DIG_RXRDS_1_WRITE, 
			186u => XfrModeMapEnum.RDS_CUSTOM_WRITE, 
			187u => XfrModeMapEnum.RESERVED_WRITE, 
			188u => XfrModeMapEnum.PHY_CONFIG_WRITE, 
			189u => XfrModeMapEnum.PHY_TXBLOCK_WRITE, 
			190u => XfrModeMapEnum.PHY_TCB_WRITE, 
			191u => XfrModeMapEnum.XFR_EXT_WRITE, 
			_ => XfrModeMapEnum.InvalidXfrModeMapValue, 
		};
	}

	public static uint XfrModeMapToValue(XfrModeMapEnum enumItem)
	{
		return enumItem switch
		{
			XfrModeMapEnum.RDS_PS_0_READ => 1u, 
			XfrModeMapEnum.RDS_PS_1_READ => 2u, 
			XfrModeMapEnum.RDS_PS_2_READ => 3u, 
			XfrModeMapEnum.RDS_PS_3_READ => 4u, 
			XfrModeMapEnum.RDS_PS_4_READ => 5u, 
			XfrModeMapEnum.RDS_PS_5_READ => 6u, 
			XfrModeMapEnum.RDS_PS_6_READ => 7u, 
			XfrModeMapEnum.RDS_RT_0_READ => 8u, 
			XfrModeMapEnum.RDS_RT_1_READ => 9u, 
			XfrModeMapEnum.RDS_RT_2_READ => 10u, 
			XfrModeMapEnum.RDS_RT_3_READ => 11u, 
			XfrModeMapEnum.RDS_RT_4_READ => 12u, 
			XfrModeMapEnum.RDS_AF_0_READ => 13u, 
			XfrModeMapEnum.RDS_AF_1_READ => 14u, 
			XfrModeMapEnum.RDS_CONFIG_READ => 15u, 
			XfrModeMapEnum.RDS_TX_GROUPS_READ => 16u, 
			XfrModeMapEnum.RDS_COUNT_0_READ => 17u, 
			XfrModeMapEnum.RDS_COUNT_1_READ => 18u, 
			XfrModeMapEnum.RDS_COUNT_2_READ => 19u, 
			XfrModeMapEnum.RADIO_CONFIG_READ => 20u, 
			XfrModeMapEnum.RX_CONFIG_READ => 21u, 
			XfrModeMapEnum.RX_TIMERS_READ => 22u, 
			XfrModeMapEnum.RX_STATIONS_0_READ => 23u, 
			XfrModeMapEnum.RX_STATIONS_1_READ => 24u, 
			XfrModeMapEnum.INT_CTRL_READ => 25u, 
			XfrModeMapEnum.ERROR_READ => 26u, 
			XfrModeMapEnum.CHIPID_READ => 27u, 
			XfrModeMapEnum.CAL_DAT_0_READ => 32u, 
			XfrModeMapEnum.CAL_DAT_1_READ => 33u, 
			XfrModeMapEnum.CAL_DAT_2_READ => 34u, 
			XfrModeMapEnum.CAL_DAT_3_READ => 35u, 
			XfrModeMapEnum.CAL_CFG_0_READ => 36u, 
			XfrModeMapEnum.CAL_CFG_1_READ => 37u, 
			XfrModeMapEnum.DIG_INTF_0_READ => 38u, 
			XfrModeMapEnum.DIG_INTF_1_READ => 39u, 
			XfrModeMapEnum.DIG_AGC_0_READ => 40u, 
			XfrModeMapEnum.DIG_AGC_1_READ => 41u, 
			XfrModeMapEnum.DIG_AGC_2_READ => 42u, 
			XfrModeMapEnum.DIG_AUDIO_0_READ => 43u, 
			XfrModeMapEnum.DIG_AUDIO_1_READ => 44u, 
			XfrModeMapEnum.DIG_AUDIO_2_READ => 45u, 
			XfrModeMapEnum.DIG_AUDIO_3_READ => 46u, 
			XfrModeMapEnum.DIG_AUDIO_4_READ => 47u, 
			XfrModeMapEnum.DIG_RXRDS_0_READ => 48u, 
			XfrModeMapEnum.DIG_DCC_READ => 49u, 
			XfrModeMapEnum.DIG_SPUR_READ => 50u, 
			XfrModeMapEnum.DIG_PILOT_READ => 51u, 
			XfrModeMapEnum.DIG_RX_READ => 52u, 
			XfrModeMapEnum.DIG_INTF_2_READ => 53u, 
			XfrModeMapEnum.DIG_INTF_3_READ => 54u, 
			XfrModeMapEnum.DIG_TX_0_READ => 55u, 
			XfrModeMapEnum.DIG_TX_1_READ => 56u, 
			XfrModeMapEnum.DIG_RXRDS_1_READ => 57u, 
			XfrModeMapEnum.RDS_CUSTOM_READ => 58u, 
			XfrModeMapEnum.RESERVED_READ => 59u, 
			XfrModeMapEnum.PHY_CONFIG_READ => 60u, 
			XfrModeMapEnum.PHY_TXBLOCK_READ => 61u, 
			XfrModeMapEnum.PHY_TCB_READ => 62u, 
			XfrModeMapEnum.XFR_EXT_READ => 63u, 
			XfrModeMapEnum.RDS_PS_0_WRITE => 129u, 
			XfrModeMapEnum.RDS_PS_1_WRITE => 130u, 
			XfrModeMapEnum.RDS_PS_2_WRITE => 131u, 
			XfrModeMapEnum.RDS_PS_3_WRITE => 132u, 
			XfrModeMapEnum.RDS_PS_4_WRITE => 133u, 
			XfrModeMapEnum.RDS_PS_5_WRITE => 134u, 
			XfrModeMapEnum.RDS_PS_6_WRITE => 135u, 
			XfrModeMapEnum.RDS_RT_0_WRITE => 136u, 
			XfrModeMapEnum.RDS_RT_1_WRITE => 137u, 
			XfrModeMapEnum.RDS_RT_2_WRITE => 138u, 
			XfrModeMapEnum.RDS_RT_3_WRITE => 139u, 
			XfrModeMapEnum.RDS_RT_4_WRITE => 140u, 
			XfrModeMapEnum.RDS_AF_0_WRITE => 141u, 
			XfrModeMapEnum.RDS_AF_1_WRITE => 142u, 
			XfrModeMapEnum.RDS_CONFIG_WRITE => 143u, 
			XfrModeMapEnum.RDS_TX_GROUPS_WRITE => 144u, 
			XfrModeMapEnum.RDS_COUNT_0_WRITE => 145u, 
			XfrModeMapEnum.RDS_COUNT_1_WRITE => 146u, 
			XfrModeMapEnum.RDS_COUNT_2_WRITE => 147u, 
			XfrModeMapEnum.RADIO_CONFIG_WRITE => 148u, 
			XfrModeMapEnum.RX_CONFIG_WRITE => 149u, 
			XfrModeMapEnum.RX_TIMERS_WRITE => 150u, 
			XfrModeMapEnum.RX_STATIONS_0_WRITE => 151u, 
			XfrModeMapEnum.RX_STATIONS_1_WRITE => 152u, 
			XfrModeMapEnum.INT_CTRL_WRITE => 153u, 
			XfrModeMapEnum.ERROR_WRITE => 154u, 
			XfrModeMapEnum.CHIPID_WRITE => 155u, 
			XfrModeMapEnum.CAL_DAT_0_WRITE => 160u, 
			XfrModeMapEnum.CAL_DAT_1_WRITE => 161u, 
			XfrModeMapEnum.CAL_DAT_2_WRITE => 162u, 
			XfrModeMapEnum.CAL_DAT_3_WRITE => 163u, 
			XfrModeMapEnum.CAL_CFG_0_WRITE => 164u, 
			XfrModeMapEnum.CAL_CFG_1_WRITE => 165u, 
			XfrModeMapEnum.DIG_INTF_0_WRITE => 166u, 
			XfrModeMapEnum.DIG_INTF_1_WRITE => 167u, 
			XfrModeMapEnum.DIG_AGC_0_WRITE => 168u, 
			XfrModeMapEnum.DIG_AGC_1_WRITE => 169u, 
			XfrModeMapEnum.DIG_AGC_2_WRITE => 170u, 
			XfrModeMapEnum.DIG_AUDIO_0_WRITE => 171u, 
			XfrModeMapEnum.DIG_AUDIO_1_WRITE => 172u, 
			XfrModeMapEnum.DIG_AUDIO_2_WRITE => 173u, 
			XfrModeMapEnum.DIG_AUDIO_3_WRITE => 174u, 
			XfrModeMapEnum.DIG_AUDIO_4_WRITE => 175u, 
			XfrModeMapEnum.DIG_RXRDS_0_WRITE => 176u, 
			XfrModeMapEnum.DIG_DCC_WRITE => 177u, 
			XfrModeMapEnum.DIG_SPUR_WRITE => 178u, 
			XfrModeMapEnum.DIG_PILOT_WRITE => 179u, 
			XfrModeMapEnum.DIG_RX_WRITE => 180u, 
			XfrModeMapEnum.DIG_INTF_2_WRITE => 181u, 
			XfrModeMapEnum.DIG_INTF_3_WRITE => 182u, 
			XfrModeMapEnum.DIG_TX_0_WRITE => 183u, 
			XfrModeMapEnum.DIG_TX_1_WRITE => 184u, 
			XfrModeMapEnum.DIG_RXRDS_1_WRITE => 185u, 
			XfrModeMapEnum.RDS_CUSTOM_WRITE => 186u, 
			XfrModeMapEnum.RESERVED_WRITE => 187u, 
			XfrModeMapEnum.PHY_CONFIG_WRITE => 188u, 
			XfrModeMapEnum.PHY_TXBLOCK_WRITE => 189u, 
			XfrModeMapEnum.PHY_TCB_WRITE => 190u, 
			XfrModeMapEnum.XFR_EXT_WRITE => 191u, 
			_ => uint.MaxValue, 
		};
	}

	public static string XfrModeMapToString(XfrModeMapEnum enumItem)
	{
		return enumItem switch
		{
			XfrModeMapEnum.RDS_PS_0_READ => "RDS_PS_0_READ", 
			XfrModeMapEnum.RDS_PS_1_READ => "RDS_PS_1_READ", 
			XfrModeMapEnum.RDS_PS_2_READ => "RDS_PS_2_READ", 
			XfrModeMapEnum.RDS_PS_3_READ => "RDS_PS_3_READ", 
			XfrModeMapEnum.RDS_PS_4_READ => "RDS_PS_4_READ", 
			XfrModeMapEnum.RDS_PS_5_READ => "RDS_PS_5_READ", 
			XfrModeMapEnum.RDS_PS_6_READ => "RDS_PS_6_READ", 
			XfrModeMapEnum.RDS_RT_0_READ => "RDS_RT_0_READ", 
			XfrModeMapEnum.RDS_RT_1_READ => "RDS_RT_1_READ", 
			XfrModeMapEnum.RDS_RT_2_READ => "RDS_RT_2_READ", 
			XfrModeMapEnum.RDS_RT_3_READ => "RDS_RT_3_READ", 
			XfrModeMapEnum.RDS_RT_4_READ => "RDS_RT_4_READ", 
			XfrModeMapEnum.RDS_AF_0_READ => "RDS_AF_0_READ", 
			XfrModeMapEnum.RDS_AF_1_READ => "RDS_AF_1_READ", 
			XfrModeMapEnum.RDS_CONFIG_READ => "RDS_CONFIG_READ", 
			XfrModeMapEnum.RDS_TX_GROUPS_READ => "RDS_TX_GROUPS_READ", 
			XfrModeMapEnum.RDS_COUNT_0_READ => "RDS_COUNT_0_READ", 
			XfrModeMapEnum.RDS_COUNT_1_READ => "RDS_COUNT_1_READ", 
			XfrModeMapEnum.RDS_COUNT_2_READ => "RDS_COUNT_2_READ", 
			XfrModeMapEnum.RADIO_CONFIG_READ => "RADIO_CONFIG_READ", 
			XfrModeMapEnum.RX_CONFIG_READ => "RX_CONFIG_READ", 
			XfrModeMapEnum.RX_TIMERS_READ => "RX_TIMERS_READ", 
			XfrModeMapEnum.RX_STATIONS_0_READ => "RX_STATIONS_0_READ", 
			XfrModeMapEnum.RX_STATIONS_1_READ => "RX_STATIONS_1_READ", 
			XfrModeMapEnum.INT_CTRL_READ => "INT_CTRL_READ", 
			XfrModeMapEnum.ERROR_READ => "ERROR_READ", 
			XfrModeMapEnum.CHIPID_READ => "CHIPID_READ", 
			XfrModeMapEnum.CAL_DAT_0_READ => "CAL_DAT_0_READ", 
			XfrModeMapEnum.CAL_DAT_1_READ => "CAL_DAT_1_READ", 
			XfrModeMapEnum.CAL_DAT_2_READ => "CAL_DAT_2_READ", 
			XfrModeMapEnum.CAL_DAT_3_READ => "CAL_DAT_3_READ", 
			XfrModeMapEnum.CAL_CFG_0_READ => "CAL_CFG_0_READ", 
			XfrModeMapEnum.CAL_CFG_1_READ => "CAL_CFG_1_READ", 
			XfrModeMapEnum.DIG_INTF_0_READ => "DIG_INTF_0_READ", 
			XfrModeMapEnum.DIG_INTF_1_READ => "DIG_INTF_1_READ", 
			XfrModeMapEnum.DIG_AGC_0_READ => "DIG_AGC_0_READ", 
			XfrModeMapEnum.DIG_AGC_1_READ => "DIG_AGC_1_READ", 
			XfrModeMapEnum.DIG_AGC_2_READ => "DIG_AGC_2_READ", 
			XfrModeMapEnum.DIG_AUDIO_0_READ => "DIG_AUDIO_0_READ", 
			XfrModeMapEnum.DIG_AUDIO_1_READ => "DIG_AUDIO_1_READ", 
			XfrModeMapEnum.DIG_AUDIO_2_READ => "DIG_AUDIO_2_READ", 
			XfrModeMapEnum.DIG_AUDIO_3_READ => "DIG_AUDIO_3_READ", 
			XfrModeMapEnum.DIG_AUDIO_4_READ => "DIG_AUDIO_4_READ", 
			XfrModeMapEnum.DIG_RXRDS_0_READ => "DIG_RXRDS_0_READ", 
			XfrModeMapEnum.DIG_DCC_READ => "DIG_DCC_READ", 
			XfrModeMapEnum.DIG_SPUR_READ => "DIG_SPUR_READ", 
			XfrModeMapEnum.DIG_PILOT_READ => "DIG_PILOT_READ", 
			XfrModeMapEnum.DIG_RX_READ => "DIG_RX_READ", 
			XfrModeMapEnum.DIG_INTF_2_READ => "DIG_INTF_2_READ", 
			XfrModeMapEnum.DIG_INTF_3_READ => "DIG_INTF_3_READ", 
			XfrModeMapEnum.DIG_TX_0_READ => "DIG_TX_0_READ", 
			XfrModeMapEnum.DIG_TX_1_READ => "DIG_TX_1_READ", 
			XfrModeMapEnum.DIG_RXRDS_1_READ => "DIG_RXRDS_1_READ", 
			XfrModeMapEnum.RDS_CUSTOM_READ => "RDS_CUSTOM_READ", 
			XfrModeMapEnum.RESERVED_READ => "RESERVED_READ", 
			XfrModeMapEnum.PHY_CONFIG_READ => "PHY_CONFIG_READ", 
			XfrModeMapEnum.PHY_TXBLOCK_READ => "PHY_TXBLOCK_READ", 
			XfrModeMapEnum.PHY_TCB_READ => "PHY_TCB_READ", 
			XfrModeMapEnum.XFR_EXT_READ => "XFR_EXT_READ", 
			XfrModeMapEnum.RDS_PS_0_WRITE => "RDS_PS_0_WRITE", 
			XfrModeMapEnum.RDS_PS_1_WRITE => "RDS_PS_1_WRITE", 
			XfrModeMapEnum.RDS_PS_2_WRITE => "RDS_PS_2_WRITE", 
			XfrModeMapEnum.RDS_PS_3_WRITE => "RDS_PS_3_WRITE", 
			XfrModeMapEnum.RDS_PS_4_WRITE => "RDS_PS_4_WRITE", 
			XfrModeMapEnum.RDS_PS_5_WRITE => "RDS_PS_5_WRITE", 
			XfrModeMapEnum.RDS_PS_6_WRITE => "RDS_PS_6_WRITE", 
			XfrModeMapEnum.RDS_RT_0_WRITE => "RDS_RT_0_WRITE", 
			XfrModeMapEnum.RDS_RT_1_WRITE => "RDS_RT_1_WRITE", 
			XfrModeMapEnum.RDS_RT_2_WRITE => "RDS_RT_2_WRITE", 
			XfrModeMapEnum.RDS_RT_3_WRITE => "RDS_RT_3_WRITE", 
			XfrModeMapEnum.RDS_RT_4_WRITE => "RDS_RT_4_WRITE", 
			XfrModeMapEnum.RDS_AF_0_WRITE => "RDS_AF_0_WRITE", 
			XfrModeMapEnum.RDS_AF_1_WRITE => "RDS_AF_1_WRITE", 
			XfrModeMapEnum.RDS_CONFIG_WRITE => "RDS_CONFIG_WRITE", 
			XfrModeMapEnum.RDS_TX_GROUPS_WRITE => "RDS_TX_GROUPS_WRITE", 
			XfrModeMapEnum.RDS_COUNT_0_WRITE => "RDS_COUNT_0_WRITE", 
			XfrModeMapEnum.RDS_COUNT_1_WRITE => "RDS_COUNT_1_WRITE", 
			XfrModeMapEnum.RDS_COUNT_2_WRITE => "RDS_COUNT_2_WRITE", 
			XfrModeMapEnum.RADIO_CONFIG_WRITE => "RADIO_CONFIG_WRITE", 
			XfrModeMapEnum.RX_CONFIG_WRITE => "RX_CONFIG_WRITE", 
			XfrModeMapEnum.RX_TIMERS_WRITE => "RX_TIMERS_WRITE", 
			XfrModeMapEnum.RX_STATIONS_0_WRITE => "RX_STATIONS_0_WRITE", 
			XfrModeMapEnum.RX_STATIONS_1_WRITE => "RX_STATIONS_1_WRITE", 
			XfrModeMapEnum.INT_CTRL_WRITE => "INT_CTRL_WRITE", 
			XfrModeMapEnum.ERROR_WRITE => "ERROR_WRITE", 
			XfrModeMapEnum.CHIPID_WRITE => "CHIPID_WRITE", 
			XfrModeMapEnum.CAL_DAT_0_WRITE => "CAL_DAT_0_WRITE", 
			XfrModeMapEnum.CAL_DAT_1_WRITE => "CAL_DAT_1_WRITE", 
			XfrModeMapEnum.CAL_DAT_2_WRITE => "CAL_DAT_2_WRITE", 
			XfrModeMapEnum.CAL_DAT_3_WRITE => "CAL_DAT_3_WRITE", 
			XfrModeMapEnum.CAL_CFG_0_WRITE => "CAL_CFG_0_WRITE", 
			XfrModeMapEnum.CAL_CFG_1_WRITE => "CAL_CFG_1_WRITE", 
			XfrModeMapEnum.DIG_INTF_0_WRITE => "DIG_INTF_0_WRITE", 
			XfrModeMapEnum.DIG_INTF_1_WRITE => "DIG_INTF_1_WRITE", 
			XfrModeMapEnum.DIG_AGC_0_WRITE => "DIG_AGC_0_WRITE", 
			XfrModeMapEnum.DIG_AGC_1_WRITE => "DIG_AGC_1_WRITE", 
			XfrModeMapEnum.DIG_AGC_2_WRITE => "DIG_AGC_2_WRITE", 
			XfrModeMapEnum.DIG_AUDIO_0_WRITE => "DIG_AUDIO_0_WRITE", 
			XfrModeMapEnum.DIG_AUDIO_1_WRITE => "DIG_AUDIO_1_WRITE", 
			XfrModeMapEnum.DIG_AUDIO_2_WRITE => "DIG_AUDIO_2_WRITE", 
			XfrModeMapEnum.DIG_AUDIO_3_WRITE => "DIG_AUDIO_3_WRITE", 
			XfrModeMapEnum.DIG_AUDIO_4_WRITE => "DIG_AUDIO_4_WRITE", 
			XfrModeMapEnum.DIG_RXRDS_0_WRITE => "DIG_RXRDS_0_WRITE", 
			XfrModeMapEnum.DIG_DCC_WRITE => "DIG_DCC_WRITE", 
			XfrModeMapEnum.DIG_SPUR_WRITE => "DIG_SPUR_WRITE", 
			XfrModeMapEnum.DIG_PILOT_WRITE => "DIG_PILOT_WRITE", 
			XfrModeMapEnum.DIG_RX_WRITE => "DIG_RX_WRITE", 
			XfrModeMapEnum.DIG_INTF_2_WRITE => "DIG_INTF_2_WRITE", 
			XfrModeMapEnum.DIG_INTF_3_WRITE => "DIG_INTF_3_WRITE", 
			XfrModeMapEnum.DIG_TX_0_WRITE => "DIG_TX_0_WRITE", 
			XfrModeMapEnum.DIG_TX_1_WRITE => "DIG_TX_1_WRITE", 
			XfrModeMapEnum.DIG_RXRDS_1_WRITE => "DIG_RXRDS_1_WRITE", 
			XfrModeMapEnum.RDS_CUSTOM_WRITE => "RDS_CUSTOM_WRITE", 
			XfrModeMapEnum.RESERVED_WRITE => "RESERVED_WRITE", 
			XfrModeMapEnum.PHY_CONFIG_WRITE => "PHY_CONFIG_WRITE", 
			XfrModeMapEnum.PHY_TXBLOCK_WRITE => "PHY_TXBLOCK_WRITE", 
			XfrModeMapEnum.PHY_TCB_WRITE => "PHY_TCB_WRITE", 
			XfrModeMapEnum.XFR_EXT_WRITE => "XFR_EXT_WRITE", 
			_ => "Invalid XfrModeMap Value", 
		};
	}

	public static string XfrModeMapToDescription()
	{
		StringBuilder stringBuilder = new StringBuilder();
		stringBuilder.AppendLine("0x1 = RDS_PS_0_READ");
		stringBuilder.AppendLine("0x2 = RDS_PS_1_READ");
		stringBuilder.AppendLine("0x3 = RDS_PS_2_READ");
		stringBuilder.AppendLine("0x4 = RDS_PS_3_READ");
		stringBuilder.AppendLine("0x5 = RDS_PS_4_READ");
		stringBuilder.AppendLine("0x6 = RDS_PS_5_READ");
		stringBuilder.AppendLine("0x7 = RDS_PS_6_READ");
		stringBuilder.AppendLine("0x8 = RDS_RT_0_READ");
		stringBuilder.AppendLine("0x9 = RDS_RT_1_READ");
		stringBuilder.AppendLine("0xA = RDS_RT_2_READ");
		stringBuilder.AppendLine("0xB = RDS_RT_3_READ");
		stringBuilder.AppendLine("0xC = RDS_RT_4_READ");
		stringBuilder.AppendLine("0xD = RDS_AF_0_READ");
		stringBuilder.AppendLine("0xE = RDS_AF_1_READ");
		stringBuilder.AppendLine("0xF = RDS_CONFIG_READ");
		stringBuilder.AppendLine("0x10 = RDS_TX_GROUPS_READ");
		stringBuilder.AppendLine("0x11 = RDS_COUNT_0_READ");
		stringBuilder.AppendLine("0x12 = RDS_COUNT_1_READ");
		stringBuilder.AppendLine("0x13 = RDS_COUNT_2_READ");
		stringBuilder.AppendLine("0x14 = RADIO_CONFIG_READ");
		stringBuilder.AppendLine("0x15 = RX_CONFIG_READ");
		stringBuilder.AppendLine("0x16 = RX_TIMERS_READ");
		stringBuilder.AppendLine("0x17 = RX_STATIONS_0_READ");
		stringBuilder.AppendLine("0x18 = RX_STATIONS_1_READ");
		stringBuilder.AppendLine("0x19 = INT_CTRL_READ");
		stringBuilder.AppendLine("0x1A = ERROR_READ");
		stringBuilder.AppendLine("0x1B = CHIPID_READ");
		stringBuilder.AppendLine("0x20 = CAL_DAT_0_READ");
		stringBuilder.AppendLine("0x21 = CAL_DAT_1_READ");
		stringBuilder.AppendLine("0x22 = CAL_DAT_2_READ");
		stringBuilder.AppendLine("0x23 = CAL_DAT_3_READ");
		stringBuilder.AppendLine("0x24 = CAL_CFG_0_READ");
		stringBuilder.AppendLine("0x25 = CAL_CFG_1_READ");
		stringBuilder.AppendLine("0x26 = DIG_INTF_0_READ");
		stringBuilder.AppendLine("0x27 = DIG_INTF_1_READ");
		stringBuilder.AppendLine("0x28 = DIG_AGC_0_READ");
		stringBuilder.AppendLine("0x29 = DIG_AGC_1_READ");
		stringBuilder.AppendLine("0x2A = DIG_AGC_2_READ");
		stringBuilder.AppendLine("0x2B = DIG_AUDIO_0_READ");
		stringBuilder.AppendLine("0x2C = DIG_AUDIO_1_READ");
		stringBuilder.AppendLine("0x2D = DIG_AUDIO_2_READ");
		stringBuilder.AppendLine("0x2E = DIG_AUDIO_3_READ");
		stringBuilder.AppendLine("0x2F = DIG_AUDIO_4_READ");
		stringBuilder.AppendLine("0x30 = DIG_RXRDS_0_READ");
		stringBuilder.AppendLine("0x31 = DIG_DCC_READ");
		stringBuilder.AppendLine("0x32 = DIG_SPUR_READ");
		stringBuilder.AppendLine("0x33 = DIG_PILOT_READ");
		stringBuilder.AppendLine("0x34 = DIG_RX_READ");
		stringBuilder.AppendLine("0x35 = DIG_INTF_2_READ");
		stringBuilder.AppendLine("0x36 = DIG_INTF_3_READ");
		stringBuilder.AppendLine("0x37 = DIG_TX_0_READ");
		stringBuilder.AppendLine("0x38 = DIG_TX_1_READ");
		stringBuilder.AppendLine("0x39 = DIG_RXRDS_1_READ");
		stringBuilder.AppendLine("0x3A = RDS_CUSTOM_READ");
		stringBuilder.AppendLine("0x3B = RESERVED_READ");
		stringBuilder.AppendLine("0x3C = PHY_CONFIG_READ");
		stringBuilder.AppendLine("0x3D = PHY_TXBLOCK_READ");
		stringBuilder.AppendLine("0x3E = PHY_TCB_READ");
		stringBuilder.AppendLine("0x3F = XFR_EXT_READ");
		stringBuilder.AppendLine("0x81 = RDS_PS_0_WRITE");
		stringBuilder.AppendLine("0x82 = RDS_PS_1_WRITE");
		stringBuilder.AppendLine("0x83 = RDS_PS_2_WRITE");
		stringBuilder.AppendLine("0x84 = RDS_PS_3_WRITE");
		stringBuilder.AppendLine("0x85 = RDS_PS_4_WRITE");
		stringBuilder.AppendLine("0x86 = RDS_PS_5_WRITE");
		stringBuilder.AppendLine("0x87 = RDS_PS_6_WRITE");
		stringBuilder.AppendLine("0x88 = RDS_RT_0_WRITE");
		stringBuilder.AppendLine("0x89 = RDS_RT_1_WRITE");
		stringBuilder.AppendLine("0x8A = RDS_RT_2_WRITE");
		stringBuilder.AppendLine("0x8B = RDS_RT_3_WRITE");
		stringBuilder.AppendLine("0x8C = RDS_RT_4_WRITE");
		stringBuilder.AppendLine("0x8D = RDS_AF_0_WRITE");
		stringBuilder.AppendLine("0x8E = RDS_AF_1_WRITE");
		stringBuilder.AppendLine("0x8F = RDS_CONFIG_WRITE");
		stringBuilder.AppendLine("0x90 = RDS_TX_GROUPS_WRITE");
		stringBuilder.AppendLine("0x91 = RDS_COUNT_0_WRITE");
		stringBuilder.AppendLine("0x92 = RDS_COUNT_1_WRITE");
		stringBuilder.AppendLine("0x93 = RDS_COUNT_2_WRITE");
		stringBuilder.AppendLine("0x94 = RADIO_CONFIG_WRITE");
		stringBuilder.AppendLine("0x95 = RX_CONFIG_WRITE");
		stringBuilder.AppendLine("0x96 = RX_TIMERS_WRITE");
		stringBuilder.AppendLine("0x97 = RX_STATIONS_0_WRITE");
		stringBuilder.AppendLine("0x98 = RX_STATIONS_1_WRITE");
		stringBuilder.AppendLine("0x99 = INT_CTRL_WRITE");
		stringBuilder.AppendLine("0x9A = ERROR_WRITE");
		stringBuilder.AppendLine("0x9B = CHIPID_WRITE");
		stringBuilder.AppendLine("0xA0 = CAL_DAT_0_WRITE");
		stringBuilder.AppendLine("0xA1 = CAL_DAT_1_WRITE");
		stringBuilder.AppendLine("0xA2 = CAL_DAT_2_WRITE");
		stringBuilder.AppendLine("0xA3 = CAL_DAT_3_WRITE");
		stringBuilder.AppendLine("0xA4 = CAL_CFG_0_WRITE");
		stringBuilder.AppendLine("0xA5 = CAL_CFG_1_WRITE");
		stringBuilder.AppendLine("0xA6 = DIG_INTF_0_WRITE");
		stringBuilder.AppendLine("0xA7 = DIG_INTF_1_WRITE");
		stringBuilder.AppendLine("0xA8 = DIG_AGC_0_WRITE");
		stringBuilder.AppendLine("0xA9 = DIG_AGC_1_WRITE");
		stringBuilder.AppendLine("0xAA = DIG_AGC_2_WRITE");
		stringBuilder.AppendLine("0xAB = DIG_AUDIO_0_WRITE");
		stringBuilder.AppendLine("0xAC = DIG_AUDIO_1_WRITE");
		stringBuilder.AppendLine("0xAD = DIG_AUDIO_2_WRITE");
		stringBuilder.AppendLine("0xAE = DIG_AUDIO_3_WRITE");
		stringBuilder.AppendLine("0xAF = DIG_AUDIO_4_WRITE");
		stringBuilder.AppendLine("0xB0 = DIG_RXRDS_0_WRITE");
		stringBuilder.AppendLine("0xB1 = DIG_DCC_WRITE");
		stringBuilder.AppendLine("0xB2 = DIG_SPUR_WRITE");
		stringBuilder.AppendLine("0xB3 = DIG_PILOT_WRITE");
		stringBuilder.AppendLine("0xB4 = DIG_RX_WRITE");
		stringBuilder.AppendLine("0xB5 = DIG_INTF_2_WRITE");
		stringBuilder.AppendLine("0xB6 = DIG_INTF_3_WRITE");
		stringBuilder.AppendLine("0xB7 = DIG_TX_0_WRITE");
		stringBuilder.AppendLine("0xB8 = DIG_TX_1_WRITE");
		stringBuilder.AppendLine("0xB9 = DIG_RXRDS_1_WRITE");
		stringBuilder.AppendLine("0xBA = RDS_CUSTOM_WRITE");
		stringBuilder.AppendLine("0xBB = RESERVED_WRITE");
		stringBuilder.AppendLine("0xBC = PHY_CONFIG_WRITE");
		stringBuilder.AppendLine("0xBD = PHY_TXBLOCK_WRITE");
		stringBuilder.AppendLine("0xBE = PHY_TCB_WRITE");
		stringBuilder.AppendLine("0xBF = XFR_EXT_WRITE");
		return stringBuilder.ToString();
	}
}
