Data sample and LCD plot
Dependencies: BSP_DISCO_F746NG LCD_DISCO_F746NG SDRAM_DISCO_F746NG mbed
main.h@2:386f65563144, 2018-02-23 (annotated)
- Committer:
- tapiov
- Date:
- Fri Feb 23 20:28:44 2018 +0000
- Revision:
- 2:386f65563144
- Parent:
- 1:c3c61d08f31b
New commit for forum review
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
tapiov | 1:c3c61d08f31b | 1 | // LoadCell_STM32_RAM v2 main header |
tapiov | 1:c3c61d08f31b | 2 | // (C) Tapio Valli 2018-02-20 |
tapiov | 1:c3c61d08f31b | 3 | |
tapiov | 1:c3c61d08f31b | 4 | typedef struct { |
tapiov | 1:c3c61d08f31b | 5 | uint32_t *array; |
tapiov | 1:c3c61d08f31b | 6 | size_t used; |
tapiov | 1:c3c61d08f31b | 7 | size_t size; |
tapiov | 1:c3c61d08f31b | 8 | } Array; |
tapiov | 1:c3c61d08f31b | 9 | |
tapiov | 1:c3c61d08f31b | 10 | // Prototypes |
tapiov | 1:c3c61d08f31b | 11 | |
tapiov | 1:c3c61d08f31b | 12 | extern void initArray(Array *a, size_t initialSize); |
tapiov | 1:c3c61d08f31b | 13 | extern void insertArray(Array *a, uint32_t element); |
tapiov | 1:c3c61d08f31b | 14 | extern void freeArray(Array *a); |
tapiov | 1:c3c61d08f31b | 15 | |
tapiov | 1:c3c61d08f31b | 16 | extern size_t string_parser(char *input, char ***word_array); |
tapiov | 1:c3c61d08f31b | 17 | extern void PlotData(uint32_t XCoordinate,uint32_t YCoordinate); |
tapiov | 1:c3c61d08f31b | 18 | extern void InitScreen(uint32_t BackGroundColor,uint32_t ForeGroundColor); |
tapiov | 1:c3c61d08f31b | 19 | extern void LCDWrite(uint32_t Line,char Str[],Text_AlignModeTypdef AlingMode); |
tapiov | 1:c3c61d08f31b | 20 | extern void CountDown(uint32_t millisecs); |
tapiov | 1:c3c61d08f31b | 21 | extern void SamplePoints(Array *Data,uint32_t NoOfPoints,uint32_t Period_us); |
tapiov | 1:c3c61d08f31b | 22 | extern void AvgAndPlotPoints(Array *Data,uint32_t NoOfPoints, uint32_t AvgSize); |