Advertisement
Guest User

Untitled

a guest
Aug 1st, 2021
640
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 43.90 KB | None | 0 0
  1. 14:37:49 **** Incremental Build of configuration Debug for project ltc6803LibF103 ****
  2. make -j8 all
  3. arm-none-eabi-g++ "../Src/ltc6803LibF103.cpp" -mcpu=cortex-m3 -std=gnu++14 -g3 -DDEBUG -DUSE_HAL_DRIVER -DSTM32F103xE -c -I../Drivers/CMSIS/Device/ST/STM32F1xx/Include -I../Drivers/CMSIS/Include -I../Inc -I../Drivers/STM32F1xx_HAL_Driver/Inc -I../Drivers/STM32F1xx_HAL_Driver/Inc/Legacy -O1 -ffunction-sections -fdata-sections -fno-exceptions -fno-rtti -fno-use-cxa-atexit -Wall -fstack-usage -MMD -MP -MF"Src/ltc6803LibF103.d" -MT"Src/ltc6803LibF103.o" --specs=nano.specs -mfloat-abi=soft -mthumb -o "Src/ltc6803LibF103.o"
  4. arm-none-eabi-g++ "../Src/ltc6803LibF103_old.cpp" -mcpu=cortex-m3 -std=gnu++14 -g3 -DDEBUG -DUSE_HAL_DRIVER -DSTM32F103xE -c -I../Drivers/CMSIS/Device/ST/STM32F1xx/Include -I../Drivers/CMSIS/Include -I../Inc -I../Drivers/STM32F1xx_HAL_Driver/Inc -I../Drivers/STM32F1xx_HAL_Driver/Inc/Legacy -O1 -ffunction-sections -fdata-sections -fno-exceptions -fno-rtti -fno-use-cxa-atexit -Wall -fstack-usage -MMD -MP -MF"Src/ltc6803LibF103_old.d" -MT"Src/ltc6803LibF103_old.o" --specs=nano.specs -mfloat-abi=soft -mthumb -o "Src/ltc6803LibF103_old.o"
  5. ../Src/ltc6803LibF103_old.cpp: In function 'uint8_t selfTest(SPI_HandleTypeDef*, LTC6803_AMS*)':
  6. ../Src/ltc6803LibF103_old.cpp:39:40: error: cannot convert 'FlagStatus' to 'GPIO_PinState'
  7.    39 |  HAL_GPIO_WritePin(GPIOB, GPIO_PIN_12, RESET); // Chip select LOW
  8.       |                                        ^~~~~
  9.       |                                        |
  10.       |                                        FlagStatus
  11. In file included from ../Inc/stm32f1xx_hal_conf.h:247,
  12.                  from ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal.h:30,
  13.                  from ../Inc/ltc6803LibF103_old.hpp:8,
  14.                  from ../Src/ltc6803LibF103_old.cpp:12:
  15. ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_gpio.h:235:78: note:   initializing argument 3 of 'void HAL_GPIO_WritePin(GPIO_TypeDef*, uint16_t, GPIO_PinState)'
  16.   235 | void HAL_GPIO_WritePin(GPIO_TypeDef *GPIOx, uint16_t GPIO_Pin, GPIO_PinState PinState);
  17.       |                                                                ~~~~~~~~~~~~~~^~~~~~~~
  18. In file included from ../Src/ltc6803LibF103.cpp:12:
  19. ../Inc/ltc6803LibF103.hpp:22:43: error: 'LTC6803_AMS' has not been declared
  20.    22 |  void measureCVR(SPI_HandleTypeDef *hspi, LTC6803_AMS *pAMSX,
  21.       |                                           ^~~~~~~~~~~
  22. ../Inc/ltc6803LibF103.hpp:23:4: error: 'MEAS_CV_Ident' has not been declared
  23.    23 |    MEAS_CV_Ident MEAStyp, uint8_t CELLS);
  24.       |    ^~~~~~~~~~~~~
  25. ../Inc/ltc6803LibF103.hpp:24:50: error: 'LTC6803_AMS' has not been declared
  26.    24 |  void readAndProcessCVR(SPI_HandleTypeDef *hspi, LTC6803_AMS *pAMSX,
  27.       |                                                  ^~~~~~~~~~~
  28. ../Src/ltc6803LibF103_old.cpp:42:40: error: cannot convert 'FlagStatus' to 'GPIO_PinState'
  29.    42 |  HAL_GPIO_WritePin(GPIOB, GPIO_PIN_12, SET);   // Chip select HIGH
  30.       |                                        ^~~
  31.       |                                        |
  32.       |                                        FlagStatus
  33. ../Inc/ltc6803LibF103.hpp:25:4: error: 'Read_CV_Ident' has not been declared
  34.    25 |    Read_CV_Ident READtyp);
  35.       |    ^~~~~~~~~~~~~
  36. ../Inc/ltc6803LibF103.hpp:26:45: error: 'LTC6803_AMS' has not been declared
  37.    26 |  void structWriter(SPI_HandleTypeDef *hspi, LTC6803_AMS *pAMSX);
  38.       |                                             ^~~~~~~~~~~
  39. In file included from ../Inc/stm32f1xx_hal_conf.h:247,
  40.                  from ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal.h:30,
  41.                  from ../Inc/ltc6803LibF103_old.hpp:8,
  42.                  from ../Src/ltc6803LibF103_old.cpp:12:
  43. ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_gpio.h:235:78: note:   initializing argument 3 of 'void HAL_GPIO_WritePin(GPIO_TypeDef*, uint16_t, GPIO_PinState)'
  44.   235 | void HAL_GPIO_WritePin(GPIO_TypeDef *GPIOx, uint16_t GPIO_Pin, GPIO_PinState PinState);
  45.       |                                                                ~~~~~~~~~~~~~~^~~~~~~~
  46. ../Inc/ltc6803LibF103.hpp:27:21: error: 'AMS_CFGR' has not been declared
  47.    27 |  void setCFGRstruct(AMS_CFGR *pCFGRstruct, LTC6803_AMS *pAMSX);
  48.       |                     ^~~~~~~~
  49. ../Inc/ltc6803LibF103.hpp:27:44: error: 'LTC6803_AMS' has not been declared
  50.    27 |  void setCFGRstruct(AMS_CFGR *pCFGRstruct, LTC6803_AMS *pAMSX);
  51.       |                                            ^~~~~~~~~~~
  52. ../Src/ltc6803LibF103_old.cpp: In function 'void measureCVR(SPI_HandleTypeDef*, LTC6803_AMS*, MEAS_CV_Ident, STCVAD)':
  53. ../Src/ltc6803LibF103_old.cpp:68:40: error: cannot convert 'FlagStatus' to 'GPIO_PinState'
  54.    68 |  HAL_GPIO_WritePin(GPIOB, GPIO_PIN_12, RESET); // Chip select LOW
  55.       |                                        ^~~~~
  56.       |                                        |
  57.       |                                        FlagStatus
  58. In file included from ../Inc/stm32f1xx_hal_conf.h:247,
  59.                  from ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal.h:30,
  60.                  from ../Inc/ltc6803LibF103_old.hpp:8,
  61.                  from ../Src/ltc6803LibF103_old.cpp:12:
  62. ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_gpio.h:235:78: note:   initializing argument 3 of 'void HAL_GPIO_WritePin(GPIO_TypeDef*, uint16_t, GPIO_PinState)'
  63.   235 | void HAL_GPIO_WritePin(GPIO_TypeDef *GPIOx, uint16_t GPIO_Pin, GPIO_PinState PinState);
  64.       |                                                                ~~~~~~~~~~~~~~^~~~~~~~
  65. ../Src/ltc6803LibF103.cpp: In member function 'uint8_t LTC6803::selfTest()':
  66. ../Src/ltc6803LibF103.cpp:34:14: error: 'pAMSX' was not declared in this scope
  67.    34 |  TxData[0] = pAMSX->ID[0];
  68.       |              ^~~~~
  69. ../Src/ltc6803LibF103_old.cpp:71:40: error: cannot convert 'FlagStatus' to 'GPIO_PinState'
  70.    71 |  HAL_GPIO_WritePin(GPIOB, GPIO_PIN_12, SET);   // Chip select HIGH
  71.       |                                        ^~~
  72.       |                                        |
  73.       |                                        FlagStatus
  74. In file included from ../Inc/stm32f1xx_hal_conf.h:247,
  75.                  from ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal.h:30,
  76.                  from ../Inc/ltc6803LibF103_old.hpp:8,
  77.                  from ../Src/ltc6803LibF103_old.cpp:12:
  78. ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_gpio.h:235:78: note:   initializing argument 3 of 'void HAL_GPIO_WritePin(GPIO_TypeDef*, uint16_t, GPIO_PinState)'
  79.   235 | void HAL_GPIO_WritePin(GPIO_TypeDef *GPIOx, uint16_t GPIO_Pin, GPIO_PinState PinState);
  80.       |                                                                ~~~~~~~~~~~~~~^~~~~~~~
  81. ../Src/ltc6803LibF103.cpp:36:14: error: 'CV' was not declared in this scope
  82.    36 |  TxData[2] = CV ^ CV_TEST1;
  83.       |              ^~
  84. ../Src/ltc6803LibF103_old.cpp: In function 'void readAndProcessCVR(SPI_HandleTypeDef*, LTC6803_AMS*, Read_CV_Ident)':
  85. ../Src/ltc6803LibF103_old.cpp:91:40: error: cannot convert 'FlagStatus' to 'GPIO_PinState'
  86.    91 |  HAL_GPIO_WritePin(GPIOB, GPIO_PIN_12, RESET); // Chip select LOW
  87.       |                                        ^~~~~
  88.       |                                        |
  89.       |                                        FlagStatus
  90. In file included from ../Inc/stm32f1xx_hal_conf.h:247,
  91.                  from ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal.h:30,
  92.                  from ../Inc/ltc6803LibF103_old.hpp:8,
  93.                  from ../Src/ltc6803LibF103_old.cpp:12:
  94. ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_gpio.h:235:78: note:   initializing argument 3 of 'void HAL_GPIO_WritePin(GPIO_TypeDef*, uint16_t, GPIO_PinState)'
  95.   235 | void HAL_GPIO_WritePin(GPIO_TypeDef *GPIOx, uint16_t GPIO_Pin, GPIO_PinState PinState);
  96.       |                                                                ~~~~~~~~~~~~~~^~~~~~~~
  97. ../Src/ltc6803LibF103_old.cpp:96:40: error: cannot convert 'FlagStatus' to 'GPIO_PinState'
  98.    96 |  HAL_GPIO_WritePin(GPIOB, GPIO_PIN_12, SET); // Chip select HIGH
  99.       |                                        ^~~
  100.       |                                        |
  101.       |                                        FlagStatus
  102. In file included from ../Inc/stm32f1xx_hal_conf.h:247,
  103.                  from ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal.h:30,
  104.                  from ../Inc/ltc6803LibF103_old.hpp:8,
  105.                  from ../Src/ltc6803LibF103_old.cpp:12:
  106. ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_gpio.h:235:78: note:   initializing argument 3 of 'void HAL_GPIO_WritePin(GPIO_TypeDef*, uint16_t, GPIO_PinState)'
  107.   235 | void HAL_GPIO_WritePin(GPIO_TypeDef *GPIOx, uint16_t GPIO_Pin, GPIO_PinState PinState);
  108.       |                                                                ~~~~~~~~~~~~~~^~~~~~~~
  109. ../Src/ltc6803LibF103.cpp:36:19: error: 'CV_TEST1' was not declared in this scope
  110.    36 |  TxData[2] = CV ^ CV_TEST1;
  111.       |                   ^~~~~~~~
  112. ../Src/ltc6803LibF103.cpp:39:40: error: cannot convert 'FlagStatus' to 'GPIO_PinState'
  113.    39 |  HAL_GPIO_WritePin(GPIOB, GPIO_PIN_12, RESET); // Chip select LOW
  114.       |                                        ^~~~~
  115.       |                                        |
  116.       |                                        FlagStatus
  117. In file included from ../Inc/stm32f1xx_hal_conf.h:247,
  118.                  from ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal.h:30,
  119.                  from ../Inc/ltc6803LibF103.hpp:8,
  120.                  from ../Src/ltc6803LibF103.cpp:12:
  121. ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_gpio.h:235:78: note:   initializing argument 3 of 'void HAL_GPIO_WritePin(GPIO_TypeDef*, uint16_t, GPIO_PinState)'
  122.   235 | void HAL_GPIO_WritePin(GPIO_TypeDef *GPIOx, uint16_t GPIO_Pin, GPIO_PinState PinState);
  123.       |                                                                ~~~~~~~~~~~~~~^~~~~~~~
  124. ../Src/ltc6803LibF103_old.cpp: In function 'uint8_t ErrorCode(uint8_t*, uint8_t)':
  125. ../Src/ltc6803LibF103_old.cpp:203:21: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses]
  126.   203 |    PEC = (PEC << 1) & 0xF8 | IN_0 | (IN_1 << 1) | (IN_2 << 2);
  127.       |          ~~~~~~~~~~~^~~~~~
  128. ../Src/ltc6803LibF103_old.cpp: In function 'uint8_t ErrorCodeSingle(uint8_t)':
  129. ../Src/ltc6803LibF103_old.cpp:223:20: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses]
  130.   223 |   PEC = (PEC << 1) & 0xF8 | A | (B << 1) | (C << 2);
  131.       |         ~~~~~~~~~~~^~~~~~
  132. ../Src/ltc6803LibF103.cpp:40:19: error: 'hspi' was not declared in this scope
  133.    40 |  HAL_SPI_Transmit(hspi, TxData, 4, 100); // ask for conversion
  134.       |                   ^~~~
  135. ../Src/ltc6803LibF103.cpp:42:40: error: cannot convert 'FlagStatus' to 'GPIO_PinState'
  136.    42 |  HAL_GPIO_WritePin(GPIOB, GPIO_PIN_12, SET); // Chip select HIGH
  137.       |                                        ^~~
  138.       |                                        |
  139.       |                                        FlagStatus
  140. In file included from ../Inc/stm32f1xx_hal_conf.h:247,
  141.                  from ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal.h:30,
  142.                  from ../Inc/ltc6803LibF103.hpp:8,
  143.                  from ../Src/ltc6803LibF103.cpp:12:
  144. ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_gpio.h:235:78: note:   initializing argument 3 of 'void HAL_GPIO_WritePin(GPIO_TypeDef*, uint16_t, GPIO_PinState)'
  145.   235 | void HAL_GPIO_WritePin(GPIO_TypeDef *GPIOx, uint16_t GPIO_Pin, GPIO_PinState PinState);
  146.       |                                                                ~~~~~~~~~~~~~~^~~~~~~~
  147. ../Src/ltc6803LibF103_old.cpp: In function 'void structWriter(SPI_HandleTypeDef*, LTC6803_AMS*)':
  148. ../Src/ltc6803LibF103_old.cpp:244:41: error: cannot convert 'FlagStatus' to 'GPIO_PinState'
  149.   244 |   HAL_GPIO_WritePin(GPIOB, GPIO_PIN_12, RESET); // Chip select LOW
  150.       |                                         ^~~~~
  151.       |                                         |
  152.       |                                         FlagStatus
  153. In file included from ../Inc/stm32f1xx_hal_conf.h:247,
  154.                  from ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal.h:30,
  155.                  from ../Inc/ltc6803LibF103_old.hpp:8,
  156.                  from ../Src/ltc6803LibF103_old.cpp:12:
  157. ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_gpio.h:235:78: note:   initializing argument 3 of 'void HAL_GPIO_WritePin(GPIO_TypeDef*, uint16_t, GPIO_PinState)'
  158.   235 | void HAL_GPIO_WritePin(GPIO_TypeDef *GPIOx, uint16_t GPIO_Pin, GPIO_PinState PinState);
  159.       |                                                                ~~~~~~~~~~~~~~^~~~~~~~
  160. ../Src/ltc6803LibF103.cpp:44:33: error: 'RDCV' was not declared in this scope
  161.    44 |  readAndProcessCVR(hspi, pAMSX, RDCV);
  162.       |                                 ^~~~
  163. ../Src/ltc6803LibF103_old.cpp:250:41: error: cannot convert 'FlagStatus' to 'GPIO_PinState'
  164.   250 |   HAL_GPIO_WritePin(GPIOB, GPIO_PIN_12, SET);  // Chip Select HIGH
  165.       |                                         ^~~
  166.       |                                         |
  167.       |                                         FlagStatus
  168. ../Src/ltc6803LibF103.cpp: At global scope:
  169. ../Src/ltc6803LibF103.cpp:60:42: error: 'LTC6803_AMS' has not been declared
  170.    60 | void measureCVR(SPI_HandleTypeDef *hspi, LTC6803_AMS *pAMSX,
  171.       |                                          ^~~~~~~~~~~
  172. ../Src/ltc6803LibF103.cpp:61:3: error: 'MEAS_CV_Ident' has not been declared
  173.    61 |   MEAS_CV_Ident MEAStyp, STCVAD CELLS) {
  174.       |   ^~~~~~~~~~~~~
  175. In file included from ../Inc/stm32f1xx_hal_conf.h:247,
  176.                  from ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal.h:30,
  177.                  from ../Inc/ltc6803LibF103_old.hpp:8,
  178.                  from ../Src/ltc6803LibF103_old.cpp:12:
  179. ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_gpio.h:235:78: note:   initializing argument 3 of 'void HAL_GPIO_WritePin(GPIO_TypeDef*, uint16_t, GPIO_PinState)'
  180.   235 | void HAL_GPIO_WritePin(GPIO_TypeDef *GPIOx, uint16_t GPIO_Pin, GPIO_PinState PinState);
  181.       |                                                                ~~~~~~~~~~~~~~^~~~~~~~
  182. ../Src/ltc6803LibF103.cpp:61:26: error: 'STCVAD' has not been declared
  183.    61 |   MEAS_CV_Ident MEAStyp, STCVAD CELLS) {
  184.       |                          ^~~~~~
  185. ../Src/ltc6803LibF103_old.cpp:258:41: error: cannot convert 'FlagStatus' to 'GPIO_PinState'
  186.   258 |   HAL_GPIO_WritePin(GPIOB, GPIO_PIN_12, RESET); // Chip select LOW
  187.       |                                         ^~~~~
  188.       |                                         |
  189.       |                                         FlagStatus
  190. ../Src/ltc6803LibF103.cpp: In function 'void measureCVR(SPI_HandleTypeDef*, int*, int, int)':
  191. ../Src/ltc6803LibF103.cpp:63:21: error: request for member 'ID' in '* pAMSX', which is of non-class type 'int'
  192.    63 |  TxData[0] = pAMSX->ID[0];
  193.       |                     ^~
  194. In file included from ../Inc/stm32f1xx_hal_conf.h:247,
  195.                  from ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal.h:30,
  196.                  from ../Inc/ltc6803LibF103_old.hpp:8,
  197.                  from ../Src/ltc6803LibF103_old.cpp:12:
  198. ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_gpio.h:235:78: note:   initializing argument 3 of 'void HAL_GPIO_WritePin(GPIO_TypeDef*, uint16_t, GPIO_PinState)'
  199.   235 | void HAL_GPIO_WritePin(GPIO_TypeDef *GPIOx, uint16_t GPIO_Pin, GPIO_PinState PinState);
  200.       |                                                                ~~~~~~~~~~~~~~^~~~~~~~
  201. ../Src/ltc6803LibF103.cpp:64:37: error: request for member 'ID' in '* pAMSX', which is of non-class type 'int'
  202.    64 |  TxData[1] = ErrorCodeSingle(pAMSX->ID[0]);
  203.       |                                     ^~
  204. ../Src/ltc6803LibF103_old.cpp:264:41: error: cannot convert 'FlagStatus' to 'GPIO_PinState'
  205.   264 |   HAL_GPIO_WritePin(GPIOB, GPIO_PIN_12, SET);  // Chip Select HIGH
  206.       |                                         ^~~
  207.       |                                         |
  208.       |                                         FlagStatus
  209. ../Src/ltc6803LibF103.cpp:68:40: error: cannot convert 'FlagStatus' to 'GPIO_PinState'
  210.    68 |  HAL_GPIO_WritePin(GPIOB, GPIO_PIN_12, RESET); // Chip select LOW
  211.       |                                        ^~~~~
  212.       |                                        |
  213.       |                                        FlagStatus
  214. In file included from ../Inc/stm32f1xx_hal_conf.h:247,
  215.                  from ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal.h:30,
  216.                  from ../Inc/ltc6803LibF103_old.hpp:8,
  217.                  from ../Src/ltc6803LibF103_old.cpp:12:
  218. ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_gpio.h:235:78: note:   initializing argument 3 of 'void HAL_GPIO_WritePin(GPIO_TypeDef*, uint16_t, GPIO_PinState)'
  219.   235 | void HAL_GPIO_WritePin(GPIO_TypeDef *GPIOx, uint16_t GPIO_Pin, GPIO_PinState PinState);
  220.       |                                                                ~~~~~~~~~~~~~~^~~~~~~~
  221. In file included from ../Inc/stm32f1xx_hal_conf.h:247,
  222.                  from ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal.h:30,
  223.                  from ../Inc/ltc6803LibF103.hpp:8,
  224.                  from ../Src/ltc6803LibF103.cpp:12:
  225. ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_gpio.h:235:78: note:   initializing argument 3 of 'void HAL_GPIO_WritePin(GPIO_TypeDef*, uint16_t, GPIO_PinState)'
  226.   235 | void HAL_GPIO_WritePin(GPIO_TypeDef *GPIOx, uint16_t GPIO_Pin, GPIO_PinState PinState);
  227.       |                                                                ~~~~~~~~~~~~~~^~~~~~~~
  228. ../Src/ltc6803LibF103.cpp:71:40: error: cannot convert 'FlagStatus' to 'GPIO_PinState'
  229.    71 |  HAL_GPIO_WritePin(GPIOB, GPIO_PIN_12, SET);   // Chip select HIGH
  230.       |                                        ^~~
  231.       |                                        |
  232.       |                                        FlagStatus
  233. In file included from ../Inc/stm32f1xx_hal_conf.h:247,
  234.                  from ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal.h:30,
  235.                  from ../Inc/ltc6803LibF103.hpp:8,
  236.                  from ../Src/ltc6803LibF103.cpp:12:
  237. ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_gpio.h:235:78: note:   initializing argument 3 of 'void HAL_GPIO_WritePin(GPIO_TypeDef*, uint16_t, GPIO_PinState)'
  238.   235 | void HAL_GPIO_WritePin(GPIO_TypeDef *GPIOx, uint16_t GPIO_Pin, GPIO_PinState PinState);
  239.       |                                                                ~~~~~~~~~~~~~~^~~~~~~~
  240. ../Src/ltc6803LibF103.cpp: At global scope:
  241. ../Src/ltc6803LibF103.cpp:80:49: error: 'LTC6803_AMS' has not been declared
  242.    80 | void readAndProcessCVR(SPI_HandleTypeDef *hspi, LTC6803_AMS *pAMSX,
  243.       |                                                 ^~~~~~~~~~~
  244. ../Src/ltc6803LibF103.cpp:81:3: error: 'Read_CV_Ident' has not been declared
  245.    81 |   Read_CV_Ident READtyp) {
  246.       |   ^~~~~~~~~~~~~
  247. ../Src/ltc6803LibF103.cpp: In function 'void readAndProcessCVR(SPI_HandleTypeDef*, int*, int)':
  248. ../Src/ltc6803LibF103.cpp:86:21: error: request for member 'ID' in '* pAMSX', which is of non-class type 'int'
  249.    86 |  TxData[0] = pAMSX->ID[0];
  250.       |                     ^~
  251. ../Src/ltc6803LibF103.cpp:87:37: error: request for member 'ID' in '* pAMSX', which is of non-class type 'int'
  252.    87 |  TxData[1] = ErrorCodeSingle(pAMSX->ID[0]);
  253.       |                                     ^~
  254. ../Src/ltc6803LibF103.cpp:91:40: error: cannot convert 'FlagStatus' to 'GPIO_PinState'
  255.    91 |  HAL_GPIO_WritePin(GPIOB, GPIO_PIN_12, RESET); // Chip select LOW
  256.       |                                        ^~~~~
  257.       |                                        |
  258.       |                                        FlagStatus
  259. In file included from ../Inc/stm32f1xx_hal_conf.h:247,
  260.                  from ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal.h:30,
  261.                  from ../Inc/ltc6803LibF103.hpp:8,
  262.                  from ../Src/ltc6803LibF103.cpp:12:
  263. ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_gpio.h:235:78: note:   initializing argument 3 of 'void HAL_GPIO_WritePin(GPIO_TypeDef*, uint16_t, GPIO_PinState)'
  264.   235 | void HAL_GPIO_WritePin(GPIO_TypeDef *GPIOx, uint16_t GPIO_Pin, GPIO_PinState PinState);
  265.       |                                                                ~~~~~~~~~~~~~~^~~~~~~~
  266. ../Src/ltc6803LibF103.cpp:96:40: error: cannot convert 'FlagStatus' to 'GPIO_PinState'
  267.    96 |  HAL_GPIO_WritePin(GPIOB, GPIO_PIN_12, SET); // Chip select HIGH
  268.       |                                        ^~~
  269.       |                                        |
  270.       |                                        FlagStatus
  271. In file included from ../Inc/stm32f1xx_hal_conf.h:247,
  272.                  from ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal.h:30,
  273.                  from ../Inc/ltc6803LibF103.hpp:8,
  274.                  from ../Src/ltc6803LibF103.cpp:12:
  275. ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_gpio.h:235:78: note:   initializing argument 3 of 'void HAL_GPIO_WritePin(GPIO_TypeDef*, uint16_t, GPIO_PinState)'
  276.   235 | void HAL_GPIO_WritePin(GPIO_TypeDef *GPIOx, uint16_t GPIO_Pin, GPIO_PinState PinState);
  277.       |                                                                ~~~~~~~~~~~~~~^~~~~~~~
  278. ../Src/ltc6803LibF103.cpp:98:13: error: request for member 'CVR' in '* pAMSX', which is of non-class type 'int'
  279.    98 |  if (pAMSX->CVR[0] == 0xFF) { // Check if received data is valid
  280.       |             ^~~
  281. ../Src/ltc6803LibF103.cpp:100:10: error: request for member 'dataNotValid' in '* pAMSX', which is of non-class type 'int'
  282.   100 |   pAMSX->dataNotValid = 1; // Set not valid flag in AMS object
  283.       |          ^~~~~~~~~~~~
  284. ../Src/ltc6803LibF103.cpp:103:10: error: request for member 'dataNotValid' in '* pAMSX', which is of non-class type 'int'
  285.   103 |   pAMSX->dataNotValid = 1; // Set not valid flag in AMS object
  286.       |          ^~~~~~~~~~~~
  287. ../Src/ltc6803LibF103.cpp:105:10: error: request for member 'dataNotValid' in '* pAMSX', which is of non-class type 'int'
  288.   105 |   pAMSX->dataNotValid = 0;  // Reset not valid flag
  289.       |          ^~~~~~~~~~~~
  290. ../Src/ltc6803LibF103.cpp:109:10: error: request for member 'CVR' in '* pAMSX', which is of non-class type 'int'
  291.   109 |   pAMSX->CVR[0] =
  292.       |          ^~~
  293. ../Src/ltc6803LibF103.cpp:111:10: error: request for member 'CVR' in '* pAMSX', which is of non-class type 'int'
  294.   111 |   pAMSX->CVR[0] += (pAMSX->CVR[0] >> 1);
  295.       |          ^~~
  296. make: *** [Src/subdir.mk:32: Src/ltc6803LibF103_old.o] Error 1
  297. make: *** Waiting for unfinished jobs....
  298. ../Src/ltc6803LibF103.cpp:111:28: error: request for member 'CVR' in '* pAMSX', which is of non-class type 'int'
  299.   111 |   pAMSX->CVR[0] += (pAMSX->CVR[0] >> 1);
  300.       |                            ^~~
  301. ../Src/ltc6803LibF103.cpp:112:10: error: request for member 'CVR' in '* pAMSX', which is of non-class type 'int'
  302.   112 |   pAMSX->CVR[0] /= CONVERSION_VALUE;
  303.       |          ^~~
  304. ../Src/ltc6803LibF103.cpp:114:10: error: request for member 'CVR' in '* pAMSX', which is of non-class type 'int'
  305.   114 |   pAMSX->CVR[1] = (unsigned int) ((CVR_AMSX[2] << 4) | (CVR_AMSX[1] >> 4))
  306.       |          ^~~
  307. ../Src/ltc6803LibF103.cpp:116:10: error: request for member 'CVR' in '* pAMSX', which is of non-class type 'int'
  308.   116 |   pAMSX->CVR[1] += (pAMSX->CVR[1] >> 1);
  309.       |          ^~~
  310. ../Src/ltc6803LibF103.cpp:116:28: error: request for member 'CVR' in '* pAMSX', which is of non-class type 'int'
  311.   116 |   pAMSX->CVR[1] += (pAMSX->CVR[1] >> 1);
  312.       |                            ^~~
  313. ../Src/ltc6803LibF103.cpp:117:10: error: request for member 'CVR' in '* pAMSX', which is of non-class type 'int'
  314.   117 |   pAMSX->CVR[1] /= CONVERSION_VALUE;
  315.       |          ^~~
  316. ../Src/ltc6803LibF103.cpp:119:10: error: request for member 'CVR' in '* pAMSX', which is of non-class type 'int'
  317.   119 |   pAMSX->CVR[2] =
  318.       |          ^~~
  319. ../Src/ltc6803LibF103.cpp:121:10: error: request for member 'CVR' in '* pAMSX', which is of non-class type 'int'
  320.   121 |   pAMSX->CVR[2] += (pAMSX->CVR[2] >> 1);
  321.       |          ^~~
  322. ../Src/ltc6803LibF103.cpp:121:28: error: request for member 'CVR' in '* pAMSX', which is of non-class type 'int'
  323.   121 |   pAMSX->CVR[2] += (pAMSX->CVR[2] >> 1);
  324.       |                            ^~~
  325. ../Src/ltc6803LibF103.cpp:122:10: error: request for member 'CVR' in '* pAMSX', which is of non-class type 'int'
  326.   122 |   pAMSX->CVR[2] /= CONVERSION_VALUE;
  327.       |          ^~~
  328. ../Src/ltc6803LibF103.cpp:124:10: error: request for member 'CVR' in '* pAMSX', which is of non-class type 'int'
  329.   124 |   pAMSX->CVR[3] = (unsigned int) ((CVR_AMSX[5] << 4) | (CVR_AMSX[4] >> 4))
  330.       |          ^~~
  331. ../Src/ltc6803LibF103.cpp:126:10: error: request for member 'CVR' in '* pAMSX', which is of non-class type 'int'
  332.   126 |   pAMSX->CVR[3] += (pAMSX->CVR[3] >> 1);
  333.       |          ^~~
  334. ../Src/ltc6803LibF103.cpp:126:28: error: request for member 'CVR' in '* pAMSX', which is of non-class type 'int'
  335.   126 |   pAMSX->CVR[3] += (pAMSX->CVR[3] >> 1);
  336.       |                            ^~~
  337. ../Src/ltc6803LibF103.cpp:127:10: error: request for member 'CVR' in '* pAMSX', which is of non-class type 'int'
  338.   127 |   pAMSX->CVR[3] /= CONVERSION_VALUE;
  339.       |          ^~~
  340. ../Src/ltc6803LibF103.cpp:129:10: error: request for member 'CVR' in '* pAMSX', which is of non-class type 'int'
  341.   129 |   pAMSX->CVR[4] =
  342.       |          ^~~
  343. ../Src/ltc6803LibF103.cpp:131:10: error: request for member 'CVR' in '* pAMSX', which is of non-class type 'int'
  344.   131 |   pAMSX->CVR[4] += (pAMSX->CVR[4] >> 1);
  345.       |          ^~~
  346. ../Src/ltc6803LibF103.cpp:131:28: error: request for member 'CVR' in '* pAMSX', which is of non-class type 'int'
  347.   131 |   pAMSX->CVR[4] += (pAMSX->CVR[4] >> 1);
  348.       |                            ^~~
  349. ../Src/ltc6803LibF103.cpp:132:10: error: request for member 'CVR' in '* pAMSX', which is of non-class type 'int'
  350.   132 |   pAMSX->CVR[4] /= CONVERSION_VALUE;
  351.       |          ^~~
  352. ../Src/ltc6803LibF103.cpp:134:10: error: request for member 'CVR' in '* pAMSX', which is of non-class type 'int'
  353.   134 |   pAMSX->CVR[5] = (unsigned int) ((CVR_AMSX[8] << 4) | (CVR_AMSX[7] >> 4))
  354.       |          ^~~
  355. ../Src/ltc6803LibF103.cpp:136:10: error: request for member 'CVR' in '* pAMSX', which is of non-class type 'int'
  356.   136 |   pAMSX->CVR[5] += (pAMSX->CVR[5] >> 1);
  357.       |          ^~~
  358. ../Src/ltc6803LibF103.cpp:136:28: error: request for member 'CVR' in '* pAMSX', which is of non-class type 'int'
  359.   136 |   pAMSX->CVR[5] += (pAMSX->CVR[5] >> 1);
  360.       |                            ^~~
  361. ../Src/ltc6803LibF103.cpp:137:10: error: request for member 'CVR' in '* pAMSX', which is of non-class type 'int'
  362.   137 |   pAMSX->CVR[5] /= CONVERSION_VALUE;
  363.       |          ^~~
  364. ../Src/ltc6803LibF103.cpp:139:10: error: request for member 'CVR' in '* pAMSX', which is of non-class type 'int'
  365.   139 |   pAMSX->CVR[6] = (unsigned int) (((CVR_AMSX[10] & 0xF) << 8)
  366.       |          ^~~
  367. ../Src/ltc6803LibF103.cpp:141:10: error: request for member 'CVR' in '* pAMSX', which is of non-class type 'int'
  368.   141 |   pAMSX->CVR[6] += (pAMSX->CVR[6] >> 1);
  369.       |          ^~~
  370. ../Src/ltc6803LibF103.cpp:141:28: error: request for member 'CVR' in '* pAMSX', which is of non-class type 'int'
  371.   141 |   pAMSX->CVR[6] += (pAMSX->CVR[6] >> 1);
  372.       |                            ^~~
  373. ../Src/ltc6803LibF103.cpp:142:10: error: request for member 'CVR' in '* pAMSX', which is of non-class type 'int'
  374.   142 |   pAMSX->CVR[6] /= CONVERSION_VALUE;
  375.       |          ^~~
  376. ../Src/ltc6803LibF103.cpp:144:10: error: request for member 'CVR' in '* pAMSX', which is of non-class type 'int'
  377.   144 |   pAMSX->CVR[7] = (unsigned int) ((CVR_AMSX[11] << 4)
  378.       |          ^~~
  379. ../Src/ltc6803LibF103.cpp:146:10: error: request for member 'CVR' in '* pAMSX', which is of non-class type 'int'
  380.   146 |   pAMSX->CVR[7] += (pAMSX->CVR[7] >> 1);
  381.       |          ^~~
  382. ../Src/ltc6803LibF103.cpp:146:28: error: request for member 'CVR' in '* pAMSX', which is of non-class type 'int'
  383.   146 |   pAMSX->CVR[7] += (pAMSX->CVR[7] >> 1);
  384.       |                            ^~~
  385. ../Src/ltc6803LibF103.cpp:147:10: error: request for member 'CVR' in '* pAMSX', which is of non-class type 'int'
  386.   147 |   pAMSX->CVR[7] /= CONVERSION_VALUE;
  387.       |          ^~~
  388. ../Src/ltc6803LibF103.cpp:149:10: error: request for member 'CVR' in '* pAMSX', which is of non-class type 'int'
  389.   149 |   pAMSX->CVR[8] = (unsigned int) (((CVR_AMSX[13] & 0xF) << 8)
  390.       |          ^~~
  391. ../Src/ltc6803LibF103.cpp:151:10: error: request for member 'CVR' in '* pAMSX', which is of non-class type 'int'
  392.   151 |   pAMSX->CVR[8] += (pAMSX->CVR[8] >> 1);
  393.       |          ^~~
  394. ../Src/ltc6803LibF103.cpp:151:28: error: request for member 'CVR' in '* pAMSX', which is of non-class type 'int'
  395.   151 |   pAMSX->CVR[8] += (pAMSX->CVR[8] >> 1);
  396.       |                            ^~~
  397. ../Src/ltc6803LibF103.cpp:152:10: error: request for member 'CVR' in '* pAMSX', which is of non-class type 'int'
  398.   152 |   pAMSX->CVR[8] /= CONVERSION_VALUE;
  399.       |          ^~~
  400. ../Src/ltc6803LibF103.cpp:154:10: error: request for member 'CVR' in '* pAMSX', which is of non-class type 'int'
  401.   154 |   pAMSX->CVR[9] = (unsigned int) ((CVR_AMSX[14] << 4)
  402.       |          ^~~
  403. ../Src/ltc6803LibF103.cpp:156:10: error: request for member 'CVR' in '* pAMSX', which is of non-class type 'int'
  404.   156 |   pAMSX->CVR[9] += (pAMSX->CVR[9] >> 1);
  405.       |          ^~~
  406. ../Src/ltc6803LibF103.cpp:156:28: error: request for member 'CVR' in '* pAMSX', which is of non-class type 'int'
  407.   156 |   pAMSX->CVR[9] += (pAMSX->CVR[9] >> 1);
  408.       |                            ^~~
  409. ../Src/ltc6803LibF103.cpp:157:10: error: request for member 'CVR' in '* pAMSX', which is of non-class type 'int'
  410.   157 |   pAMSX->CVR[9] /= CONVERSION_VALUE;
  411.       |          ^~~
  412. ../Src/ltc6803LibF103.cpp:159:10: error: request for member 'CVR' in '* pAMSX', which is of non-class type 'int'
  413.   159 |   pAMSX->CVR[10] = (unsigned int) (((CVR_AMSX[16] & 0xF) << 8)
  414.       |          ^~~
  415. ../Src/ltc6803LibF103.cpp:161:10: error: request for member 'CVR' in '* pAMSX', which is of non-class type 'int'
  416.   161 |   pAMSX->CVR[10] += (pAMSX->CVR[10] >> 1);
  417.       |          ^~~
  418. ../Src/ltc6803LibF103.cpp:161:29: error: request for member 'CVR' in '* pAMSX', which is of non-class type 'int'
  419.   161 |   pAMSX->CVR[10] += (pAMSX->CVR[10] >> 1);
  420.       |                             ^~~
  421. ../Src/ltc6803LibF103.cpp:162:10: error: request for member 'CVR' in '* pAMSX', which is of non-class type 'int'
  422.   162 |   pAMSX->CVR[10] /= CONVERSION_VALUE;
  423.       |          ^~~
  424. ../Src/ltc6803LibF103.cpp:164:10: error: request for member 'CVR' in '* pAMSX', which is of non-class type 'int'
  425.   164 |   pAMSX->CVR[11] = (unsigned int) ((CVR_AMSX[17] << 4)
  426.       |          ^~~
  427. ../Src/ltc6803LibF103.cpp:166:10: error: request for member 'CVR' in '* pAMSX', which is of non-class type 'int'
  428.   166 |   pAMSX->CVR[11] += (pAMSX->CVR[11] >> 1);
  429.       |          ^~~
  430. ../Src/ltc6803LibF103.cpp:166:29: error: request for member 'CVR' in '* pAMSX', which is of non-class type 'int'
  431.   166 |   pAMSX->CVR[11] += (pAMSX->CVR[11] >> 1);
  432.       |                             ^~~
  433. ../Src/ltc6803LibF103.cpp:167:10: error: request for member 'CVR' in '* pAMSX', which is of non-class type 'int'
  434.   167 |   pAMSX->CVR[11] /= CONVERSION_VALUE;
  435.       |          ^~~
  436. ../Src/ltc6803LibF103.cpp:169:10: error: request for member 'v_cell_max' in '* pAMSX', which is of non-class type 'int'
  437.   169 |   pAMSX->v_cell_max = 0x0000;    // Reset u_cell maximum
  438.       |          ^~~~~~~~~~
  439. ../Src/ltc6803LibF103.cpp:170:10: error: request for member 'v_cell_min' in '* pAMSX', which is of non-class type 'int'
  440.   170 |   pAMSX->v_cell_min = 0xFFFF;    // Set u_cell minimum
  441.       |          ^~~~~~~~~~
  442. ../Src/ltc6803LibF103.cpp:171:10: error: request for member 'v_stack' in '* pAMSX', which is of non-class type 'int'
  443.   171 |   pAMSX->v_stack = 0x0000;     // Reset sumvoltage
  444.       |          ^~~~~~~
  445. ../Src/ltc6803LibF103.cpp:173:30: error: request for member 'NumOfCells' in '* pAMSX', which is of non-class type 'int'
  446.   173 |   for (int i = 0; i < pAMSX->NumOfCells; i++) {
  447.       |                              ^~~~~~~~~~
  448. ../Src/ltc6803LibF103.cpp:174:11: error: request for member 'v_stack' in '* pAMSX', which is of non-class type 'int'
  449.   174 |    pAMSX->v_stack += pAMSX->CVR[i];
  450.       |           ^~~~~~~
  451. ../Src/ltc6803LibF103.cpp:174:29: error: request for member 'CVR' in '* pAMSX', which is of non-class type 'int'
  452.   174 |    pAMSX->v_stack += pAMSX->CVR[i];
  453.       |                             ^~~
  454. ../Src/ltc6803LibF103.cpp:175:15: error: request for member 'CVR' in '* pAMSX', which is of non-class type 'int'
  455.   175 |    if (pAMSX->CVR[i] > pAMSX->v_cell_max) {
  456.       |               ^~~
  457. ../Src/ltc6803LibF103.cpp:175:31: error: request for member 'v_cell_max' in '* pAMSX', which is of non-class type 'int'
  458.   175 |    if (pAMSX->CVR[i] > pAMSX->v_cell_max) {
  459.       |                               ^~~~~~~~~~
  460. ../Src/ltc6803LibF103.cpp:176:12: error: request for member 'v_cell_max' in '* pAMSX', which is of non-class type 'int'
  461.   176 |     pAMSX->v_cell_max = pAMSX->CVR[i];
  462.       |            ^~~~~~~~~~
  463. ../Src/ltc6803LibF103.cpp:176:32: error: request for member 'CVR' in '* pAMSX', which is of non-class type 'int'
  464.   176 |     pAMSX->v_cell_max = pAMSX->CVR[i];
  465.       |                                ^~~
  466. ../Src/ltc6803LibF103.cpp:178:15: error: request for member 'CVR' in '* pAMSX', which is of non-class type 'int'
  467.   178 |    if (pAMSX->CVR[i] < pAMSX->v_cell_min) {
  468.       |               ^~~
  469. ../Src/ltc6803LibF103.cpp:178:31: error: request for member 'v_cell_min' in '* pAMSX', which is of non-class type 'int'
  470.   178 |    if (pAMSX->CVR[i] < pAMSX->v_cell_min) {
  471.       |                               ^~~~~~~~~~
  472. ../Src/ltc6803LibF103.cpp:179:12: error: request for member 'v_cell_min' in '* pAMSX', which is of non-class type 'int'
  473.   179 |     pAMSX->v_cell_min = pAMSX->CVR[i];
  474.       |            ^~~~~~~~~~
  475. ../Src/ltc6803LibF103.cpp:179:32: error: request for member 'CVR' in '* pAMSX', which is of non-class type 'int'
  476.   179 |     pAMSX->v_cell_min = pAMSX->CVR[i];
  477.       |                                ^~~
  478. ../Src/ltc6803LibF103.cpp:182:10: error: request for member 'v_cell_delta' in '* pAMSX', which is of non-class type 'int'
  479.   182 |   pAMSX->v_cell_delta = (pAMSX->v_cell_max - pAMSX->v_cell_min);
  480.       |          ^~~~~~~~~~~~
  481. ../Src/ltc6803LibF103.cpp:182:33: error: request for member 'v_cell_max' in '* pAMSX', which is of non-class type 'int'
  482.   182 |   pAMSX->v_cell_delta = (pAMSX->v_cell_max - pAMSX->v_cell_min);
  483.       |                                 ^~~~~~~~~~
  484. ../Src/ltc6803LibF103.cpp:182:53: error: request for member 'v_cell_min' in '* pAMSX', which is of non-class type 'int'
  485.   182 |   pAMSX->v_cell_delta = (pAMSX->v_cell_max - pAMSX->v_cell_min);
  486.       |                                                     ^~~~~~~~~~
  487. ../Src/ltc6803LibF103.cpp:183:10: error: request for member 'v_stack_drift' in '* pAMSX', which is of non-class type 'int'
  488.   183 |   pAMSX->v_stack_drift = (pAMSX->v_stack_drift + pAMSX->v_stack) / 2; // Set  delta
  489.       |          ^~~~~~~~~~~~~
  490. ../Src/ltc6803LibF103.cpp:183:34: error: request for member 'v_stack_drift' in '* pAMSX', which is of non-class type 'int'
  491.   183 |   pAMSX->v_stack_drift = (pAMSX->v_stack_drift + pAMSX->v_stack) / 2; // Set  delta
  492.       |                                  ^~~~~~~~~~~~~
  493. ../Src/ltc6803LibF103.cpp:183:57: error: request for member 'v_stack' in '* pAMSX', which is of non-class type 'int'
  494.   183 |   pAMSX->v_stack_drift = (pAMSX->v_stack_drift + pAMSX->v_stack) / 2; // Set  delta
  495.       |                                                         ^~~~~~~
  496. ../Src/ltc6803LibF103.cpp: In function 'uint8_t ErrorCode(uint8_t*, uint8_t)':
  497. ../Src/ltc6803LibF103.cpp:203:21: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses]
  498.   203 |    PEC = (PEC << 1) & 0xF8 | IN_0 | (IN_1 << 1) | (IN_2 << 2);
  499.       |          ~~~~~~~~~~~^~~~~~
  500. ../Src/ltc6803LibF103.cpp: In function 'uint8_t ErrorCodeSingle(uint8_t)':
  501. ../Src/ltc6803LibF103.cpp:223:20: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses]
  502.   223 |   PEC = (PEC << 1) & 0xF8 | A | (B << 1) | (C << 2);
  503.       |         ~~~~~~~~~~~^~~~~~
  504. ../Src/ltc6803LibF103.cpp: At global scope:
  505. ../Src/ltc6803LibF103.cpp:233:44: error: 'LTC6803_AMS' has not been declared
  506.   233 | void structWriter(SPI_HandleTypeDef *hspi, LTC6803_AMS *pAMSX) {
  507.       |                                            ^~~~~~~~~~~
  508. ../Src/ltc6803LibF103.cpp: In function 'void structWriter(SPI_HandleTypeDef*, int*)':
  509. ../Src/ltc6803LibF103.cpp:237:30: error: request for member 'CFGR' in '* pAMSX', which is of non-class type 'int'
  510.   237 |   pecbyte = ErrorCode(pAMSX->CFGR, 6); // Store PEC Data
  511.       |                              ^~~~
  512. ../Src/ltc6803LibF103.cpp:239:22: error: request for member 'ID' in '* pAMSX', which is of non-class type 'int'
  513.   239 |   TxData[0] = pAMSX->ID[0];
  514.       |                      ^~
  515. ../Src/ltc6803LibF103.cpp:240:38: error: request for member 'ID' in '* pAMSX', which is of non-class type 'int'
  516.   240 |   TxData[1] = ErrorCodeSingle(pAMSX->ID[0]); // Store PEC for ID
  517.       |                                      ^~
  518. ../Src/ltc6803LibF103.cpp:241:15: error: 'WRCFG' was not declared in this scope
  519.   241 |   TxData[2] = WRCFG;
  520.       |               ^~~~~
  521. ../Src/ltc6803LibF103.cpp:244:41: error: cannot convert 'FlagStatus' to 'GPIO_PinState'
  522.   244 |   HAL_GPIO_WritePin(GPIOB, GPIO_PIN_12, RESET); // Chip select LOW
  523.       |                                         ^~~~~
  524.       |                                         |
  525.       |                                         FlagStatus
  526. In file included from ../Inc/stm32f1xx_hal_conf.h:247,
  527.                  from ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal.h:30,
  528.                  from ../Inc/ltc6803LibF103.hpp:8,
  529.                  from ../Src/ltc6803LibF103.cpp:12:
  530. ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_gpio.h:235:78: note:   initializing argument 3 of 'void HAL_GPIO_WritePin(GPIO_TypeDef*, uint16_t, GPIO_PinState)'
  531.   235 | void HAL_GPIO_WritePin(GPIO_TypeDef *GPIOx, uint16_t GPIO_Pin, GPIO_PinState PinState);
  532.       |                                                                ~~~~~~~~~~~~~~^~~~~~~~
  533. ../Src/ltc6803LibF103.cpp:246:33: error: request for member 'CFGR' in '* pAMSX', which is of non-class type 'int'
  534.   246 |   HAL_SPI_Transmit(hspi, pAMSX->CFGR, 6, 100);
  535.       |                                 ^~~~
  536. ../Src/ltc6803LibF103.cpp:250:41: error: cannot convert 'FlagStatus' to 'GPIO_PinState'
  537.   250 |   HAL_GPIO_WritePin(GPIOB, GPIO_PIN_12, SET);  // Chip Select HIGH
  538.       |                                         ^~~
  539.       |                                         |
  540.       |                                         FlagStatus
  541. In file included from ../Inc/stm32f1xx_hal_conf.h:247,
  542.                  from ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal.h:30,
  543.                  from ../Inc/ltc6803LibF103.hpp:8,
  544.                  from ../Src/ltc6803LibF103.cpp:12:
  545. ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_gpio.h:235:78: note:   initializing argument 3 of 'void HAL_GPIO_WritePin(GPIO_TypeDef*, uint16_t, GPIO_PinState)'
  546.   235 | void HAL_GPIO_WritePin(GPIO_TypeDef *GPIOx, uint16_t GPIO_Pin, GPIO_PinState PinState);
  547.       |                                                                ~~~~~~~~~~~~~~^~~~~~~~
  548. ../Src/ltc6803LibF103.cpp:253:22: error: request for member 'ID' in '* pAMSX', which is of non-class type 'int'
  549.   253 |   TxData[0] = pAMSX->ID[0];
  550.       |                      ^~
  551. ../Src/ltc6803LibF103.cpp:254:38: error: request for member 'ID' in '* pAMSX', which is of non-class type 'int'
  552.   254 |   TxData[1] = ErrorCodeSingle(pAMSX->ID[0]); // Store PEC for ID
  553.       |                                      ^~
  554. ../Src/ltc6803LibF103.cpp:255:15: error: 'RDCFG' was not declared in this scope
  555.   255 |   TxData[2] = RDCFG;
  556.       |               ^~~~~
  557. ../Src/ltc6803LibF103.cpp:258:41: error: cannot convert 'FlagStatus' to 'GPIO_PinState'
  558.   258 |   HAL_GPIO_WritePin(GPIOB, GPIO_PIN_12, RESET); // Chip select LOW
  559.       |                                         ^~~~~
  560.       |                                         |
  561.       |                                         FlagStatus
  562. In file included from ../Inc/stm32f1xx_hal_conf.h:247,
  563.                  from ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal.h:30,
  564.                  from ../Inc/ltc6803LibF103.hpp:8,
  565.                  from ../Src/ltc6803LibF103.cpp:12:
  566. ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_gpio.h:235:78: note:   initializing argument 3 of 'void HAL_GPIO_WritePin(GPIO_TypeDef*, uint16_t, GPIO_PinState)'
  567.   235 | void HAL_GPIO_WritePin(GPIO_TypeDef *GPIOx, uint16_t GPIO_Pin, GPIO_PinState PinState);
  568.       |                                                                ~~~~~~~~~~~~~~^~~~~~~~
  569. ../Src/ltc6803LibF103.cpp:264:41: error: cannot convert 'FlagStatus' to 'GPIO_PinState'
  570.   264 |   HAL_GPIO_WritePin(GPIOB, GPIO_PIN_12, SET);  // Chip Select HIGH
  571.       |                                         ^~~
  572.       |                                         |
  573.       |                                         FlagStatus
  574. In file included from ../Inc/stm32f1xx_hal_conf.h:247,
  575.                  from ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal.h:30,
  576.                  from ../Inc/ltc6803LibF103.hpp:8,
  577.                  from ../Src/ltc6803LibF103.cpp:12:
  578. ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_gpio.h:235:78: note:   initializing argument 3 of 'void HAL_GPIO_WritePin(GPIO_TypeDef*, uint16_t, GPIO_PinState)'
  579.   235 | void HAL_GPIO_WritePin(GPIO_TypeDef *GPIOx, uint16_t GPIO_Pin, GPIO_PinState PinState);
  580.       |                                                                ~~~~~~~~~~~~~~^~~~~~~~
  581. ../Src/ltc6803LibF103.cpp:267:44: error: request for member 'CFGR' in '* pAMSX', which is of non-class type 'int'
  582.   267 |    && ((RxData[0] & 0b00011111) != (pAMSX->CFGR[0] & 0b00011111))
  583.       |                                            ^~~~
  584. ../Src/ltc6803LibF103.cpp:268:28: error: request for member 'CFGR' in '* pAMSX', which is of non-class type 'int'
  585.   268 |    && (RxData[1] != pAMSX->CFGR[1]) && (RxData[2] != pAMSX->CFGR[2])
  586.       |                            ^~~~
  587. ../Src/ltc6803LibF103.cpp:268:61: error: request for member 'CFGR' in '* pAMSX', which is of non-class type 'int'
  588.   268 |    && (RxData[1] != pAMSX->CFGR[1]) && (RxData[2] != pAMSX->CFGR[2])
  589.       |                                                             ^~~~
  590. ../Src/ltc6803LibF103.cpp:269:28: error: request for member 'CFGR' in '* pAMSX', which is of non-class type 'int'
  591.   269 |    && (RxData[3] != pAMSX->CFGR[3]) && (RxData[4] != pAMSX->CFGR[4])
  592.       |                            ^~~~
  593. ../Src/ltc6803LibF103.cpp:269:61: error: request for member 'CFGR' in '* pAMSX', which is of non-class type 'int'
  594.   269 |    && (RxData[3] != pAMSX->CFGR[3]) && (RxData[4] != pAMSX->CFGR[4])
  595.       |                                                             ^~~~
  596. ../Src/ltc6803LibF103.cpp:270:28: error: request for member 'CFGR' in '* pAMSX', which is of non-class type 'int'
  597.   270 |    && (RxData[5] != pAMSX->CFGR[5]));
  598.       |                            ^~~~
  599. ../Src/ltc6803LibF103.cpp: At global scope:
  600. ../Src/ltc6803LibF103.cpp:279:20: error: variable or field 'setCFGRstruct' declared void
  601.   279 | void setCFGRstruct(AMS_CFGR *pCFGRstruct, LTC6803_AMS *pAMSX) {
  602.       |                    ^~~~~~~~
  603. ../Src/ltc6803LibF103.cpp:279:20: error: 'AMS_CFGR' was not declared in this scope
  604. ../Src/ltc6803LibF103.cpp:279:30: error: 'pCFGRstruct' was not declared in this scope
  605.   279 | void setCFGRstruct(AMS_CFGR *pCFGRstruct, LTC6803_AMS *pAMSX) {
  606.       |                              ^~~~~~~~~~~
  607. ../Src/ltc6803LibF103.cpp:279:43: error: 'LTC6803_AMS' was not declared in this scope; did you mean 'LTC6803'?
  608.   279 | void setCFGRstruct(AMS_CFGR *pCFGRstruct, LTC6803_AMS *pAMSX) {
  609.       |                                           ^~~~~~~~~~~
  610.       |                                           LTC6803
  611. ../Src/ltc6803LibF103.cpp:279:56: error: 'pAMSX' was not declared in this scope
  612.   279 | void setCFGRstruct(AMS_CFGR *pCFGRstruct, LTC6803_AMS *pAMSX) {
  613.       |                                                        ^~~~~
  614. make: *** [Src/subdir.mk:32: Src/ltc6803LibF103.o] Error 1
  615. "make -j8 all" terminated with exit code 2. Build might be incomplete.
  616.  
  617. 14:37:50 Build Failed. 136 errors, 4 warnings. (took 433ms)
  618.  
  619.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement