Defines

mTouchCVD_macroLibrary_PIC16F1.h File Reference

Defines the macros used to generate the acquisition method. More...

Go to the source code of this file.

Defines

#define MASKBANK(var, bank)   ((var)^((bank)*80h))
 Masks the bank out of the variable address for ASM code usage.
#define NOBANK(var)   (var & 0x7F)
#define CVD_ASM_JUMP_LABEL_1()   case 1: asm("ljmp sensor_1");
#define CVD_ASM_JUMP_LABEL_2()   case 2: asm("ljmp sensor_2");
#define CVD_ASM_JUMP_LABEL_3()   case 3: asm("ljmp sensor_3");
#define CVD_ASM_JUMP_LABEL_4()   case 4: asm("ljmp sensor_4");
#define CVD_ASM_JUMP_LABEL_5()   case 5: asm("ljmp sensor_5");
#define CVD_ASM_JUMP_LABEL_6()   case 6: asm("ljmp sensor_6");
#define CVD_ASM_JUMP_LABEL_7()   case 7: asm("ljmp sensor_7");
#define CVD_ASM_JUMP_LABEL_8()   case 8: asm("ljmp sensor_8");
#define CVD_ASM_JUMP_LABEL_9()   case 9: asm("ljmp sensor_9");
#define CVD_ASM_JUMP_LABEL_10()   case 10: asm("ljmp sensor_10");
#define CVD_ASM_JUMP_LABEL_11()   case 11: asm("ljmp sensor_11");
#define CVD_ASM_JUMP_LABEL_12()   case 12: asm("ljmp sensor_12");
#define CVD_ASM_JUMP_LABEL_13()   case 13: asm("ljmp sensor_13");
#define CVD_ASM_JUMP_LABEL_14()   case 14: asm("ljmp sensor_14");
#define CVD_ASM_JUMP_LABEL_15()   case 15: asm("ljmp sensor_15");
#define CVD_ASM_JUMP_LABEL_16()   case 16: asm("ljmp sensor_16");
#define CVD_ASM_JUMP_LABEL_17()   case 17: asm("ljmp sensor_17");
#define CVD_ASM_JUMP_LABEL_18()   case 18: asm("ljmp sensor_18");
#define CVD_ASM_JUMP_LABEL_19()   case 19: asm("ljmp sensor_19");
#define CVD_ASM_JUMP_LABEL_20()   case 20: asm("ljmp sensor_20");
#define CVD_ASM_JUMP_LABEL_21()   case 21: asm("ljmp sensor_21");
#define CVD_ASM_JUMP_LABEL_22()   case 22: asm("ljmp sensor_22");
#define CVD_ASM_JUMP_LABEL_23()   case 23: asm("ljmp sensor_23");
#define CVD_ASM_JUMP_LABEL_24()   case 24: asm("ljmp sensor_24");
#define CVD_ASM_JUMP_LABEL_25()   case 25: asm("ljmp sensor_25");
#define CVD_ASM_JUMP_LABEL_26()   case 26: asm("ljmp sensor_26");
#define CVD_ASM_JUMP_LABEL_27()   case 27: asm("ljmp sensor_27");
#define CVD_ASM_JUMP_LABEL_28()   case 28: asm("ljmp sensor_28");
#define CVD_ASM_JUMP_LABEL_29()   case 29: asm("ljmp sensor_29");
#define CVD_STORE_LABEL_0()   STORE_LAST_SENSOR(0);
#define CVD_STORE_LABEL_1()   STORE_SENSOR(1);
#define CVD_STORE_LABEL_2()   STORE_SENSOR(2);
#define CVD_STORE_LABEL_3()   STORE_SENSOR(3);
#define CVD_STORE_LABEL_4()   STORE_SENSOR(4);
#define CVD_STORE_LABEL_5()   STORE_SENSOR(5);
#define CVD_STORE_LABEL_6()   STORE_SENSOR(6);
#define CVD_STORE_LABEL_7()   STORE_SENSOR(7);
#define CVD_STORE_LABEL_8()   STORE_SENSOR(8);
#define CVD_STORE_LABEL_9()   STORE_SENSOR(9);
#define CVD_STORE_LABEL_10()   STORE_SENSOR(10);
#define CVD_STORE_LABEL_11()   STORE_SENSOR(11);
#define CVD_STORE_LABEL_12()   STORE_SENSOR(12);
#define CVD_STORE_LABEL_13()   STORE_SENSOR(13);
#define CVD_STORE_LABEL_14()   STORE_SENSOR(14);
#define CVD_STORE_LABEL_15()   STORE_SENSOR(15);
#define CVD_STORE_LABEL_16()   STORE_SENSOR(16);
#define CVD_STORE_LABEL_17()   STORE_SENSOR(17);
#define CVD_STORE_LABEL_18()   STORE_SENSOR(18);
#define CVD_STORE_LABEL_19()   STORE_SENSOR(19);
#define CVD_STORE_LABEL_20()   STORE_SENSOR(20);
#define CVD_STORE_LABEL_21()   STORE_SENSOR(21);
#define CVD_STORE_LABEL_22()   STORE_SENSOR(22);
#define CVD_STORE_LABEL_23()   STORE_SENSOR(23);
#define CVD_STORE_LABEL_24()   STORE_SENSOR(24);
#define CVD_STORE_LABEL_25()   STORE_SENSOR(25);
#define CVD_STORE_LABEL_26()   STORE_SENSOR(26);
#define CVD_STORE_LABEL_27()   STORE_SENSOR(27);
#define CVD_STORE_LABEL_28()   STORE_SENSOR(28);
#define CVD_STORE_LABEL_29()   STORE_SENSOR(29);
#define CVD_ASM_JUMP_LABEL_29()
#define CVD_STORE_LABEL_29()
#define CVD_ASM_JUMP_LABEL_28()
#define CVD_STORE_LABEL_28()
#define CVD_ASM_JUMP_LABEL_27()
#define CVD_STORE_LABEL_27()
#define CVD_ASM_JUMP_LABEL_26()
#define CVD_STORE_LABEL_26()
#define CVD_ASM_JUMP_LABEL_25()
#define CVD_STORE_LABEL_25()
#define CVD_ASM_JUMP_LABEL_24()
#define CVD_STORE_LABEL_24()
#define CVD_ASM_JUMP_LABEL_23()
#define CVD_STORE_LABEL_23()
#define CVD_ASM_JUMP_LABEL_22()
#define CVD_STORE_LABEL_22()
#define CVD_ASM_JUMP_LABEL_21()
#define CVD_STORE_LABEL_21()
#define CVD_ASM_JUMP_LABEL_20()
#define CVD_STORE_LABEL_20()
#define CVD_ASM_JUMP_LABEL_19()
#define CVD_STORE_LABEL_19()
#define CVD_ASM_JUMP_LABEL_18()
#define CVD_STORE_LABEL_18()
#define CVD_ASM_JUMP_LABEL_17()
#define CVD_STORE_LABEL_17()
#define CVD_ASM_JUMP_LABEL_16()
#define CVD_STORE_LABEL_16()
#define CVD_ASM_JUMP_LABEL_15()
#define CVD_STORE_LABEL_15()
#define CVD_ASM_JUMP_LABEL_14()
#define CVD_STORE_LABEL_14()
#define CVD_ASM_JUMP_LABEL_13()
#define CVD_STORE_LABEL_13()
#define CVD_ASM_JUMP_LABEL_12()
#define CVD_STORE_LABEL_12()
#define CVD_ASM_JUMP_LABEL_11()
#define CVD_STORE_LABEL_11()
#define CVD_ASM_JUMP_LABEL_10()
#define CVD_STORE_LABEL_10()
#define CVD_ASM_JUMP_LABEL_9()
#define CVD_STORE_LABEL_9()
#define CVD_ASM_JUMP_LABEL_8()
#define CVD_STORE_LABEL_8()
#define CVD_ASM_JUMP_LABEL_7()
#define CVD_STORE_LABEL_7()
#define CVD_ASM_JUMP_LABEL_6()
#define CVD_STORE_LABEL_6()
#define CVD_ASM_JUMP_LABEL_5()
#define CVD_STORE_LABEL_5()
#define CVD_ASM_JUMP_LABEL_4()
#define CVD_STORE_LABEL_4()
#define CVD_ASM_JUMP_LABEL_3()
#define CVD_STORE_LABEL_3()
#define CVD_ASM_JUMP_LABEL_2()
#define CVD_STORE_LABEL_2()
#define CVD_ASM_JUMP_LABEL_1()
#define CVD_STORE_LABEL_1()
#define GENERATE_JUMP_TABLE()
 Generates a jump table in ASM used by the acquisition ISR. Do not use directly.
#define GENERATE_STORAGE_FUNCTION()
 Generates the storage macro calls for the acquisition ISR. Do not use directly.
Housekeeping Macros

These macros perform basic ISR and timer module functions such as checking that the interrupt flag is set and reloading the TMR0 counter.

#define SAVE_STATE()
 Executes any required actions to save the current main-loop process.
#define RESTORE_STATE()
 Executes any required actions to save the current main-loop process.
#define CHECK_AND_CLEAR_TMR0IF()
 Checks the TMR0IF and determines whether the mTouch ISR is executed.
#define JITTER_START_TIME()
 Calculates a random value and uses it to seed TMR0.
#define WAIT_FOR_GODONE_BIT()   while (GO_nDONE);
 Implements a while loop waiting on the GO/DONE bit to be cleared.
#define STORE_LAST_RESULT()
 Stores the ADC result into the last_result variable.
Timing Critical CVD Scanning Routine Macros

These macros implement the CVD scanning routine and basic acquistion-level filtering techniques. Editting these macros could reduce the noise immunity of the system.

#define READ_SENSOR(indexSensor, indexRef)   READ_SENSOR_EXPANDED(__paste(CVD_SELECT_SENSOR,indexSensor),__paste(CVD_SELECT_SENSOR,indexRef),__paste(CVD_PORT_SENSOR,indexSensor),__paste(CVD_PIN_SENSOR,indexSensor),__paste(CVD_PORT_SENSOR,indexRef),__paste(CVD_PIN_SENSOR,indexRef))
 Perform a differential CVD scan on the sensor.
#define READ_SENSOR_EXPANDED(current_channel, ref_channel, port, pin, ref_port, ref_pin)
 Expanded utility macro called by READ_SENSOR(). Do not use directly.
#define CVD_DECIMATE()
 Generates ASM code to compare the previous sensor's scan result with its decimate-filtered latch register, sensor_data.
#define CVD_SENSOR_SMALLER()
 Generates ASM code to decrement the decimate-filtered sensor_data latch register.
#define CVD_DECIMATE_END()
 Generates ASM code to decrement the decimate-filtered sensor_data latch register.
Polishing/Finishing Macros

These macros perform scaling and final operations before setting the mTouchCVD_dataReady flag and allowing the main loop application to process the new data.

#define STORE_SENSOR_SCALE(index, shift)
 Do not use directly. Expanded utility macro called by STORE_SENSOR(index).
#define STORE_LAST_SENSOR_SCALE(index, shift)
 Do not use directly. Expanded utility macro called by STORE_SENSOR(index).
#define STORE_SINGLE_SENSOR_SCALE(index, shift)
 Do not use directly. Expanded utility macro called by STORE_SENSOR(index) if there is only one sensor in the mTouch application.
#define STORE_SENSOR(index)   STORE_SENSOR_SCALE(index, 4)
 Scales the accumulated result of the CVD acquisition and stores it for main-application access.
#define EXIT_SENSOR(index)
 Increments the given index variable and exits the ISR.
#define EXIT_LAST_SENSOR(index)   EXIT_LAST_SENSOR_MAIN()
 Performs several important functions after all sensors have been scanned.
#define EXIT_LAST_SENSOR_MAIN()
 Do not use directly. Utility macro used by EXIT_LAST_SENSOR() to decrement the oversampling counter.
#define EXIT_LAST_SENSOR_DECINDEX(index)   index = 0;
 Do not use directly. Utility macro used by EXIT_LAST_SENSOR() to reset the index variable.
#define SET_DATA_READY_FLAG()
 Sets the dataReady flag to signal the main application of a new reading.

Detailed Description

Defines the macros used to generate the acquisition method.

Stores all of the macros that are used in the acquisition file to create the mTouch scanning routine. These macros shouldn't be edited in most cases. If you do edit them, it could negatively impact the noise robustness of the final system.

Definition in file mTouchCVD_macroLibrary_PIC16F1.h.


Define Documentation

#define CVD_ASM_JUMP_LABEL_1 (  )    case 1: asm("ljmp sensor_1");

Definition at line 1004 of file mTouchCVD_macroLibrary_PIC16F1.h.

#define CVD_ASM_JUMP_LABEL_1 (  )

Definition at line 1004 of file mTouchCVD_macroLibrary_PIC16F1.h.

#define CVD_ASM_JUMP_LABEL_10 (  )    case 10: asm("ljmp sensor_10");

Definition at line 950 of file mTouchCVD_macroLibrary_PIC16F1.h.

#define CVD_ASM_JUMP_LABEL_10 (  )

Definition at line 950 of file mTouchCVD_macroLibrary_PIC16F1.h.

#define CVD_ASM_JUMP_LABEL_11 (  )    case 11: asm("ljmp sensor_11");

Definition at line 944 of file mTouchCVD_macroLibrary_PIC16F1.h.

#define CVD_ASM_JUMP_LABEL_11 (  )

Definition at line 944 of file mTouchCVD_macroLibrary_PIC16F1.h.

#define CVD_ASM_JUMP_LABEL_12 (  )    case 12: asm("ljmp sensor_12");

Definition at line 938 of file mTouchCVD_macroLibrary_PIC16F1.h.

#define CVD_ASM_JUMP_LABEL_12 (  )

Definition at line 938 of file mTouchCVD_macroLibrary_PIC16F1.h.

#define CVD_ASM_JUMP_LABEL_13 (  )    case 13: asm("ljmp sensor_13");

Definition at line 932 of file mTouchCVD_macroLibrary_PIC16F1.h.

#define CVD_ASM_JUMP_LABEL_13 (  )

Definition at line 932 of file mTouchCVD_macroLibrary_PIC16F1.h.

#define CVD_ASM_JUMP_LABEL_14 (  )    case 14: asm("ljmp sensor_14");

Definition at line 926 of file mTouchCVD_macroLibrary_PIC16F1.h.

#define CVD_ASM_JUMP_LABEL_14 (  )

Definition at line 926 of file mTouchCVD_macroLibrary_PIC16F1.h.

#define CVD_ASM_JUMP_LABEL_15 (  )    case 15: asm("ljmp sensor_15");

Definition at line 920 of file mTouchCVD_macroLibrary_PIC16F1.h.

#define CVD_ASM_JUMP_LABEL_15 (  )

Definition at line 920 of file mTouchCVD_macroLibrary_PIC16F1.h.

#define CVD_ASM_JUMP_LABEL_16 (  )    case 16: asm("ljmp sensor_16");

Definition at line 914 of file mTouchCVD_macroLibrary_PIC16F1.h.

#define CVD_ASM_JUMP_LABEL_16 (  )

Definition at line 914 of file mTouchCVD_macroLibrary_PIC16F1.h.

#define CVD_ASM_JUMP_LABEL_17 (  )    case 17: asm("ljmp sensor_17");

Definition at line 908 of file mTouchCVD_macroLibrary_PIC16F1.h.

#define CVD_ASM_JUMP_LABEL_17 (  )

Definition at line 908 of file mTouchCVD_macroLibrary_PIC16F1.h.

#define CVD_ASM_JUMP_LABEL_18 (  )    case 18: asm("ljmp sensor_18");

Definition at line 902 of file mTouchCVD_macroLibrary_PIC16F1.h.

#define CVD_ASM_JUMP_LABEL_18 (  )

Definition at line 902 of file mTouchCVD_macroLibrary_PIC16F1.h.

#define CVD_ASM_JUMP_LABEL_19 (  )    case 19: asm("ljmp sensor_19");

Definition at line 896 of file mTouchCVD_macroLibrary_PIC16F1.h.

#define CVD_ASM_JUMP_LABEL_19 (  )

Definition at line 896 of file mTouchCVD_macroLibrary_PIC16F1.h.

#define CVD_ASM_JUMP_LABEL_2 (  )

Definition at line 998 of file mTouchCVD_macroLibrary_PIC16F1.h.

#define CVD_ASM_JUMP_LABEL_2 (  )    case 2: asm("ljmp sensor_2");

Definition at line 998 of file mTouchCVD_macroLibrary_PIC16F1.h.

#define CVD_ASM_JUMP_LABEL_20 (  )    case 20: asm("ljmp sensor_20");

Definition at line 890 of file mTouchCVD_macroLibrary_PIC16F1.h.

#define CVD_ASM_JUMP_LABEL_20 (  )

Definition at line 890 of file mTouchCVD_macroLibrary_PIC16F1.h.

#define CVD_ASM_JUMP_LABEL_21 (  )    case 21: asm("ljmp sensor_21");

Definition at line 884 of file mTouchCVD_macroLibrary_PIC16F1.h.

#define CVD_ASM_JUMP_LABEL_21 (  )

Definition at line 884 of file mTouchCVD_macroLibrary_PIC16F1.h.

#define CVD_ASM_JUMP_LABEL_22 (  )    case 22: asm("ljmp sensor_22");

Definition at line 878 of file mTouchCVD_macroLibrary_PIC16F1.h.

#define CVD_ASM_JUMP_LABEL_22 (  )

Definition at line 878 of file mTouchCVD_macroLibrary_PIC16F1.h.

#define CVD_ASM_JUMP_LABEL_23 (  )    case 23: asm("ljmp sensor_23");

Definition at line 872 of file mTouchCVD_macroLibrary_PIC16F1.h.

#define CVD_ASM_JUMP_LABEL_23 (  )

Definition at line 872 of file mTouchCVD_macroLibrary_PIC16F1.h.

#define CVD_ASM_JUMP_LABEL_24 (  )

Definition at line 866 of file mTouchCVD_macroLibrary_PIC16F1.h.

#define CVD_ASM_JUMP_LABEL_24 (  )    case 24: asm("ljmp sensor_24");

Definition at line 866 of file mTouchCVD_macroLibrary_PIC16F1.h.

#define CVD_ASM_JUMP_LABEL_25 (  )

Definition at line 860 of file mTouchCVD_macroLibrary_PIC16F1.h.

#define CVD_ASM_JUMP_LABEL_25 (  )    case 25: asm("ljmp sensor_25");

Definition at line 860 of file mTouchCVD_macroLibrary_PIC16F1.h.

#define CVD_ASM_JUMP_LABEL_26 (  )

Definition at line 854 of file mTouchCVD_macroLibrary_PIC16F1.h.

#define CVD_ASM_JUMP_LABEL_26 (  )    case 26: asm("ljmp sensor_26");

Definition at line 854 of file mTouchCVD_macroLibrary_PIC16F1.h.

#define CVD_ASM_JUMP_LABEL_27 (  )

Definition at line 848 of file mTouchCVD_macroLibrary_PIC16F1.h.

#define CVD_ASM_JUMP_LABEL_27 (  )    case 27: asm("ljmp sensor_27");

Definition at line 848 of file mTouchCVD_macroLibrary_PIC16F1.h.

#define CVD_ASM_JUMP_LABEL_28 (  )

Definition at line 842 of file mTouchCVD_macroLibrary_PIC16F1.h.

#define CVD_ASM_JUMP_LABEL_28 (  )    case 28: asm("ljmp sensor_28");

Definition at line 842 of file mTouchCVD_macroLibrary_PIC16F1.h.

#define CVD_ASM_JUMP_LABEL_29 (  )

Definition at line 836 of file mTouchCVD_macroLibrary_PIC16F1.h.

#define CVD_ASM_JUMP_LABEL_29 (  )    case 29: asm("ljmp sensor_29");

Definition at line 836 of file mTouchCVD_macroLibrary_PIC16F1.h.

#define CVD_ASM_JUMP_LABEL_3 (  )

Definition at line 992 of file mTouchCVD_macroLibrary_PIC16F1.h.

#define CVD_ASM_JUMP_LABEL_3 (  )    case 3: asm("ljmp sensor_3");

Definition at line 992 of file mTouchCVD_macroLibrary_PIC16F1.h.

#define CVD_ASM_JUMP_LABEL_4 (  )

Definition at line 986 of file mTouchCVD_macroLibrary_PIC16F1.h.

#define CVD_ASM_JUMP_LABEL_4 (  )    case 4: asm("ljmp sensor_4");

Definition at line 986 of file mTouchCVD_macroLibrary_PIC16F1.h.

#define CVD_ASM_JUMP_LABEL_5 (  )

Definition at line 980 of file mTouchCVD_macroLibrary_PIC16F1.h.

#define CVD_ASM_JUMP_LABEL_5 (  )    case 5: asm("ljmp sensor_5");

Definition at line 980 of file mTouchCVD_macroLibrary_PIC16F1.h.

#define CVD_ASM_JUMP_LABEL_6 (  )

Definition at line 974 of file mTouchCVD_macroLibrary_PIC16F1.h.

#define CVD_ASM_JUMP_LABEL_6 (  )    case 6: asm("ljmp sensor_6");

Definition at line 974 of file mTouchCVD_macroLibrary_PIC16F1.h.

#define CVD_ASM_JUMP_LABEL_7 (  )    case 7: asm("ljmp sensor_7");

Definition at line 968 of file mTouchCVD_macroLibrary_PIC16F1.h.

#define CVD_ASM_JUMP_LABEL_7 (  )

Definition at line 968 of file mTouchCVD_macroLibrary_PIC16F1.h.

#define CVD_ASM_JUMP_LABEL_8 (  )    case 8: asm("ljmp sensor_8");

Definition at line 962 of file mTouchCVD_macroLibrary_PIC16F1.h.

#define CVD_ASM_JUMP_LABEL_8 (  )

Definition at line 962 of file mTouchCVD_macroLibrary_PIC16F1.h.

#define CVD_ASM_JUMP_LABEL_9 (  )

Definition at line 956 of file mTouchCVD_macroLibrary_PIC16F1.h.

#define CVD_ASM_JUMP_LABEL_9 (  )    case 9: asm("ljmp sensor_9");

Definition at line 956 of file mTouchCVD_macroLibrary_PIC16F1.h.

#define CVD_STORE_LABEL_0 (  )    STORE_LAST_SENSOR(0);

Definition at line 799 of file mTouchCVD_macroLibrary_PIC16F1.h.

#define CVD_STORE_LABEL_1 (  )

Definition at line 1006 of file mTouchCVD_macroLibrary_PIC16F1.h.

#define CVD_STORE_LABEL_1 (  )    STORE_SENSOR(1);

Definition at line 1006 of file mTouchCVD_macroLibrary_PIC16F1.h.

#define CVD_STORE_LABEL_10 (  )    STORE_SENSOR(10);

Definition at line 952 of file mTouchCVD_macroLibrary_PIC16F1.h.

#define CVD_STORE_LABEL_10 (  )

Definition at line 952 of file mTouchCVD_macroLibrary_PIC16F1.h.

#define CVD_STORE_LABEL_11 (  )

Definition at line 946 of file mTouchCVD_macroLibrary_PIC16F1.h.

#define CVD_STORE_LABEL_11 (  )    STORE_SENSOR(11);

Definition at line 946 of file mTouchCVD_macroLibrary_PIC16F1.h.

#define CVD_STORE_LABEL_12 (  )    STORE_SENSOR(12);

Definition at line 940 of file mTouchCVD_macroLibrary_PIC16F1.h.

#define CVD_STORE_LABEL_12 (  )

Definition at line 940 of file mTouchCVD_macroLibrary_PIC16F1.h.

#define CVD_STORE_LABEL_13 (  )    STORE_SENSOR(13);

Definition at line 934 of file mTouchCVD_macroLibrary_PIC16F1.h.

#define CVD_STORE_LABEL_13 (  )

Definition at line 934 of file mTouchCVD_macroLibrary_PIC16F1.h.

#define CVD_STORE_LABEL_14 (  )    STORE_SENSOR(14);

Definition at line 928 of file mTouchCVD_macroLibrary_PIC16F1.h.

#define CVD_STORE_LABEL_14 (  )

Definition at line 928 of file mTouchCVD_macroLibrary_PIC16F1.h.

#define CVD_STORE_LABEL_15 (  )

Definition at line 922 of file mTouchCVD_macroLibrary_PIC16F1.h.

#define CVD_STORE_LABEL_15 (  )    STORE_SENSOR(15);

Definition at line 922 of file mTouchCVD_macroLibrary_PIC16F1.h.

#define CVD_STORE_LABEL_16 (  )    STORE_SENSOR(16);

Definition at line 916 of file mTouchCVD_macroLibrary_PIC16F1.h.

#define CVD_STORE_LABEL_16 (  )

Definition at line 916 of file mTouchCVD_macroLibrary_PIC16F1.h.

#define CVD_STORE_LABEL_17 (  )    STORE_SENSOR(17);

Definition at line 910 of file mTouchCVD_macroLibrary_PIC16F1.h.

#define CVD_STORE_LABEL_17 (  )

Definition at line 910 of file mTouchCVD_macroLibrary_PIC16F1.h.

#define CVD_STORE_LABEL_18 (  )    STORE_SENSOR(18);

Definition at line 904 of file mTouchCVD_macroLibrary_PIC16F1.h.

#define CVD_STORE_LABEL_18 (  )

Definition at line 904 of file mTouchCVD_macroLibrary_PIC16F1.h.

#define CVD_STORE_LABEL_19 (  )    STORE_SENSOR(19);

Definition at line 898 of file mTouchCVD_macroLibrary_PIC16F1.h.

#define CVD_STORE_LABEL_19 (  )

Definition at line 898 of file mTouchCVD_macroLibrary_PIC16F1.h.

#define CVD_STORE_LABEL_2 (  )

Definition at line 1000 of file mTouchCVD_macroLibrary_PIC16F1.h.

#define CVD_STORE_LABEL_2 (  )    STORE_SENSOR(2);

Definition at line 1000 of file mTouchCVD_macroLibrary_PIC16F1.h.

#define CVD_STORE_LABEL_20 (  )    STORE_SENSOR(20);

Definition at line 892 of file mTouchCVD_macroLibrary_PIC16F1.h.

#define CVD_STORE_LABEL_20 (  )

Definition at line 892 of file mTouchCVD_macroLibrary_PIC16F1.h.

#define CVD_STORE_LABEL_21 (  )    STORE_SENSOR(21);

Definition at line 886 of file mTouchCVD_macroLibrary_PIC16F1.h.

#define CVD_STORE_LABEL_21 (  )

Definition at line 886 of file mTouchCVD_macroLibrary_PIC16F1.h.

#define CVD_STORE_LABEL_22 (  )    STORE_SENSOR(22);

Definition at line 880 of file mTouchCVD_macroLibrary_PIC16F1.h.

#define CVD_STORE_LABEL_22 (  )

Definition at line 880 of file mTouchCVD_macroLibrary_PIC16F1.h.

#define CVD_STORE_LABEL_23 (  )

Definition at line 874 of file mTouchCVD_macroLibrary_PIC16F1.h.

#define CVD_STORE_LABEL_23 (  )    STORE_SENSOR(23);

Definition at line 874 of file mTouchCVD_macroLibrary_PIC16F1.h.

#define CVD_STORE_LABEL_24 (  )    STORE_SENSOR(24);

Definition at line 868 of file mTouchCVD_macroLibrary_PIC16F1.h.

#define CVD_STORE_LABEL_24 (  )

Definition at line 868 of file mTouchCVD_macroLibrary_PIC16F1.h.

#define CVD_STORE_LABEL_25 (  )    STORE_SENSOR(25);

Definition at line 862 of file mTouchCVD_macroLibrary_PIC16F1.h.

#define CVD_STORE_LABEL_25 (  )

Definition at line 862 of file mTouchCVD_macroLibrary_PIC16F1.h.

#define CVD_STORE_LABEL_26 (  )    STORE_SENSOR(26);

Definition at line 856 of file mTouchCVD_macroLibrary_PIC16F1.h.

#define CVD_STORE_LABEL_26 (  )

Definition at line 856 of file mTouchCVD_macroLibrary_PIC16F1.h.

#define CVD_STORE_LABEL_27 (  )

Definition at line 850 of file mTouchCVD_macroLibrary_PIC16F1.h.

#define CVD_STORE_LABEL_27 (  )    STORE_SENSOR(27);

Definition at line 850 of file mTouchCVD_macroLibrary_PIC16F1.h.

#define CVD_STORE_LABEL_28 (  )    STORE_SENSOR(28);

Definition at line 844 of file mTouchCVD_macroLibrary_PIC16F1.h.

#define CVD_STORE_LABEL_28 (  )

Definition at line 844 of file mTouchCVD_macroLibrary_PIC16F1.h.

#define CVD_STORE_LABEL_29 (  )    STORE_SENSOR(29);

Definition at line 838 of file mTouchCVD_macroLibrary_PIC16F1.h.

#define CVD_STORE_LABEL_29 (  )

Definition at line 838 of file mTouchCVD_macroLibrary_PIC16F1.h.

#define CVD_STORE_LABEL_3 (  )

Definition at line 994 of file mTouchCVD_macroLibrary_PIC16F1.h.

#define CVD_STORE_LABEL_3 (  )    STORE_SENSOR(3);

Definition at line 994 of file mTouchCVD_macroLibrary_PIC16F1.h.

#define CVD_STORE_LABEL_4 (  )    STORE_SENSOR(4);

Definition at line 988 of file mTouchCVD_macroLibrary_PIC16F1.h.

#define CVD_STORE_LABEL_4 (  )

Definition at line 988 of file mTouchCVD_macroLibrary_PIC16F1.h.

#define CVD_STORE_LABEL_5 (  )

Definition at line 982 of file mTouchCVD_macroLibrary_PIC16F1.h.

#define CVD_STORE_LABEL_5 (  )    STORE_SENSOR(5);

Definition at line 982 of file mTouchCVD_macroLibrary_PIC16F1.h.

#define CVD_STORE_LABEL_6 (  )    STORE_SENSOR(6);

Definition at line 976 of file mTouchCVD_macroLibrary_PIC16F1.h.

#define CVD_STORE_LABEL_6 (  )

Definition at line 976 of file mTouchCVD_macroLibrary_PIC16F1.h.

#define CVD_STORE_LABEL_7 (  )

Definition at line 970 of file mTouchCVD_macroLibrary_PIC16F1.h.

#define CVD_STORE_LABEL_7 (  )    STORE_SENSOR(7);

Definition at line 970 of file mTouchCVD_macroLibrary_PIC16F1.h.

#define CVD_STORE_LABEL_8 (  )

Definition at line 964 of file mTouchCVD_macroLibrary_PIC16F1.h.

#define CVD_STORE_LABEL_8 (  )    STORE_SENSOR(8);

Definition at line 964 of file mTouchCVD_macroLibrary_PIC16F1.h.

#define CVD_STORE_LABEL_9 (  )    STORE_SENSOR(9);

Definition at line 958 of file mTouchCVD_macroLibrary_PIC16F1.h.

#define CVD_STORE_LABEL_9 (  )

Definition at line 958 of file mTouchCVD_macroLibrary_PIC16F1.h.

#define EXIT_LAST_SENSOR_DECINDEX (   index )    index = 0;

Do not use directly. Utility macro used by EXIT_LAST_SENSOR() to reset the index variable.

Parameters:
[in]indexthe index variable to reset to 0

Definition at line 727 of file mTouchCVD_macroLibrary_PIC16F1.h.

#define EXIT_LAST_SENSOR_MAIN (  )
Value:
do {                                                                                                                            \
    if (--sample_counter != 0) {                          /* Decrement the sample counter and check if it's equal to 0      */  \
        asm("ljmp END_ISR");                              /* If not equal to 0, exit the ISR                                */  \
    }                                                                                                                           \
    sample_counter = CVD_SAMPLES_PER_SCAN;                /* If equal to 0, reset the sample counter continue with storage  */  \
} while(0)

Do not use directly. Utility macro used by EXIT_LAST_SENSOR() to decrement the oversampling counter.

Parameters:
[in]None

Definition at line 719 of file mTouchCVD_macroLibrary_PIC16F1.h.

#define MASKBANK (   var,
  bank 
)    ((var)^((bank)*80h))

Masks the bank out of the variable address for ASM code usage.

Parameters:
varthe variable address to mask
bankthe bank location of the variable

Definition at line 73 of file mTouchCVD_macroLibrary_PIC16F1.h.

#define NOBANK (   var )    (var & 0x7F)

Definition at line 74 of file mTouchCVD_macroLibrary_PIC16F1.h.

#define STORE_LAST_SENSOR_SCALE (   index,
  shift 
)
Value:
do {                                                                                                \
        CVDSensorData[CVD_NUMBER_SENSORS-1] = (unsigned int)(CVD_Acq_Filtered_Data[index] >> shift);    \
        CVD_Acq_Filtered_Data[index] = 0;                                                               \
    } while(0)

Do not use directly. Expanded utility macro called by STORE_SENSOR(index).

Parameters:
[in]indexthe index of the sensor to be scaled and stored
[in]shiftthe number of times to shift the accumulator value to the right before storing its value in the CVDSensorData array

Definition at line 623 of file mTouchCVD_macroLibrary_PIC16F1.h.

#define STORE_SENSOR_SCALE (   index,
  shift 
)
Value:
do {                                                                                \
        CVDSensorData[index-1] = (unsigned int)(CVD_Acq_Filtered_Data[index] >> shift); \
        CVD_Acq_Filtered_Data[index] = 0;                                               \
    } while(0)

Do not use directly. Expanded utility macro called by STORE_SENSOR(index).

Parameters:
[in]indexthe index of the sensor to be scaled and stored
[in]shiftthe number of times to shift the accumulator value to the right before storing its value in the CVDSensorData array

Definition at line 611 of file mTouchCVD_macroLibrary_PIC16F1.h.

#define STORE_SINGLE_SENSOR_SCALE (   index,
  shift 
)
Value:
do {                                                                        \
        CVDSensorData[0] = (unsigned int)(CVD_Acq_Filtered_Data[0] >> shift);   \
        CVD_Acq_Filtered_Data[0] = 0;                                           \
    } while(0)

Do not use directly. Expanded utility macro called by STORE_SENSOR(index) if there is only one sensor in the mTouch application.

Parameters:
[in]indexthe index of the sensor to be scaled and stored
[in]shiftthe number of times to shift the accumulator value to the right before storing its value in the CVDSensorData array

Definition at line 635 of file mTouchCVD_macroLibrary_PIC16F1.h.