[About] Version=1.0 Author=Nic Mail=support@hiasm.com [Type] Class=Element Info=Calculates CRC16/32 [Property] Type=Sets the type of the data. ARG(DataType)|14|0|TEXT,HEX Method=Sets the calculation method. ARG(CRCMethod)|14|0|CRC16,CRC16Kermit,CRC16DNP,CRC16CCITT,CRC32 Polynomial=Sets the polynomial. For example: 0xA001. ARG(string)|2| Initial=Sets the initial CRC value belonging to that algorithm. For example: 0xFFFF. ARG(string)|2| Revert=Sets the order of the byte in result(only for CRC16xxx). ARG(bool)|14|1|True,False Encoding=Sets the target encoding format. ARG(Encoding)|20|(empty)|Encoding [Methods] doCalcCRC=Calculates CRC. ARG(string data, DataType type, CRCMethod method, string polynomial, string initial, bool revert)|1|0 onCalcCRC=Occurs after invoke the method doCalcCRC and returns the result. ARG(string)|2|2 Result=Returns the result. ARG(string)|3|2 Data=Defines the data to calculate. ARG(string)|4|2 Polynomial=Defines the initial CRC value belonging to that algorithm. ARG(string)|4|2 Initial=Defines initial CRC value belonging to that algorithm. ARG(string)|4|2 Revert=Defines the order of the byte in result(only for CRC16xxx). ARG(bool)|4|104