FreeEMS  0.2.0-SNAPSHOT-282-g9efc524
Data Structures | Macros
counterTypes.h File Reference

Counter struct typedefs. More...

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

Go to the source code of this file.

Data Structures

struct  Flaggable
 These should all stay at zero, thus they are incremented through a mechanism that also sets a flag in a special variable. More...
struct  Flaggable2
 These should all stay at zero, thus they are incremented through a mechanism that also sets a flag in a special variable. More...
struct  Clock
 Use this block to manage the various clocks kept. More...
struct  Counter
 Use this block to manage the execution count of various functions loops and ISRs etc. TODO break this up into smaller chunks. More...

Macros

#define FLAG_AND_INC_FLAGGABLE(OFFSET)
#define FLAG_CALLS_TO_UISRS_OFFSET   0
#define FLAG_LOW_VOLTAGE_CONDITION_OFFSET   1
#define FLAG_DECODER_SYNC_LOSSES_OFFSET   2
#define FLAG_DECODER_SYNCS_NOT_CONFIRMED_OFFSET   3
#define FLAG_DECODER_SYNC_STATE_CLEARS_OFFSET   4
#define FLAG_SERIAL_NOISE_ERRORS_OFFSET   5
#define FLAG_SERIAL_FRAMING_ERRORS_OFFSET   6
#define FLAG_SERIAL_PARITY_ERRORS_OFFSET   7
#define FLAG_SERIAL_OVERRUN_ERRORS_OFFSET   8
#define FLAG_SERIAL_ESCAPE_PAIR_MISMATCHES_OFFSET   9
#define FLAG_SERIAL_STARTS_INSIDE_A_PACKET_OFFSET   10
#define FLAG_SERIAL_PACKETS_OVER_LENGTH_OFFSET   11
#define FLAG_SERIAL_CHECKSUM_MISMATCHES_OFFSET   12
#define FLAG_SERIAL_PACKETS_UNDER_LENGTH_OFFSET   13
#define FLAG_PHASE_LOCKED_LOOP_LOCK_LOST_OFFSET   14
#define FLAG_SELF_CLOCK_MODE_ENTERED_OFFSET   15
#define FLAG_AND_INC_FLAGGABLE2(OFFSET)
#define FLAG_SPURIOUS_INTERRUPTS_OFFSET   0
#define FLAG_UNIMPLEMENTED_OPCODES_OFFSET   1
#define FLAG_RAM_ACCESS_VIOLATIONS_OFFSET   2
#define FLAG_XGATE_SOFTWARE_ERRORS_OFFSET   3
#define FLAG_SPARE_4_OFFSET   4
#define FLAG_SPARE_5_OFFSET   5
#define FLAG_SPARE_6_OFFSET   6
#define FLAG_SPARE_7_OFFSET   7
#define FLAG_SPARE_8_OFFSET   8
#define FLAG_SPARE_9_OFFSET   9
#define FLAG_SPARE_10_OFFSET   10
#define FLAG_SPARE_11_OFFSET   11
#define FLAG_SPARE_12_OFFSET   12
#define FLAG_SPARE_13_OFFSET   13
#define FLAG_SPARE_14_OFFSET   14
#define FLAG_SPARE_15_OFFSET   15

Detailed Description

Counter struct typedefs.

This file contains all of the counter and statistic struct typedefs.

Definition in file counterTypes.h.

Macro Definition Documentation

#define FLAG_AND_INC_FLAGGABLE (   OFFSET)
Value:
(*(((unsigned char*)&Flaggables) + OFFSET))++; \
KeyUserDebugs.flaggableFlags |= (1 << OFFSET);

Definition at line 46 of file counterTypes.h.

Referenced by decodePacketAndRespond(), IRQISR(), LowVoltageISR(), PLLLockISR(), PortHISR(), PortJISR(), PortPISR(), PrimaryRPMISR(), resetToNonRunningState(), SCI0ISR(), SecondaryRPMISR(), SelfClockISR(), UISR(), and XIRQISR().

#define FLAG_CALLS_TO_UISRS_OFFSET   0
#define FLAG_LOW_VOLTAGE_CONDITION_OFFSET   1

Definition at line 56 of file counterTypes.h.

Referenced by LowVoltageISR().

#define FLAG_DECODER_SYNC_LOSSES_OFFSET   2

Definition at line 62 of file counterTypes.h.

Referenced by resetToNonRunningState().

#define FLAG_DECODER_SYNCS_NOT_CONFIRMED_OFFSET   3

Definition at line 63 of file counterTypes.h.

Referenced by resetToNonRunningState().

#define FLAG_DECODER_SYNC_STATE_CLEARS_OFFSET   4

Definition at line 64 of file counterTypes.h.

Referenced by resetToNonRunningState().

#define FLAG_SERIAL_NOISE_ERRORS_OFFSET   5

Definition at line 70 of file counterTypes.h.

Referenced by SCI0ISR().

#define FLAG_SERIAL_FRAMING_ERRORS_OFFSET   6

Definition at line 71 of file counterTypes.h.

Referenced by SCI0ISR().

#define FLAG_SERIAL_PARITY_ERRORS_OFFSET   7

Definition at line 72 of file counterTypes.h.

Referenced by SCI0ISR().

#define FLAG_SERIAL_OVERRUN_ERRORS_OFFSET   8

Definition at line 76 of file counterTypes.h.

Referenced by SCI0ISR().

#define FLAG_SERIAL_ESCAPE_PAIR_MISMATCHES_OFFSET   9

Definition at line 84 of file counterTypes.h.

Referenced by SCI0ISR().

#define FLAG_SERIAL_STARTS_INSIDE_A_PACKET_OFFSET   10

Definition at line 85 of file counterTypes.h.

Referenced by SCI0ISR().

#define FLAG_SERIAL_PACKETS_OVER_LENGTH_OFFSET   11

Definition at line 86 of file counterTypes.h.

Referenced by SCI0ISR().

#define FLAG_SERIAL_CHECKSUM_MISMATCHES_OFFSET   12

Definition at line 87 of file counterTypes.h.

Referenced by decodePacketAndRespond().

#define FLAG_SERIAL_PACKETS_UNDER_LENGTH_OFFSET   13

Definition at line 88 of file counterTypes.h.

Referenced by decodePacketAndRespond().

#define FLAG_PHASE_LOCKED_LOOP_LOCK_LOST_OFFSET   14

Definition at line 92 of file counterTypes.h.

Referenced by PLLLockISR().

#define FLAG_SELF_CLOCK_MODE_ENTERED_OFFSET   15

Definition at line 93 of file counterTypes.h.

Referenced by SelfClockISR().

#define FLAG_AND_INC_FLAGGABLE2 (   OFFSET)
Value:
(*(((unsigned char*)&Flaggables2) + OFFSET))++; \
KeyUserDebugs.flaggableFlags2 |= (1 << OFFSET);

Definition at line 98 of file counterTypes.h.

Referenced by RAMViolationISR(), SpuriousISR(), UnimplOpcodeISR(), and XGATEErrorISR().

#define FLAG_SPURIOUS_INTERRUPTS_OFFSET   0

Definition at line 109 of file counterTypes.h.

Referenced by SpuriousISR().

#define FLAG_UNIMPLEMENTED_OPCODES_OFFSET   1

Definition at line 110 of file counterTypes.h.

Referenced by UnimplOpcodeISR().

#define FLAG_RAM_ACCESS_VIOLATIONS_OFFSET   2

Definition at line 111 of file counterTypes.h.

Referenced by RAMViolationISR().

#define FLAG_XGATE_SOFTWARE_ERRORS_OFFSET   3

Definition at line 112 of file counterTypes.h.

Referenced by XGATEErrorISR().

#define FLAG_SPARE_4_OFFSET   4

Definition at line 126 of file counterTypes.h.

#define FLAG_SPARE_5_OFFSET   5

Definition at line 127 of file counterTypes.h.

#define FLAG_SPARE_6_OFFSET   6

Definition at line 128 of file counterTypes.h.

#define FLAG_SPARE_7_OFFSET   7

Definition at line 129 of file counterTypes.h.

#define FLAG_SPARE_8_OFFSET   8

Definition at line 130 of file counterTypes.h.

#define FLAG_SPARE_9_OFFSET   9

Definition at line 131 of file counterTypes.h.

#define FLAG_SPARE_10_OFFSET   10

Definition at line 132 of file counterTypes.h.

#define FLAG_SPARE_11_OFFSET   11

Definition at line 133 of file counterTypes.h.

#define FLAG_SPARE_12_OFFSET   12

Definition at line 134 of file counterTypes.h.

#define FLAG_SPARE_13_OFFSET   13

Definition at line 135 of file counterTypes.h.

#define FLAG_SPARE_14_OFFSET   14

Definition at line 136 of file counterTypes.h.

#define FLAG_SPARE_15_OFFSET   15

Definition at line 137 of file counterTypes.h.