// Path: se/sics/mspsim/core/EmulationLogger.java
// public enum WarningType {
//     EMULATION_ERROR, EXECUTION,
//     MISALIGNED_READ, MISALIGNED_WRITE,
//     ADDRESS_OUT_OF_BOUNDS_READ, ADDRESS_OUT_OF_BOUNDS_WRITE,
//     ILLEGAL_IO_WRITE, VOID_IO_READ, VOID_IO_WRITE
// };


import se.sics.mspsim.core.EmulationLogger.WarningType;
import java.util.Arrays;
			} else {
				adc12ctl1 = value & 0xfffe;
				startMem = (value >> 12) & 0xf;
				shSource = (value >> 10) & 0x3;
				adcDiv = ((value >> 5) & 0x7) + 1;
				adcSSel = (value >> 3) & 0x03;
			}
			conSeq = (value >> 1) & 0x03;
			if (DEBUG)
				log("Set startMem: " + startMem + " SHSource: " + shSource
						+ " ConSeq-mode:" + conSeq + " Div: " + adcDiv + " ADCSSEL: "
						+ adcSSel);
			break;

		case ADC12CTL2: /* Low Power Specs */
			if (enableConversion) {
				/*
				 * Clock pre divider can't be modified when conversion is already
				 * enabled
				 */
				value &= 0xfeff;
				value |= (adc12ctl2 & 0x100);
			}
			clockPredivider = ((value & 0x100) > 0) ? 4 : 1;
			/* bit resolution 8, 10, 12 */
			int tmp = (value & 0x30) >> 4;
			tmp = (tmp <= 2) ? tmp * 2 : 4;
			bitsResolution = tmp + 8;
			formatSigned = ((value & 0x08) > 0);
			if (formatSigned) {
// Path: se/sics/mspsim/core/EmulationLogger.java
// public enum WarningType {
//     EMULATION_ERROR, EXECUTION,
//     MISALIGNED_READ, MISALIGNED_WRITE,
//     ADDRESS_OUT_OF_BOUNDS_READ, ADDRESS_OUT_OF_BOUNDS_WRITE,
//     ILLEGAL_IO_WRITE, VOID_IO_READ, VOID_IO_WRITE
// };


// Path: se/sics/mspsim/core/ADC12Plus.java
import se.sics.mspsim.core.EmulationLogger.WarningType;
import java.util.Arrays;

			} else {
				adc12ctl1 = value & 0xfffe;
				startMem = (value >> 12) & 0xf;
				shSource = (value >> 10) & 0x3;
				adcDiv = ((value >> 5) & 0x7) + 1;
				adcSSel = (value >> 3) & 0x03;
			}
			conSeq = (value >> 1) & 0x03;
			if (DEBUG)
				log("Set startMem: " + startMem + " SHSource: " + shSource
						+ " ConSeq-mode:" + conSeq + " Div: " + adcDiv + " ADCSSEL: "
						+ adcSSel);
			break;

		case ADC12CTL2: /* Low Power Specs */
			if (enableConversion) {
				/*
				 * Clock pre divider can't be modified when conversion is already
				 * enabled
				 */
				value &= 0xfeff;
				value |= (adc12ctl2 & 0x100);
			}
			clockPredivider = ((value & 0x100) > 0) ? 4 : 1;
			/* bit resolution 8, 10, 12 */
			int tmp = (value & 0x30) >> 4;
			tmp = (tmp <= 2) ? tmp * 2 : 4;
			bitsResolution = tmp + 8;
			formatSigned = ((value & 0x08) > 0);
			if (formatSigned) {
				logw(WarningType.EMULATION_ERROR, "signed format not implemented");