<!clock: {"ALL" : "CRC" };
  pin:   {"ALL" : [""]};
!>
/*--------------------------------------------------------------------------*/
/* CRC Configuration                                                        */
/*--------------------------------------------------------------------------*/

#define NUCODEGEN_CRC_MODE		<!id:CRCModeRadio;
								type:radio;
								label:Select CRC operation polynomial mode;
								data:CRC_CCITT;
								default:CRC_CCITT;
								enum:[CRC_CCITT, CRC_8, CRC_16, CRC_32];
								optionLabels:[CRC-CCITT, CRC-8, CRC-16, CRC-32];
								dependencies:none;
								dependenciesOption:none;!>

#define NUCODEGEN_CRC_ATTRIBUTE	(<!id:CRCDataAttributeCheckbox;
								type:checkbox;
								label:Select CRC data attribute;
								data:0;
								default:0;
								sort:false;
								enum:[CRC_CHECKSUM_COM, CRC_CHECKSUM_RVS, CRC_WDATA_COM, CRC_WDATA_RVS];
								optionLabels:[Checksum 1's complement, Checksum bit order reverse, Data 1's complement, Data bit order reverse (per byte)];
								dependencies:none;
								dependenciesOption:none;!>)

#define CRC_SEED				<!id:CRCSEEDHexText;
								type:hextext;
								label:CRC SEED value;
								data:0x33;
								default:0x13579BDF;
								helper:Input text in the hexadecimal format;
								minimum:0x0;
								maximum:0xFFFFFFFF;
								dependencies:none;
								dependenciesOption:none;!>

#define NUCODEGEN_CRC_DATALEN	<!id:CRCDataLenRadio;
								type:radio;
								label:Select CRC data length;
								data:CRC_WDATA_8;
								default:CRC_CPU_WDATA_8;
								enum:[CRC_WDATA_8, CRC_WDATA_16, CRC_WDATA_32];
								optionLabels:[8-bit, 16-bit, 32-bit];
								dependencies:none;
								dependenciesOption:none;!>
