Generates a test signal on an AnalogOut and monitors a signal on an AnalogIn, plotting the test signal or the actual signal depending on a conditional compile. The wait() and wait_ms() library calls for this board are highly inaccurate so a new function is provided to wait for X number of milliseconds -- which is not very accurate.

Dependencies:   LCD_DISCO_F429ZI mbed TS_DISCO_F429ZI mbed-os BSP_DISCO_F429ZI

Committer:
Damotclese
Date:
Mon Jun 17 17:11:07 2019 +0000
Revision:
2:cbcf2695a4a1
Added average TEC history;

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Damotclese 2:cbcf2695a4a1 1
Damotclese 2:cbcf2695a4a1 2 // ----------------------------------------------------------------------
Damotclese 2:cbcf2695a4a1 3 // LaserMon-TEC.h
Damotclese 2:cbcf2695a4a1 4 //
Damotclese 2:cbcf2695a4a1 5 // Fredric L. Rice, June 2019
Damotclese 2:cbcf2695a4a1 6 //
Damotclese 2:cbcf2695a4a1 7 // ----------------------------------------------------------------------
Damotclese 2:cbcf2695a4a1 8
Damotclese 2:cbcf2695a4a1 9 // ----------------------------------------------------------------------
Damotclese 2:cbcf2695a4a1 10 // Defined constants and MACROs we may use
Damotclese 2:cbcf2695a4a1 11 //
Damotclese 2:cbcf2695a4a1 12 // ----------------------------------------------------------------------
Damotclese 2:cbcf2695a4a1 13
Damotclese 2:cbcf2695a4a1 14 #define TEC_HISTORY_COUNT_MAX 10
Damotclese 2:cbcf2695a4a1 15
Damotclese 2:cbcf2695a4a1 16 // ----------------------------------------------------------------------
Damotclese 2:cbcf2695a4a1 17 // External function prototype that we will export
Damotclese 2:cbcf2695a4a1 18 //
Damotclese 2:cbcf2695a4a1 19 // ----------------------------------------------------------------------
Damotclese 2:cbcf2695a4a1 20
Damotclese 2:cbcf2695a4a1 21 extern void TECInit(void);
Damotclese 2:cbcf2695a4a1 22 extern void TECThread(void);
Damotclese 2:cbcf2695a4a1 23 extern uint16_t TECGetLastTenAverage(void);
Damotclese 2:cbcf2695a4a1 24
Damotclese 2:cbcf2695a4a1 25 // End of file
Damotclese 2:cbcf2695a4a1 26