Gurux.DLMS.Objects.GXDLMSSFSKPhyMacSetUp.GetDataType C# (CSharp) Method

GetDataType() public method

public GetDataType ( int index ) : DataType
index int
return DataType
    public override DataType GetDataType(int index)
    {
        //LogicalName
        if (index == 1)
        {
            return DataType.OctetString;
        }
        //InitiatorElectricalPhase
        if (index == 2)
        {
            return DataType.Enum;
        }
        //DeltaElectricalPhase
        if (index == 3)
        {
            return DataType.Enum;
        }
        //MaxReceivingGain
        if (index == 4)
        {
            return DataType.UInt8;
        }
        //MaxTransmittingGain
        if (index == 5)
        {
            return DataType.UInt8;
        }
        //SearchInitiatorThreshold
        if (index == 6)
        {
            return DataType.UInt8;
        }
        //Frequency
        if (index == 7)
        {
            return DataType.Structure;
        }
        //MacAddress
        if (index == 8)
        {
            return DataType.UInt16;
        }
        //MacGroupAddresses
        if (index == 9)
        {
            return DataType.Array;
        }
        //Repeater
        if (index == 10)
        {
            return DataType.Enum;
        }
        //RepeaterStatus
        if (index == 11)
        {
            return DataType.Boolean;
        }
        //MinDeltaCredit
        if (index == 12)
        {
            return DataType.UInt8;
        }
        //InitiatorMacAddress
        if (index == 13)
        {
            return DataType.UInt16;
        }
        //SynchronizationLocked
        if (index == 14)
        {
            return DataType.Boolean;
        }
        //TransmissionSpeed
        if (index == 15)
        {
            return DataType.Enum;
        }
        throw new ArgumentException("GetDataType failed. Invalid attribute index.");
    }