Housekeeping ID definitions
enum Jtagice3HousekeepingCommands {
CMD_HOUSEKEEPING_QUERY = 0x00,
CMD_HOUSEKEEPING_SET = 0x01,
CMD_HOUSEKEEPING_GET = 0x02,
CMD_HOUSEKEEPING_START_SESSION = 0x10,
CMD_HOUSEKEEPING_END_SESSION = 0x11,
CMD_HOUSEKEEPING_JTAG_DETECT = 0x30,
CMD_HOUSEKEEPING_CAL_OSC = 0x31,
CMD_HOUSEKEEPING_FW_UPGRADE = 0x50,
};
enum Jtagice3HousekeepingResponses {
RSP_HOUSEKEEPING_OK = 0x80,
RSP_HOUSEKEEPING_LIST = 0x81,
RSP_HOUSEKEEPING_DATA = 0x84,
RSP_HOUSEKEEPING_FAILED = 0xA0,
RSP_HOUSEKEEPING_FAILED_WITH_DATA = 0xA1
};
enum Jtagice3HousekeepingEvents {
EVT_HOUSEKEEPING_POWER = 0x10,
EVT_HOUSEKEEPING_SLEEP = 0x11,
EVT_HOUSEKEEPING_EXT_RESET = 0x12,
};
enum Jtagice3HousekeepingFailureCodes {
HOUSEKEEPING_FAILED_OK = 0x00,
HOUSEKEEPING_FAILED_NOT_SUPPORTED = 0x10,
HOUSEKEEPING_FAILED_INVALID_KEY = 0x11,
HOUSEKEEPING_FAILED_INVALID_PARAMETER = 0x12,
HOUSEKEEPING_FAILED_INVALID_PARAMETER_VALUE = 0x13,
HOUSEKEEPING_FAILED_JTAG_DETECT_NO_DEVICES = 0x30,
HOUSEKEEPING_FAILED_JTAG_DETECT_TOO_MANY_DEVICES = 0x31,
HOUSEKEEPING_FAILED_JTAG_DETECT_JTAGM_INIT_ERROR = 0x32,
HOUSEKEEPING_FAILED_JTAG_DETECT_JTAGM_ERROR = 0x33,
HOUSEKEEPING_FAILED_NO_TARGET_POWER = 0x38,
HOUSEKEEPING_FAILED_OSCCAL_INVALID_MODE = 0x40,
HOUSEKEEPING_FAILED_OSCCAL_INVALID_PHYSICAL = 0x41,
HOUSEKEEPING_FAILED_OSCCAL_FW_ERROR = 0x42,
HOUSEKEEPING_FAILED_OSCCAL_FAILED = 0x43,
};
enum Jtagice3SetGetFailureCodes {
SETGET_FAILURE_OK = 0x00,
SETGET_FAILURE_NOT_IMPLEMENTED = 0x10,
SETGET_FAILURE_NOT_SUPPORTED = 0x11,
SETGET_FAILURE_INVALID_CLOCK_SPEED = 0x20,
SETGET_FAILURE_ILLEGAL_STATE = 0x21,
SETGET_FAILURE_JTAGM_INIT_ERROR = 0x22,
SETGET_FAILURE_INVALID_VALUE = 0x23
};
enum Jtagice3HousekeepingQueryContexts {
HK_QUERY_COMMANDS = 0x00
};
enum Jtagice3HousekeepingSetGetContexts {
HK_CONTEXT_CONFIG = 0x00,
HK_CONTEXT_ANALOG = 0x01,
};
enum Jtagice3HousekeepingConfigContextParameters {
HOUSEKEEPING_CONFIG_HWREV = 0x00,
HOUSEKEEPING_CONFIG_FWREV_MAJ = 0x01,
HOUSEKEEPING_CONFIG_FWREV_MIN = 0x02,
HOUSEKEEPING_CONFIG_BUILD = 0x03,
};
enum Jtagice3HousekeepingAnalogContextParameters {
HOUSEKEEPING_ANALOG_VTREF = 0x00
};
enum Jtagice3HousekeepingPowerEvents {
HOUSEKEEPING_POWER_OFF = 0x00,
HOUSEKEEPING_POWER_ON = 0x01
};
enum Jtagice3HousekeepingSleepEvents {
HOUSEKEEPING_AWAKE = 0x00,
HOUSEKEEPING_SLEEP = 0x01
};
enum Jtagice3HousekeepingResetEvents {
HOUSEKEEPING_RESET_RELEASED = 0x00,
HOUSEKEEPING_RESET_APPLIED = 0x01
};