Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 14:37:49 **** Incremental Build of configuration Debug for project ltc6803LibF103 ****
- make -j8 all
- 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"
- 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"
- ../Src/ltc6803LibF103_old.cpp: In function 'uint8_t selfTest(SPI_HandleTypeDef*, LTC6803_AMS*)':
- ../Src/ltc6803LibF103_old.cpp:39:40: error: cannot convert 'FlagStatus' to 'GPIO_PinState'
- 39 | HAL_GPIO_WritePin(GPIOB, GPIO_PIN_12, RESET); // Chip select LOW
- | ^~~~~
- | |
- | FlagStatus
- In file included from ../Inc/stm32f1xx_hal_conf.h:247,
- from ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal.h:30,
- from ../Inc/ltc6803LibF103_old.hpp:8,
- from ../Src/ltc6803LibF103_old.cpp:12:
- ../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)'
- 235 | void HAL_GPIO_WritePin(GPIO_TypeDef *GPIOx, uint16_t GPIO_Pin, GPIO_PinState PinState);
- | ~~~~~~~~~~~~~~^~~~~~~~
- In file included from ../Src/ltc6803LibF103.cpp:12:
- ../Inc/ltc6803LibF103.hpp:22:43: error: 'LTC6803_AMS' has not been declared
- 22 | void measureCVR(SPI_HandleTypeDef *hspi, LTC6803_AMS *pAMSX,
- | ^~~~~~~~~~~
- ../Inc/ltc6803LibF103.hpp:23:4: error: 'MEAS_CV_Ident' has not been declared
- 23 | MEAS_CV_Ident MEAStyp, uint8_t CELLS);
- | ^~~~~~~~~~~~~
- ../Inc/ltc6803LibF103.hpp:24:50: error: 'LTC6803_AMS' has not been declared
- 24 | void readAndProcessCVR(SPI_HandleTypeDef *hspi, LTC6803_AMS *pAMSX,
- | ^~~~~~~~~~~
- ../Src/ltc6803LibF103_old.cpp:42:40: error: cannot convert 'FlagStatus' to 'GPIO_PinState'
- 42 | HAL_GPIO_WritePin(GPIOB, GPIO_PIN_12, SET); // Chip select HIGH
- | ^~~
- | |
- | FlagStatus
- ../Inc/ltc6803LibF103.hpp:25:4: error: 'Read_CV_Ident' has not been declared
- 25 | Read_CV_Ident READtyp);
- | ^~~~~~~~~~~~~
- ../Inc/ltc6803LibF103.hpp:26:45: error: 'LTC6803_AMS' has not been declared
- 26 | void structWriter(SPI_HandleTypeDef *hspi, LTC6803_AMS *pAMSX);
- | ^~~~~~~~~~~
- In file included from ../Inc/stm32f1xx_hal_conf.h:247,
- from ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal.h:30,
- from ../Inc/ltc6803LibF103_old.hpp:8,
- from ../Src/ltc6803LibF103_old.cpp:12:
- ../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)'
- 235 | void HAL_GPIO_WritePin(GPIO_TypeDef *GPIOx, uint16_t GPIO_Pin, GPIO_PinState PinState);
- | ~~~~~~~~~~~~~~^~~~~~~~
- ../Inc/ltc6803LibF103.hpp:27:21: error: 'AMS_CFGR' has not been declared
- 27 | void setCFGRstruct(AMS_CFGR *pCFGRstruct, LTC6803_AMS *pAMSX);
- | ^~~~~~~~
- ../Inc/ltc6803LibF103.hpp:27:44: error: 'LTC6803_AMS' has not been declared
- 27 | void setCFGRstruct(AMS_CFGR *pCFGRstruct, LTC6803_AMS *pAMSX);
- | ^~~~~~~~~~~
- ../Src/ltc6803LibF103_old.cpp: In function 'void measureCVR(SPI_HandleTypeDef*, LTC6803_AMS*, MEAS_CV_Ident, STCVAD)':
- ../Src/ltc6803LibF103_old.cpp:68:40: error: cannot convert 'FlagStatus' to 'GPIO_PinState'
- 68 | HAL_GPIO_WritePin(GPIOB, GPIO_PIN_12, RESET); // Chip select LOW
- | ^~~~~
- | |
- | FlagStatus
- In file included from ../Inc/stm32f1xx_hal_conf.h:247,
- from ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal.h:30,
- from ../Inc/ltc6803LibF103_old.hpp:8,
- from ../Src/ltc6803LibF103_old.cpp:12:
- ../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)'
- 235 | void HAL_GPIO_WritePin(GPIO_TypeDef *GPIOx, uint16_t GPIO_Pin, GPIO_PinState PinState);
- | ~~~~~~~~~~~~~~^~~~~~~~
- ../Src/ltc6803LibF103.cpp: In member function 'uint8_t LTC6803::selfTest()':
- ../Src/ltc6803LibF103.cpp:34:14: error: 'pAMSX' was not declared in this scope
- 34 | TxData[0] = pAMSX->ID[0];
- | ^~~~~
- ../Src/ltc6803LibF103_old.cpp:71:40: error: cannot convert 'FlagStatus' to 'GPIO_PinState'
- 71 | HAL_GPIO_WritePin(GPIOB, GPIO_PIN_12, SET); // Chip select HIGH
- | ^~~
- | |
- | FlagStatus
- In file included from ../Inc/stm32f1xx_hal_conf.h:247,
- from ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal.h:30,
- from ../Inc/ltc6803LibF103_old.hpp:8,
- from ../Src/ltc6803LibF103_old.cpp:12:
- ../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)'
- 235 | void HAL_GPIO_WritePin(GPIO_TypeDef *GPIOx, uint16_t GPIO_Pin, GPIO_PinState PinState);
- | ~~~~~~~~~~~~~~^~~~~~~~
- ../Src/ltc6803LibF103.cpp:36:14: error: 'CV' was not declared in this scope
- 36 | TxData[2] = CV ^ CV_TEST1;
- | ^~
- ../Src/ltc6803LibF103_old.cpp: In function 'void readAndProcessCVR(SPI_HandleTypeDef*, LTC6803_AMS*, Read_CV_Ident)':
- ../Src/ltc6803LibF103_old.cpp:91:40: error: cannot convert 'FlagStatus' to 'GPIO_PinState'
- 91 | HAL_GPIO_WritePin(GPIOB, GPIO_PIN_12, RESET); // Chip select LOW
- | ^~~~~
- | |
- | FlagStatus
- In file included from ../Inc/stm32f1xx_hal_conf.h:247,
- from ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal.h:30,
- from ../Inc/ltc6803LibF103_old.hpp:8,
- from ../Src/ltc6803LibF103_old.cpp:12:
- ../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)'
- 235 | void HAL_GPIO_WritePin(GPIO_TypeDef *GPIOx, uint16_t GPIO_Pin, GPIO_PinState PinState);
- | ~~~~~~~~~~~~~~^~~~~~~~
- ../Src/ltc6803LibF103_old.cpp:96:40: error: cannot convert 'FlagStatus' to 'GPIO_PinState'
- 96 | HAL_GPIO_WritePin(GPIOB, GPIO_PIN_12, SET); // Chip select HIGH
- | ^~~
- | |
- | FlagStatus
- In file included from ../Inc/stm32f1xx_hal_conf.h:247,
- from ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal.h:30,
- from ../Inc/ltc6803LibF103_old.hpp:8,
- from ../Src/ltc6803LibF103_old.cpp:12:
- ../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)'
- 235 | void HAL_GPIO_WritePin(GPIO_TypeDef *GPIOx, uint16_t GPIO_Pin, GPIO_PinState PinState);
- | ~~~~~~~~~~~~~~^~~~~~~~
- ../Src/ltc6803LibF103.cpp:36:19: error: 'CV_TEST1' was not declared in this scope
- 36 | TxData[2] = CV ^ CV_TEST1;
- | ^~~~~~~~
- ../Src/ltc6803LibF103.cpp:39:40: error: cannot convert 'FlagStatus' to 'GPIO_PinState'
- 39 | HAL_GPIO_WritePin(GPIOB, GPIO_PIN_12, RESET); // Chip select LOW
- | ^~~~~
- | |
- | FlagStatus
- In file included from ../Inc/stm32f1xx_hal_conf.h:247,
- from ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal.h:30,
- from ../Inc/ltc6803LibF103.hpp:8,
- from ../Src/ltc6803LibF103.cpp:12:
- ../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)'
- 235 | void HAL_GPIO_WritePin(GPIO_TypeDef *GPIOx, uint16_t GPIO_Pin, GPIO_PinState PinState);
- | ~~~~~~~~~~~~~~^~~~~~~~
- ../Src/ltc6803LibF103_old.cpp: In function 'uint8_t ErrorCode(uint8_t*, uint8_t)':
- ../Src/ltc6803LibF103_old.cpp:203:21: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses]
- 203 | PEC = (PEC << 1) & 0xF8 | IN_0 | (IN_1 << 1) | (IN_2 << 2);
- | ~~~~~~~~~~~^~~~~~
- ../Src/ltc6803LibF103_old.cpp: In function 'uint8_t ErrorCodeSingle(uint8_t)':
- ../Src/ltc6803LibF103_old.cpp:223:20: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses]
- 223 | PEC = (PEC << 1) & 0xF8 | A | (B << 1) | (C << 2);
- | ~~~~~~~~~~~^~~~~~
- ../Src/ltc6803LibF103.cpp:40:19: error: 'hspi' was not declared in this scope
- 40 | HAL_SPI_Transmit(hspi, TxData, 4, 100); // ask for conversion
- | ^~~~
- ../Src/ltc6803LibF103.cpp:42:40: error: cannot convert 'FlagStatus' to 'GPIO_PinState'
- 42 | HAL_GPIO_WritePin(GPIOB, GPIO_PIN_12, SET); // Chip select HIGH
- | ^~~
- | |
- | FlagStatus
- In file included from ../Inc/stm32f1xx_hal_conf.h:247,
- from ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal.h:30,
- from ../Inc/ltc6803LibF103.hpp:8,
- from ../Src/ltc6803LibF103.cpp:12:
- ../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)'
- 235 | void HAL_GPIO_WritePin(GPIO_TypeDef *GPIOx, uint16_t GPIO_Pin, GPIO_PinState PinState);
- | ~~~~~~~~~~~~~~^~~~~~~~
- ../Src/ltc6803LibF103_old.cpp: In function 'void structWriter(SPI_HandleTypeDef*, LTC6803_AMS*)':
- ../Src/ltc6803LibF103_old.cpp:244:41: error: cannot convert 'FlagStatus' to 'GPIO_PinState'
- 244 | HAL_GPIO_WritePin(GPIOB, GPIO_PIN_12, RESET); // Chip select LOW
- | ^~~~~
- | |
- | FlagStatus
- In file included from ../Inc/stm32f1xx_hal_conf.h:247,
- from ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal.h:30,
- from ../Inc/ltc6803LibF103_old.hpp:8,
- from ../Src/ltc6803LibF103_old.cpp:12:
- ../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)'
- 235 | void HAL_GPIO_WritePin(GPIO_TypeDef *GPIOx, uint16_t GPIO_Pin, GPIO_PinState PinState);
- | ~~~~~~~~~~~~~~^~~~~~~~
- ../Src/ltc6803LibF103.cpp:44:33: error: 'RDCV' was not declared in this scope
- 44 | readAndProcessCVR(hspi, pAMSX, RDCV);
- | ^~~~
- ../Src/ltc6803LibF103_old.cpp:250:41: error: cannot convert 'FlagStatus' to 'GPIO_PinState'
- 250 | HAL_GPIO_WritePin(GPIOB, GPIO_PIN_12, SET); // Chip Select HIGH
- | ^~~
- | |
- | FlagStatus
- ../Src/ltc6803LibF103.cpp: At global scope:
- ../Src/ltc6803LibF103.cpp:60:42: error: 'LTC6803_AMS' has not been declared
- 60 | void measureCVR(SPI_HandleTypeDef *hspi, LTC6803_AMS *pAMSX,
- | ^~~~~~~~~~~
- ../Src/ltc6803LibF103.cpp:61:3: error: 'MEAS_CV_Ident' has not been declared
- 61 | MEAS_CV_Ident MEAStyp, STCVAD CELLS) {
- | ^~~~~~~~~~~~~
- In file included from ../Inc/stm32f1xx_hal_conf.h:247,
- from ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal.h:30,
- from ../Inc/ltc6803LibF103_old.hpp:8,
- from ../Src/ltc6803LibF103_old.cpp:12:
- ../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)'
- 235 | void HAL_GPIO_WritePin(GPIO_TypeDef *GPIOx, uint16_t GPIO_Pin, GPIO_PinState PinState);
- | ~~~~~~~~~~~~~~^~~~~~~~
- ../Src/ltc6803LibF103.cpp:61:26: error: 'STCVAD' has not been declared
- 61 | MEAS_CV_Ident MEAStyp, STCVAD CELLS) {
- | ^~~~~~
- ../Src/ltc6803LibF103_old.cpp:258:41: error: cannot convert 'FlagStatus' to 'GPIO_PinState'
- 258 | HAL_GPIO_WritePin(GPIOB, GPIO_PIN_12, RESET); // Chip select LOW
- | ^~~~~
- | |
- | FlagStatus
- ../Src/ltc6803LibF103.cpp: In function 'void measureCVR(SPI_HandleTypeDef*, int*, int, int)':
- ../Src/ltc6803LibF103.cpp:63:21: error: request for member 'ID' in '* pAMSX', which is of non-class type 'int'
- 63 | TxData[0] = pAMSX->ID[0];
- | ^~
- In file included from ../Inc/stm32f1xx_hal_conf.h:247,
- from ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal.h:30,
- from ../Inc/ltc6803LibF103_old.hpp:8,
- from ../Src/ltc6803LibF103_old.cpp:12:
- ../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)'
- 235 | void HAL_GPIO_WritePin(GPIO_TypeDef *GPIOx, uint16_t GPIO_Pin, GPIO_PinState PinState);
- | ~~~~~~~~~~~~~~^~~~~~~~
- ../Src/ltc6803LibF103.cpp:64:37: error: request for member 'ID' in '* pAMSX', which is of non-class type 'int'
- 64 | TxData[1] = ErrorCodeSingle(pAMSX->ID[0]);
- | ^~
- ../Src/ltc6803LibF103_old.cpp:264:41: error: cannot convert 'FlagStatus' to 'GPIO_PinState'
- 264 | HAL_GPIO_WritePin(GPIOB, GPIO_PIN_12, SET); // Chip Select HIGH
- | ^~~
- | |
- | FlagStatus
- ../Src/ltc6803LibF103.cpp:68:40: error: cannot convert 'FlagStatus' to 'GPIO_PinState'
- 68 | HAL_GPIO_WritePin(GPIOB, GPIO_PIN_12, RESET); // Chip select LOW
- | ^~~~~
- | |
- | FlagStatus
- In file included from ../Inc/stm32f1xx_hal_conf.h:247,
- from ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal.h:30,
- from ../Inc/ltc6803LibF103_old.hpp:8,
- from ../Src/ltc6803LibF103_old.cpp:12:
- ../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)'
- 235 | void HAL_GPIO_WritePin(GPIO_TypeDef *GPIOx, uint16_t GPIO_Pin, GPIO_PinState PinState);
- | ~~~~~~~~~~~~~~^~~~~~~~
- In file included from ../Inc/stm32f1xx_hal_conf.h:247,
- from ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal.h:30,
- from ../Inc/ltc6803LibF103.hpp:8,
- from ../Src/ltc6803LibF103.cpp:12:
- ../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)'
- 235 | void HAL_GPIO_WritePin(GPIO_TypeDef *GPIOx, uint16_t GPIO_Pin, GPIO_PinState PinState);
- | ~~~~~~~~~~~~~~^~~~~~~~
- ../Src/ltc6803LibF103.cpp:71:40: error: cannot convert 'FlagStatus' to 'GPIO_PinState'
- 71 | HAL_GPIO_WritePin(GPIOB, GPIO_PIN_12, SET); // Chip select HIGH
- | ^~~
- | |
- | FlagStatus
- In file included from ../Inc/stm32f1xx_hal_conf.h:247,
- from ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal.h:30,
- from ../Inc/ltc6803LibF103.hpp:8,
- from ../Src/ltc6803LibF103.cpp:12:
- ../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)'
- 235 | void HAL_GPIO_WritePin(GPIO_TypeDef *GPIOx, uint16_t GPIO_Pin, GPIO_PinState PinState);
- | ~~~~~~~~~~~~~~^~~~~~~~
- ../Src/ltc6803LibF103.cpp: At global scope:
- ../Src/ltc6803LibF103.cpp:80:49: error: 'LTC6803_AMS' has not been declared
- 80 | void readAndProcessCVR(SPI_HandleTypeDef *hspi, LTC6803_AMS *pAMSX,
- | ^~~~~~~~~~~
- ../Src/ltc6803LibF103.cpp:81:3: error: 'Read_CV_Ident' has not been declared
- 81 | Read_CV_Ident READtyp) {
- | ^~~~~~~~~~~~~
- ../Src/ltc6803LibF103.cpp: In function 'void readAndProcessCVR(SPI_HandleTypeDef*, int*, int)':
- ../Src/ltc6803LibF103.cpp:86:21: error: request for member 'ID' in '* pAMSX', which is of non-class type 'int'
- 86 | TxData[0] = pAMSX->ID[0];
- | ^~
- ../Src/ltc6803LibF103.cpp:87:37: error: request for member 'ID' in '* pAMSX', which is of non-class type 'int'
- 87 | TxData[1] = ErrorCodeSingle(pAMSX->ID[0]);
- | ^~
- ../Src/ltc6803LibF103.cpp:91:40: error: cannot convert 'FlagStatus' to 'GPIO_PinState'
- 91 | HAL_GPIO_WritePin(GPIOB, GPIO_PIN_12, RESET); // Chip select LOW
- | ^~~~~
- | |
- | FlagStatus
- In file included from ../Inc/stm32f1xx_hal_conf.h:247,
- from ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal.h:30,
- from ../Inc/ltc6803LibF103.hpp:8,
- from ../Src/ltc6803LibF103.cpp:12:
- ../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)'
- 235 | void HAL_GPIO_WritePin(GPIO_TypeDef *GPIOx, uint16_t GPIO_Pin, GPIO_PinState PinState);
- | ~~~~~~~~~~~~~~^~~~~~~~
- ../Src/ltc6803LibF103.cpp:96:40: error: cannot convert 'FlagStatus' to 'GPIO_PinState'
- 96 | HAL_GPIO_WritePin(GPIOB, GPIO_PIN_12, SET); // Chip select HIGH
- | ^~~
- | |
- | FlagStatus
- In file included from ../Inc/stm32f1xx_hal_conf.h:247,
- from ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal.h:30,
- from ../Inc/ltc6803LibF103.hpp:8,
- from ../Src/ltc6803LibF103.cpp:12:
- ../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)'
- 235 | void HAL_GPIO_WritePin(GPIO_TypeDef *GPIOx, uint16_t GPIO_Pin, GPIO_PinState PinState);
- | ~~~~~~~~~~~~~~^~~~~~~~
- ../Src/ltc6803LibF103.cpp:98:13: error: request for member 'CVR' in '* pAMSX', which is of non-class type 'int'
- 98 | if (pAMSX->CVR[0] == 0xFF) { // Check if received data is valid
- | ^~~
- ../Src/ltc6803LibF103.cpp:100:10: error: request for member 'dataNotValid' in '* pAMSX', which is of non-class type 'int'
- 100 | pAMSX->dataNotValid = 1; // Set not valid flag in AMS object
- | ^~~~~~~~~~~~
- ../Src/ltc6803LibF103.cpp:103:10: error: request for member 'dataNotValid' in '* pAMSX', which is of non-class type 'int'
- 103 | pAMSX->dataNotValid = 1; // Set not valid flag in AMS object
- | ^~~~~~~~~~~~
- ../Src/ltc6803LibF103.cpp:105:10: error: request for member 'dataNotValid' in '* pAMSX', which is of non-class type 'int'
- 105 | pAMSX->dataNotValid = 0; // Reset not valid flag
- | ^~~~~~~~~~~~
- ../Src/ltc6803LibF103.cpp:109:10: error: request for member 'CVR' in '* pAMSX', which is of non-class type 'int'
- 109 | pAMSX->CVR[0] =
- | ^~~
- ../Src/ltc6803LibF103.cpp:111:10: error: request for member 'CVR' in '* pAMSX', which is of non-class type 'int'
- 111 | pAMSX->CVR[0] += (pAMSX->CVR[0] >> 1);
- | ^~~
- make: *** [Src/subdir.mk:32: Src/ltc6803LibF103_old.o] Error 1
- make: *** Waiting for unfinished jobs....
- ../Src/ltc6803LibF103.cpp:111:28: error: request for member 'CVR' in '* pAMSX', which is of non-class type 'int'
- 111 | pAMSX->CVR[0] += (pAMSX->CVR[0] >> 1);
- | ^~~
- ../Src/ltc6803LibF103.cpp:112:10: error: request for member 'CVR' in '* pAMSX', which is of non-class type 'int'
- 112 | pAMSX->CVR[0] /= CONVERSION_VALUE;
- | ^~~
- ../Src/ltc6803LibF103.cpp:114:10: error: request for member 'CVR' in '* pAMSX', which is of non-class type 'int'
- 114 | pAMSX->CVR[1] = (unsigned int) ((CVR_AMSX[2] << 4) | (CVR_AMSX[1] >> 4))
- | ^~~
- ../Src/ltc6803LibF103.cpp:116:10: error: request for member 'CVR' in '* pAMSX', which is of non-class type 'int'
- 116 | pAMSX->CVR[1] += (pAMSX->CVR[1] >> 1);
- | ^~~
- ../Src/ltc6803LibF103.cpp:116:28: error: request for member 'CVR' in '* pAMSX', which is of non-class type 'int'
- 116 | pAMSX->CVR[1] += (pAMSX->CVR[1] >> 1);
- | ^~~
- ../Src/ltc6803LibF103.cpp:117:10: error: request for member 'CVR' in '* pAMSX', which is of non-class type 'int'
- 117 | pAMSX->CVR[1] /= CONVERSION_VALUE;
- | ^~~
- ../Src/ltc6803LibF103.cpp:119:10: error: request for member 'CVR' in '* pAMSX', which is of non-class type 'int'
- 119 | pAMSX->CVR[2] =
- | ^~~
- ../Src/ltc6803LibF103.cpp:121:10: error: request for member 'CVR' in '* pAMSX', which is of non-class type 'int'
- 121 | pAMSX->CVR[2] += (pAMSX->CVR[2] >> 1);
- | ^~~
- ../Src/ltc6803LibF103.cpp:121:28: error: request for member 'CVR' in '* pAMSX', which is of non-class type 'int'
- 121 | pAMSX->CVR[2] += (pAMSX->CVR[2] >> 1);
- | ^~~
- ../Src/ltc6803LibF103.cpp:122:10: error: request for member 'CVR' in '* pAMSX', which is of non-class type 'int'
- 122 | pAMSX->CVR[2] /= CONVERSION_VALUE;
- | ^~~
- ../Src/ltc6803LibF103.cpp:124:10: error: request for member 'CVR' in '* pAMSX', which is of non-class type 'int'
- 124 | pAMSX->CVR[3] = (unsigned int) ((CVR_AMSX[5] << 4) | (CVR_AMSX[4] >> 4))
- | ^~~
- ../Src/ltc6803LibF103.cpp:126:10: error: request for member 'CVR' in '* pAMSX', which is of non-class type 'int'
- 126 | pAMSX->CVR[3] += (pAMSX->CVR[3] >> 1);
- | ^~~
- ../Src/ltc6803LibF103.cpp:126:28: error: request for member 'CVR' in '* pAMSX', which is of non-class type 'int'
- 126 | pAMSX->CVR[3] += (pAMSX->CVR[3] >> 1);
- | ^~~
- ../Src/ltc6803LibF103.cpp:127:10: error: request for member 'CVR' in '* pAMSX', which is of non-class type 'int'
- 127 | pAMSX->CVR[3] /= CONVERSION_VALUE;
- | ^~~
- ../Src/ltc6803LibF103.cpp:129:10: error: request for member 'CVR' in '* pAMSX', which is of non-class type 'int'
- 129 | pAMSX->CVR[4] =
- | ^~~
- ../Src/ltc6803LibF103.cpp:131:10: error: request for member 'CVR' in '* pAMSX', which is of non-class type 'int'
- 131 | pAMSX->CVR[4] += (pAMSX->CVR[4] >> 1);
- | ^~~
- ../Src/ltc6803LibF103.cpp:131:28: error: request for member 'CVR' in '* pAMSX', which is of non-class type 'int'
- 131 | pAMSX->CVR[4] += (pAMSX->CVR[4] >> 1);
- | ^~~
- ../Src/ltc6803LibF103.cpp:132:10: error: request for member 'CVR' in '* pAMSX', which is of non-class type 'int'
- 132 | pAMSX->CVR[4] /= CONVERSION_VALUE;
- | ^~~
- ../Src/ltc6803LibF103.cpp:134:10: error: request for member 'CVR' in '* pAMSX', which is of non-class type 'int'
- 134 | pAMSX->CVR[5] = (unsigned int) ((CVR_AMSX[8] << 4) | (CVR_AMSX[7] >> 4))
- | ^~~
- ../Src/ltc6803LibF103.cpp:136:10: error: request for member 'CVR' in '* pAMSX', which is of non-class type 'int'
- 136 | pAMSX->CVR[5] += (pAMSX->CVR[5] >> 1);
- | ^~~
- ../Src/ltc6803LibF103.cpp:136:28: error: request for member 'CVR' in '* pAMSX', which is of non-class type 'int'
- 136 | pAMSX->CVR[5] += (pAMSX->CVR[5] >> 1);
- | ^~~
- ../Src/ltc6803LibF103.cpp:137:10: error: request for member 'CVR' in '* pAMSX', which is of non-class type 'int'
- 137 | pAMSX->CVR[5] /= CONVERSION_VALUE;
- | ^~~
- ../Src/ltc6803LibF103.cpp:139:10: error: request for member 'CVR' in '* pAMSX', which is of non-class type 'int'
- 139 | pAMSX->CVR[6] = (unsigned int) (((CVR_AMSX[10] & 0xF) << 8)
- | ^~~
- ../Src/ltc6803LibF103.cpp:141:10: error: request for member 'CVR' in '* pAMSX', which is of non-class type 'int'
- 141 | pAMSX->CVR[6] += (pAMSX->CVR[6] >> 1);
- | ^~~
- ../Src/ltc6803LibF103.cpp:141:28: error: request for member 'CVR' in '* pAMSX', which is of non-class type 'int'
- 141 | pAMSX->CVR[6] += (pAMSX->CVR[6] >> 1);
- | ^~~
- ../Src/ltc6803LibF103.cpp:142:10: error: request for member 'CVR' in '* pAMSX', which is of non-class type 'int'
- 142 | pAMSX->CVR[6] /= CONVERSION_VALUE;
- | ^~~
- ../Src/ltc6803LibF103.cpp:144:10: error: request for member 'CVR' in '* pAMSX', which is of non-class type 'int'
- 144 | pAMSX->CVR[7] = (unsigned int) ((CVR_AMSX[11] << 4)
- | ^~~
- ../Src/ltc6803LibF103.cpp:146:10: error: request for member 'CVR' in '* pAMSX', which is of non-class type 'int'
- 146 | pAMSX->CVR[7] += (pAMSX->CVR[7] >> 1);
- | ^~~
- ../Src/ltc6803LibF103.cpp:146:28: error: request for member 'CVR' in '* pAMSX', which is of non-class type 'int'
- 146 | pAMSX->CVR[7] += (pAMSX->CVR[7] >> 1);
- | ^~~
- ../Src/ltc6803LibF103.cpp:147:10: error: request for member 'CVR' in '* pAMSX', which is of non-class type 'int'
- 147 | pAMSX->CVR[7] /= CONVERSION_VALUE;
- | ^~~
- ../Src/ltc6803LibF103.cpp:149:10: error: request for member 'CVR' in '* pAMSX', which is of non-class type 'int'
- 149 | pAMSX->CVR[8] = (unsigned int) (((CVR_AMSX[13] & 0xF) << 8)
- | ^~~
- ../Src/ltc6803LibF103.cpp:151:10: error: request for member 'CVR' in '* pAMSX', which is of non-class type 'int'
- 151 | pAMSX->CVR[8] += (pAMSX->CVR[8] >> 1);
- | ^~~
- ../Src/ltc6803LibF103.cpp:151:28: error: request for member 'CVR' in '* pAMSX', which is of non-class type 'int'
- 151 | pAMSX->CVR[8] += (pAMSX->CVR[8] >> 1);
- | ^~~
- ../Src/ltc6803LibF103.cpp:152:10: error: request for member 'CVR' in '* pAMSX', which is of non-class type 'int'
- 152 | pAMSX->CVR[8] /= CONVERSION_VALUE;
- | ^~~
- ../Src/ltc6803LibF103.cpp:154:10: error: request for member 'CVR' in '* pAMSX', which is of non-class type 'int'
- 154 | pAMSX->CVR[9] = (unsigned int) ((CVR_AMSX[14] << 4)
- | ^~~
- ../Src/ltc6803LibF103.cpp:156:10: error: request for member 'CVR' in '* pAMSX', which is of non-class type 'int'
- 156 | pAMSX->CVR[9] += (pAMSX->CVR[9] >> 1);
- | ^~~
- ../Src/ltc6803LibF103.cpp:156:28: error: request for member 'CVR' in '* pAMSX', which is of non-class type 'int'
- 156 | pAMSX->CVR[9] += (pAMSX->CVR[9] >> 1);
- | ^~~
- ../Src/ltc6803LibF103.cpp:157:10: error: request for member 'CVR' in '* pAMSX', which is of non-class type 'int'
- 157 | pAMSX->CVR[9] /= CONVERSION_VALUE;
- | ^~~
- ../Src/ltc6803LibF103.cpp:159:10: error: request for member 'CVR' in '* pAMSX', which is of non-class type 'int'
- 159 | pAMSX->CVR[10] = (unsigned int) (((CVR_AMSX[16] & 0xF) << 8)
- | ^~~
- ../Src/ltc6803LibF103.cpp:161:10: error: request for member 'CVR' in '* pAMSX', which is of non-class type 'int'
- 161 | pAMSX->CVR[10] += (pAMSX->CVR[10] >> 1);
- | ^~~
- ../Src/ltc6803LibF103.cpp:161:29: error: request for member 'CVR' in '* pAMSX', which is of non-class type 'int'
- 161 | pAMSX->CVR[10] += (pAMSX->CVR[10] >> 1);
- | ^~~
- ../Src/ltc6803LibF103.cpp:162:10: error: request for member 'CVR' in '* pAMSX', which is of non-class type 'int'
- 162 | pAMSX->CVR[10] /= CONVERSION_VALUE;
- | ^~~
- ../Src/ltc6803LibF103.cpp:164:10: error: request for member 'CVR' in '* pAMSX', which is of non-class type 'int'
- 164 | pAMSX->CVR[11] = (unsigned int) ((CVR_AMSX[17] << 4)
- | ^~~
- ../Src/ltc6803LibF103.cpp:166:10: error: request for member 'CVR' in '* pAMSX', which is of non-class type 'int'
- 166 | pAMSX->CVR[11] += (pAMSX->CVR[11] >> 1);
- | ^~~
- ../Src/ltc6803LibF103.cpp:166:29: error: request for member 'CVR' in '* pAMSX', which is of non-class type 'int'
- 166 | pAMSX->CVR[11] += (pAMSX->CVR[11] >> 1);
- | ^~~
- ../Src/ltc6803LibF103.cpp:167:10: error: request for member 'CVR' in '* pAMSX', which is of non-class type 'int'
- 167 | pAMSX->CVR[11] /= CONVERSION_VALUE;
- | ^~~
- ../Src/ltc6803LibF103.cpp:169:10: error: request for member 'v_cell_max' in '* pAMSX', which is of non-class type 'int'
- 169 | pAMSX->v_cell_max = 0x0000; // Reset u_cell maximum
- | ^~~~~~~~~~
- ../Src/ltc6803LibF103.cpp:170:10: error: request for member 'v_cell_min' in '* pAMSX', which is of non-class type 'int'
- 170 | pAMSX->v_cell_min = 0xFFFF; // Set u_cell minimum
- | ^~~~~~~~~~
- ../Src/ltc6803LibF103.cpp:171:10: error: request for member 'v_stack' in '* pAMSX', which is of non-class type 'int'
- 171 | pAMSX->v_stack = 0x0000; // Reset sumvoltage
- | ^~~~~~~
- ../Src/ltc6803LibF103.cpp:173:30: error: request for member 'NumOfCells' in '* pAMSX', which is of non-class type 'int'
- 173 | for (int i = 0; i < pAMSX->NumOfCells; i++) {
- | ^~~~~~~~~~
- ../Src/ltc6803LibF103.cpp:174:11: error: request for member 'v_stack' in '* pAMSX', which is of non-class type 'int'
- 174 | pAMSX->v_stack += pAMSX->CVR[i];
- | ^~~~~~~
- ../Src/ltc6803LibF103.cpp:174:29: error: request for member 'CVR' in '* pAMSX', which is of non-class type 'int'
- 174 | pAMSX->v_stack += pAMSX->CVR[i];
- | ^~~
- ../Src/ltc6803LibF103.cpp:175:15: error: request for member 'CVR' in '* pAMSX', which is of non-class type 'int'
- 175 | if (pAMSX->CVR[i] > pAMSX->v_cell_max) {
- | ^~~
- ../Src/ltc6803LibF103.cpp:175:31: error: request for member 'v_cell_max' in '* pAMSX', which is of non-class type 'int'
- 175 | if (pAMSX->CVR[i] > pAMSX->v_cell_max) {
- | ^~~~~~~~~~
- ../Src/ltc6803LibF103.cpp:176:12: error: request for member 'v_cell_max' in '* pAMSX', which is of non-class type 'int'
- 176 | pAMSX->v_cell_max = pAMSX->CVR[i];
- | ^~~~~~~~~~
- ../Src/ltc6803LibF103.cpp:176:32: error: request for member 'CVR' in '* pAMSX', which is of non-class type 'int'
- 176 | pAMSX->v_cell_max = pAMSX->CVR[i];
- | ^~~
- ../Src/ltc6803LibF103.cpp:178:15: error: request for member 'CVR' in '* pAMSX', which is of non-class type 'int'
- 178 | if (pAMSX->CVR[i] < pAMSX->v_cell_min) {
- | ^~~
- ../Src/ltc6803LibF103.cpp:178:31: error: request for member 'v_cell_min' in '* pAMSX', which is of non-class type 'int'
- 178 | if (pAMSX->CVR[i] < pAMSX->v_cell_min) {
- | ^~~~~~~~~~
- ../Src/ltc6803LibF103.cpp:179:12: error: request for member 'v_cell_min' in '* pAMSX', which is of non-class type 'int'
- 179 | pAMSX->v_cell_min = pAMSX->CVR[i];
- | ^~~~~~~~~~
- ../Src/ltc6803LibF103.cpp:179:32: error: request for member 'CVR' in '* pAMSX', which is of non-class type 'int'
- 179 | pAMSX->v_cell_min = pAMSX->CVR[i];
- | ^~~
- ../Src/ltc6803LibF103.cpp:182:10: error: request for member 'v_cell_delta' in '* pAMSX', which is of non-class type 'int'
- 182 | pAMSX->v_cell_delta = (pAMSX->v_cell_max - pAMSX->v_cell_min);
- | ^~~~~~~~~~~~
- ../Src/ltc6803LibF103.cpp:182:33: error: request for member 'v_cell_max' in '* pAMSX', which is of non-class type 'int'
- 182 | pAMSX->v_cell_delta = (pAMSX->v_cell_max - pAMSX->v_cell_min);
- | ^~~~~~~~~~
- ../Src/ltc6803LibF103.cpp:182:53: error: request for member 'v_cell_min' in '* pAMSX', which is of non-class type 'int'
- 182 | pAMSX->v_cell_delta = (pAMSX->v_cell_max - pAMSX->v_cell_min);
- | ^~~~~~~~~~
- ../Src/ltc6803LibF103.cpp:183:10: error: request for member 'v_stack_drift' in '* pAMSX', which is of non-class type 'int'
- 183 | pAMSX->v_stack_drift = (pAMSX->v_stack_drift + pAMSX->v_stack) / 2; // Set delta
- | ^~~~~~~~~~~~~
- ../Src/ltc6803LibF103.cpp:183:34: error: request for member 'v_stack_drift' in '* pAMSX', which is of non-class type 'int'
- 183 | pAMSX->v_stack_drift = (pAMSX->v_stack_drift + pAMSX->v_stack) / 2; // Set delta
- | ^~~~~~~~~~~~~
- ../Src/ltc6803LibF103.cpp:183:57: error: request for member 'v_stack' in '* pAMSX', which is of non-class type 'int'
- 183 | pAMSX->v_stack_drift = (pAMSX->v_stack_drift + pAMSX->v_stack) / 2; // Set delta
- | ^~~~~~~
- ../Src/ltc6803LibF103.cpp: In function 'uint8_t ErrorCode(uint8_t*, uint8_t)':
- ../Src/ltc6803LibF103.cpp:203:21: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses]
- 203 | PEC = (PEC << 1) & 0xF8 | IN_0 | (IN_1 << 1) | (IN_2 << 2);
- | ~~~~~~~~~~~^~~~~~
- ../Src/ltc6803LibF103.cpp: In function 'uint8_t ErrorCodeSingle(uint8_t)':
- ../Src/ltc6803LibF103.cpp:223:20: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses]
- 223 | PEC = (PEC << 1) & 0xF8 | A | (B << 1) | (C << 2);
- | ~~~~~~~~~~~^~~~~~
- ../Src/ltc6803LibF103.cpp: At global scope:
- ../Src/ltc6803LibF103.cpp:233:44: error: 'LTC6803_AMS' has not been declared
- 233 | void structWriter(SPI_HandleTypeDef *hspi, LTC6803_AMS *pAMSX) {
- | ^~~~~~~~~~~
- ../Src/ltc6803LibF103.cpp: In function 'void structWriter(SPI_HandleTypeDef*, int*)':
- ../Src/ltc6803LibF103.cpp:237:30: error: request for member 'CFGR' in '* pAMSX', which is of non-class type 'int'
- 237 | pecbyte = ErrorCode(pAMSX->CFGR, 6); // Store PEC Data
- | ^~~~
- ../Src/ltc6803LibF103.cpp:239:22: error: request for member 'ID' in '* pAMSX', which is of non-class type 'int'
- 239 | TxData[0] = pAMSX->ID[0];
- | ^~
- ../Src/ltc6803LibF103.cpp:240:38: error: request for member 'ID' in '* pAMSX', which is of non-class type 'int'
- 240 | TxData[1] = ErrorCodeSingle(pAMSX->ID[0]); // Store PEC for ID
- | ^~
- ../Src/ltc6803LibF103.cpp:241:15: error: 'WRCFG' was not declared in this scope
- 241 | TxData[2] = WRCFG;
- | ^~~~~
- ../Src/ltc6803LibF103.cpp:244:41: error: cannot convert 'FlagStatus' to 'GPIO_PinState'
- 244 | HAL_GPIO_WritePin(GPIOB, GPIO_PIN_12, RESET); // Chip select LOW
- | ^~~~~
- | |
- | FlagStatus
- In file included from ../Inc/stm32f1xx_hal_conf.h:247,
- from ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal.h:30,
- from ../Inc/ltc6803LibF103.hpp:8,
- from ../Src/ltc6803LibF103.cpp:12:
- ../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)'
- 235 | void HAL_GPIO_WritePin(GPIO_TypeDef *GPIOx, uint16_t GPIO_Pin, GPIO_PinState PinState);
- | ~~~~~~~~~~~~~~^~~~~~~~
- ../Src/ltc6803LibF103.cpp:246:33: error: request for member 'CFGR' in '* pAMSX', which is of non-class type 'int'
- 246 | HAL_SPI_Transmit(hspi, pAMSX->CFGR, 6, 100);
- | ^~~~
- ../Src/ltc6803LibF103.cpp:250:41: error: cannot convert 'FlagStatus' to 'GPIO_PinState'
- 250 | HAL_GPIO_WritePin(GPIOB, GPIO_PIN_12, SET); // Chip Select HIGH
- | ^~~
- | |
- | FlagStatus
- In file included from ../Inc/stm32f1xx_hal_conf.h:247,
- from ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal.h:30,
- from ../Inc/ltc6803LibF103.hpp:8,
- from ../Src/ltc6803LibF103.cpp:12:
- ../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)'
- 235 | void HAL_GPIO_WritePin(GPIO_TypeDef *GPIOx, uint16_t GPIO_Pin, GPIO_PinState PinState);
- | ~~~~~~~~~~~~~~^~~~~~~~
- ../Src/ltc6803LibF103.cpp:253:22: error: request for member 'ID' in '* pAMSX', which is of non-class type 'int'
- 253 | TxData[0] = pAMSX->ID[0];
- | ^~
- ../Src/ltc6803LibF103.cpp:254:38: error: request for member 'ID' in '* pAMSX', which is of non-class type 'int'
- 254 | TxData[1] = ErrorCodeSingle(pAMSX->ID[0]); // Store PEC for ID
- | ^~
- ../Src/ltc6803LibF103.cpp:255:15: error: 'RDCFG' was not declared in this scope
- 255 | TxData[2] = RDCFG;
- | ^~~~~
- ../Src/ltc6803LibF103.cpp:258:41: error: cannot convert 'FlagStatus' to 'GPIO_PinState'
- 258 | HAL_GPIO_WritePin(GPIOB, GPIO_PIN_12, RESET); // Chip select LOW
- | ^~~~~
- | |
- | FlagStatus
- In file included from ../Inc/stm32f1xx_hal_conf.h:247,
- from ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal.h:30,
- from ../Inc/ltc6803LibF103.hpp:8,
- from ../Src/ltc6803LibF103.cpp:12:
- ../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)'
- 235 | void HAL_GPIO_WritePin(GPIO_TypeDef *GPIOx, uint16_t GPIO_Pin, GPIO_PinState PinState);
- | ~~~~~~~~~~~~~~^~~~~~~~
- ../Src/ltc6803LibF103.cpp:264:41: error: cannot convert 'FlagStatus' to 'GPIO_PinState'
- 264 | HAL_GPIO_WritePin(GPIOB, GPIO_PIN_12, SET); // Chip Select HIGH
- | ^~~
- | |
- | FlagStatus
- In file included from ../Inc/stm32f1xx_hal_conf.h:247,
- from ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal.h:30,
- from ../Inc/ltc6803LibF103.hpp:8,
- from ../Src/ltc6803LibF103.cpp:12:
- ../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)'
- 235 | void HAL_GPIO_WritePin(GPIO_TypeDef *GPIOx, uint16_t GPIO_Pin, GPIO_PinState PinState);
- | ~~~~~~~~~~~~~~^~~~~~~~
- ../Src/ltc6803LibF103.cpp:267:44: error: request for member 'CFGR' in '* pAMSX', which is of non-class type 'int'
- 267 | && ((RxData[0] & 0b00011111) != (pAMSX->CFGR[0] & 0b00011111))
- | ^~~~
- ../Src/ltc6803LibF103.cpp:268:28: error: request for member 'CFGR' in '* pAMSX', which is of non-class type 'int'
- 268 | && (RxData[1] != pAMSX->CFGR[1]) && (RxData[2] != pAMSX->CFGR[2])
- | ^~~~
- ../Src/ltc6803LibF103.cpp:268:61: error: request for member 'CFGR' in '* pAMSX', which is of non-class type 'int'
- 268 | && (RxData[1] != pAMSX->CFGR[1]) && (RxData[2] != pAMSX->CFGR[2])
- | ^~~~
- ../Src/ltc6803LibF103.cpp:269:28: error: request for member 'CFGR' in '* pAMSX', which is of non-class type 'int'
- 269 | && (RxData[3] != pAMSX->CFGR[3]) && (RxData[4] != pAMSX->CFGR[4])
- | ^~~~
- ../Src/ltc6803LibF103.cpp:269:61: error: request for member 'CFGR' in '* pAMSX', which is of non-class type 'int'
- 269 | && (RxData[3] != pAMSX->CFGR[3]) && (RxData[4] != pAMSX->CFGR[4])
- | ^~~~
- ../Src/ltc6803LibF103.cpp:270:28: error: request for member 'CFGR' in '* pAMSX', which is of non-class type 'int'
- 270 | && (RxData[5] != pAMSX->CFGR[5]));
- | ^~~~
- ../Src/ltc6803LibF103.cpp: At global scope:
- ../Src/ltc6803LibF103.cpp:279:20: error: variable or field 'setCFGRstruct' declared void
- 279 | void setCFGRstruct(AMS_CFGR *pCFGRstruct, LTC6803_AMS *pAMSX) {
- | ^~~~~~~~
- ../Src/ltc6803LibF103.cpp:279:20: error: 'AMS_CFGR' was not declared in this scope
- ../Src/ltc6803LibF103.cpp:279:30: error: 'pCFGRstruct' was not declared in this scope
- 279 | void setCFGRstruct(AMS_CFGR *pCFGRstruct, LTC6803_AMS *pAMSX) {
- | ^~~~~~~~~~~
- ../Src/ltc6803LibF103.cpp:279:43: error: 'LTC6803_AMS' was not declared in this scope; did you mean 'LTC6803'?
- 279 | void setCFGRstruct(AMS_CFGR *pCFGRstruct, LTC6803_AMS *pAMSX) {
- | ^~~~~~~~~~~
- | LTC6803
- ../Src/ltc6803LibF103.cpp:279:56: error: 'pAMSX' was not declared in this scope
- 279 | void setCFGRstruct(AMS_CFGR *pCFGRstruct, LTC6803_AMS *pAMSX) {
- | ^~~~~
- make: *** [Src/subdir.mk:32: Src/ltc6803LibF103.o] Error 1
- "make -j8 all" terminated with exit code 2. Build might be incomplete.
- 14:37:50 Build Failed. 136 errors, 4 warnings. (took 433ms)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement