Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: BSP_DISCO_F746NG DISCO-F746NG_SDRAMBlockDevice LCD_DISCO_F746NG mbed
Fork of LoadCell_STM32 by
main.h@5:f8d3bcb187de, 2018-02-24 (annotated)
- Committer:
- tapiov
- Date:
- Sat Feb 24 16:18:46 2018 +0000
- Revision:
- 5:f8d3bcb187de
- Parent:
- 3:22b1719c2b92
- Child:
- 6:641b171407c9
Data size halved (16 bit data). Improved operation and output.
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 | 5:f8d3bcb187de | 5 | uint16_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 | 5:f8d3bcb187de | 13 | extern void insertArray(Array *a, uint32_t newsize); |
| 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); |
