LoadCell_STM32_SDRAM_v1
Dependencies: BSP_DISCO_F746NG DISCO-F746NG_SDRAMBlockDevice LCD_DISCO_F746NG mbed
Fork of LoadCell_STM32 by
main.h@3:22b1719c2b92, 2018-02-24 (annotated)
- Committer:
- tapiov
- Date:
- Sat Feb 24 11:26:50 2018 +0000
- Revision:
- 3:22b1719c2b92
- Parent:
- 1:c3c61d08f31b
- Child:
- 5:f8d3bcb187de
Data array resizing working.
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 | 3:22b1719c2b92 | 14 | extern void insertArray2(Array *a, uint32_t newsize); |
tapiov | 1:c3c61d08f31b | 15 | extern void freeArray(Array *a); |
tapiov | 1:c3c61d08f31b | 16 | |
tapiov | 1:c3c61d08f31b | 17 | extern size_t string_parser(char *input, char ***word_array); |
tapiov | 1:c3c61d08f31b | 18 | extern void PlotData(uint32_t XCoordinate,uint32_t YCoordinate); |
tapiov | 1:c3c61d08f31b | 19 | extern void InitScreen(uint32_t BackGroundColor,uint32_t ForeGroundColor); |
tapiov | 1:c3c61d08f31b | 20 | extern void LCDWrite(uint32_t Line,char Str[],Text_AlignModeTypdef AlingMode); |
tapiov | 1:c3c61d08f31b | 21 | extern void CountDown(uint32_t millisecs); |
tapiov | 1:c3c61d08f31b | 22 | extern void SamplePoints(Array *Data,uint32_t NoOfPoints,uint32_t Period_us); |
tapiov | 1:c3c61d08f31b | 23 | extern void AvgAndPlotPoints(Array *Data,uint32_t NoOfPoints, uint32_t AvgSize); |