FreeEMS  0.2.0-SNAPSHOT-285-g028e24c
Macros
errorDefines.h File Reference

Error ID hash defines. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define NO_PROBLEMO   0x0666
#define IAT_NOT_CONFIGURED_CODE   0x1000
#define CHT_NOT_CONFIGURED_CODE   0x1001
#define BRV_NOT_CONFIGURED_CODE   0x1002
#define LOAD_NOT_CONFIGURED_CODE   0x1003
#define VE_TABLE_MAIN_LOAD_LENGTH_TOO_LONG   0x2000
#define VE_TABLE_MAIN_RPM_LENGTH_TOO_LONG   0x2001
#define VE_TABLE_MAIN_MAIN_LENGTH_TOO_LONG   0x2002
#define BRV_MAX_TOO_LARGE   0x2003
#define sizeNotMultipleOfSectorSize   0x3000
#define sizeOfBlockToBurnIsZero   0x3001
#define smallBlockCrossesSectorBoundary   0x3002
#define addressNotSectorAligned   0x3003
#define addressNotWordAligned   0x3004
#define addressNotFlashRegion   0x3005
#define flashEraseFailed   0x3006
#define flashAccessError   0x3007
#define flashProtectionError   0x3008
#define MEMORY_WRITE_ERROR   0x3009
#define unimplementedFunction   0x4000
#define packetChecksumMismatch   0x4001
#define packetTooShortForSpecifiedFields   0x4002
#define doesNotMakeSenseToRetrievePartially   0x4003
#define payloadLengthTypeMismatch   0x4004
#define payloadLengthHeaderMismatch   0x4005
#define invalidPayloadID   0x4006
#define unrecognisedPayloadID   0x4007
#define invalidMemoryActionForID   0x4008
#define invalidIDForMainTableAction   0x4009
#define invalidIDForTwoDTableAction   0x400A
#define noSuchAsyncDatalogType   0x400B
#define datalogLengthExceedsMax   0x400C
#define locationIDNotFound   0x400D
#define requestedRAMPageInvalid   0x400E
#define requestedFlashPageInvalid   0x400F
#define requestedLengthTooLarge   0x4010
#define requestedAddressDisallowed   0x4011
#define invalidSizeOffsetCombination   0x4012
#define uncheckedTableManipulationNotAllowed   0x4013
#define payloadNotEqualToSpecifiedValue   0x4014
#define noSuchLocationIDListType   0x4015
#define payloadShorterThanRequiredForTest   0x4016
#define noSuchUnitTestID   0x4017
#define attemptToWriteToReadOnlyBlock   0x4018
#define invalidAxisOrder   1 /* prevent parsing */
#define invalidAxisIndex   2 /* prevent parsing */
#define errorBaseMainTableRPM   0x6000
#define invalidMainTableRPMOrder   0x6001
#define invalidMainTableRPMIndex   0x6002
#define invalidMainTableRPMLength   0x6003
#define errorBaseMainTableLoad   0x6004
#define invalidMainTableLoadOrder   0x6005
#define invalidMainTableLoadIndex   0x6006
#define invalidMainTableLoadLength   0x6007
#define invalidMainTableMainLength   0x6008
#define errorBaseTwoDTableAxis   0x6010
#define invalidTwoDTableAxisOrder   0x6011
#define invalidTwoDTableIndex   0x6012
#define thisIsNotTheBenchTestDecoder   0x7777
#define tooShortOfAPulseWidthToTest   0x7778
#define unimplementedTestMode   0x7779
#define invalidEventsPerCycle   0x777A
#define invalidNumberOfCycles   0x777B
#define tooShortOfAnEventPeriod   0x777C
#define noChannelsConfiguredToTest   0x777D
#define benchTestAlreadyRunning   0x777E
#define packetSizeWrongForTestMode   0x777F
#define bumpingByZeroMakesNoSense   0x7780
#define benchTestNotRunningToStop   0x7781
#define benchTestNotRunningToBump   0x7782
#define tooManyEventsPerCycleMissingTth   0x7783

Detailed Description

Error ID hash defines.

This file contains all error codes for propagation up and out to a PC. When adding new codes, ensure that they are unique and also that you group them appropriately in ranges for easy visual identification.

Definition in file errorDefines.h.

Macro Definition Documentation

#define NO_PROBLEMO   0x0666
Todo:
TODO Introduce some structure to the numbering such that they can be interpreted somewhat without a chart

Definition at line 49 of file errorDefines.h.

#define IAT_NOT_CONFIGURED_CODE   0x1000

Definition at line 52 of file errorDefines.h.

#define CHT_NOT_CONFIGURED_CODE   0x1001

Definition at line 53 of file errorDefines.h.

#define BRV_NOT_CONFIGURED_CODE   0x1002

Definition at line 54 of file errorDefines.h.

#define LOAD_NOT_CONFIGURED_CODE   0x1003

Definition at line 55 of file errorDefines.h.

#define VE_TABLE_MAIN_LOAD_LENGTH_TOO_LONG   0x2000

Definition at line 59 of file errorDefines.h.

#define VE_TABLE_MAIN_RPM_LENGTH_TOO_LONG   0x2001

Definition at line 60 of file errorDefines.h.

#define VE_TABLE_MAIN_MAIN_LENGTH_TOO_LONG   0x2002

Definition at line 61 of file errorDefines.h.

#define BRV_MAX_TOO_LARGE   0x2003

Definition at line 62 of file errorDefines.h.

#define sizeNotMultipleOfSectorSize   0x3000

Definition at line 66 of file errorDefines.h.

Referenced by writeBlock().

#define sizeOfBlockToBurnIsZero   0x3001

Definition at line 67 of file errorDefines.h.

Referenced by writeBlock().

#define smallBlockCrossesSectorBoundary   0x3002

Definition at line 68 of file errorDefines.h.

Referenced by writeBlock().

#define addressNotSectorAligned   0x3003

Definition at line 69 of file errorDefines.h.

Referenced by eraseSector(), and writeSector().

#define addressNotWordAligned   0x3004

Definition at line 70 of file errorDefines.h.

Referenced by writeWord().

#define addressNotFlashRegion   0x3005

Definition at line 71 of file errorDefines.h.

Referenced by writeSector().

#define flashEraseFailed   0x3006

Definition at line 72 of file errorDefines.h.

#define flashAccessError   0x3007

Definition at line 73 of file errorDefines.h.

#define flashProtectionError   0x3008

Definition at line 74 of file errorDefines.h.

#define MEMORY_WRITE_ERROR   0x3009

Definition at line 78 of file errorDefines.h.

Referenced by decodePacketAndRespond().

#define unimplementedFunction   0x4000

Definition at line 81 of file errorDefines.h.

#define packetChecksumMismatch   0x4001

Definition at line 82 of file errorDefines.h.

#define packetTooShortForSpecifiedFields   0x4002

Definition at line 83 of file errorDefines.h.

Referenced by decodePacketAndRespond().

#define doesNotMakeSenseToRetrievePartially   0x4003

Definition at line 84 of file errorDefines.h.

Referenced by decodePacketAndRespond().

#define payloadLengthTypeMismatch   0x4004

Definition at line 85 of file errorDefines.h.

Referenced by decodePacketAndRespond().

#define payloadLengthHeaderMismatch   0x4005

Definition at line 86 of file errorDefines.h.

Referenced by decodePacketAndRespond().

#define invalidPayloadID   0x4006

Definition at line 87 of file errorDefines.h.

Referenced by decodePacketAndRespond().

#define unrecognisedPayloadID   0x4007

Definition at line 88 of file errorDefines.h.

Referenced by decodePacketAndRespond().

#define invalidMemoryActionForID   0x4008

Definition at line 89 of file errorDefines.h.

Referenced by decodePacketAndRespond().

#define invalidIDForMainTableAction   0x4009

Definition at line 90 of file errorDefines.h.

#define invalidIDForTwoDTableAction   0x400A

Definition at line 91 of file errorDefines.h.

#define noSuchAsyncDatalogType   0x400B

Definition at line 92 of file errorDefines.h.

Referenced by decodePacketAndRespond().

#define datalogLengthExceedsMax   0x400C

Definition at line 93 of file errorDefines.h.

#define locationIDNotFound   0x400D

Definition at line 94 of file errorDefines.h.

Referenced by lookupBlockDetails().

#define requestedRAMPageInvalid   0x400E

Definition at line 95 of file errorDefines.h.

Referenced by decodePacketAndRespond().

#define requestedFlashPageInvalid   0x400F

Definition at line 96 of file errorDefines.h.

Referenced by decodePacketAndRespond().

#define requestedLengthTooLarge   0x4010

Definition at line 97 of file errorDefines.h.

Referenced by decodePacketAndRespond().

#define requestedAddressDisallowed   0x4011

Definition at line 98 of file errorDefines.h.

Referenced by decodePacketAndRespond().

#define invalidSizeOffsetCombination   0x4012

Definition at line 99 of file errorDefines.h.

Referenced by decodePacketAndRespond().

#define uncheckedTableManipulationNotAllowed   0x4013

Definition at line 100 of file errorDefines.h.

Referenced by decodePacketAndRespond().

#define payloadNotEqualToSpecifiedValue   0x4014

Definition at line 101 of file errorDefines.h.

Referenced by decodePacketAndRespond().

#define noSuchLocationIDListType   0x4015

Definition at line 102 of file errorDefines.h.

#define payloadShorterThanRequiredForTest   0x4016

Definition at line 103 of file errorDefines.h.

Referenced by decodePacketAndRespond().

#define noSuchUnitTestID   0x4017

Definition at line 104 of file errorDefines.h.

Referenced by decodePacketAndRespond().

#define attemptToWriteToReadOnlyBlock   0x4018

Definition at line 105 of file errorDefines.h.

Referenced by decodePacketAndRespond().

#define invalidAxisOrder   1 /* prevent parsing */

Definition at line 107 of file errorDefines.h.

#define invalidAxisIndex   2 /* prevent parsing */

Definition at line 108 of file errorDefines.h.

#define errorBaseMainTableRPM   0x6000

Definition at line 110 of file errorDefines.h.

#define invalidMainTableRPMOrder   0x6001

Definition at line 111 of file errorDefines.h.

Referenced by validateMainTable().

#define invalidMainTableRPMIndex   0x6002

Definition at line 112 of file errorDefines.h.

#define invalidMainTableRPMLength   0x6003

Definition at line 113 of file errorDefines.h.

Referenced by validateMainTable().

#define errorBaseMainTableLoad   0x6004

Definition at line 114 of file errorDefines.h.

#define invalidMainTableLoadOrder   0x6005

Definition at line 115 of file errorDefines.h.

Referenced by validateMainTable().

#define invalidMainTableLoadIndex   0x6006

Definition at line 116 of file errorDefines.h.

#define invalidMainTableLoadLength   0x6007

Definition at line 117 of file errorDefines.h.

Referenced by validateMainTable().

#define invalidMainTableMainLength   0x6008

Definition at line 118 of file errorDefines.h.

Referenced by validateMainTable().

#define errorBaseTwoDTableAxis   0x6010

Definition at line 120 of file errorDefines.h.

#define invalidTwoDTableAxisOrder   0x6011

Definition at line 121 of file errorDefines.h.

Referenced by validateTwoDTable().

#define invalidTwoDTableIndex   0x6012

Definition at line 122 of file errorDefines.h.

#define thisIsNotTheBenchTestDecoder   0x7777

Definition at line 124 of file errorDefines.h.

Referenced by decodePacketAndRespond().

#define tooShortOfAPulseWidthToTest   0x7778

Definition at line 125 of file errorDefines.h.

Referenced by decodePacketAndRespond().

#define unimplementedTestMode   0x7779

Definition at line 126 of file errorDefines.h.

Referenced by decodePacketAndRespond().

#define invalidEventsPerCycle   0x777A

Definition at line 127 of file errorDefines.h.

Referenced by decodePacketAndRespond().

#define invalidNumberOfCycles   0x777B

Definition at line 128 of file errorDefines.h.

Referenced by decodePacketAndRespond().

#define tooShortOfAnEventPeriod   0x777C

Definition at line 129 of file errorDefines.h.

Referenced by decodePacketAndRespond().

#define noChannelsConfiguredToTest   0x777D

Definition at line 130 of file errorDefines.h.

Referenced by decodePacketAndRespond().

#define benchTestAlreadyRunning   0x777E

Definition at line 131 of file errorDefines.h.

Referenced by decodePacketAndRespond().

#define packetSizeWrongForTestMode   0x777F

Definition at line 132 of file errorDefines.h.

Referenced by decodePacketAndRespond().

#define bumpingByZeroMakesNoSense   0x7780

Definition at line 133 of file errorDefines.h.

Referenced by decodePacketAndRespond().

#define benchTestNotRunningToStop   0x7781

Definition at line 134 of file errorDefines.h.

Referenced by decodePacketAndRespond().

#define benchTestNotRunningToBump   0x7782

Definition at line 135 of file errorDefines.h.

Referenced by decodePacketAndRespond().

#define tooManyEventsPerCycleMissingTth   0x7783

Definition at line 136 of file errorDefines.h.

Referenced by decodePacketAndRespond().