238 #if BS_NR_OF_STRINGS > 1u
248 #if BS_NR_OF_STRINGS > 2u
284 #pragma diag_suppress 880
288 uint64_t message = 0;
292 uint64_t bitStart = 0;
293 uint8_t bitLength = 0;
303 for (uint8_t i = 0u; i < 6u; i++) {
310 tmpVal = (tmpVal + offset) * factor;
324 #pragma diag_suppress 880
327 uint64_t message = 0;
331 uint64_t bitStart = 0;
332 uint8_t bitLength = 0;
338 for (
int i = 0; i < 3; i++) {
343 tmpVal = (tmpVal + offset) * factor;
355 tmpVal = (tmpVal + offset) * factor;
367 #pragma diag_suppress 880
375 uint64_t message = 0;
379 uint64_t bitStart = 0;
380 uint8_t bitLength = 0;
386 for (
int i = 0; i < 3; i++) {
391 tmpVal = (tmpVal + offset) * factor;
403 tmpVal = (tmpVal + offset) * factor;
415 #pragma diag_suppress 880
423 uint64_t message = 0;
427 uint64_t bitStart = 0;
428 uint8_t bitLength = 0;
438 tmpVal = (tmpVal + offset) * factor;
448 tmpVal = (tmpVal + offset) * factor;
458 tmpVal = (tmpVal + offset) * factor;
468 tmpVal = (tmpVal + offset) * factor;
481 #pragma diag_suppress 880
485 uint32_t retVal = 1u;
488 for (uint8_t i = 0; i < dlc; i++) {
489 canMessage.
data[i] = canData[i];
500 #pragma diag_suppress 880
509 uint32_t retVal = 1u;
512 for (uint8_t i = 0; i < dlc; i++) {
513 canMessage.
data[i] = canData[i];
524 #pragma diag_suppress 880
527 uint64_t message = 0;
529 uint64_t bitStart = 0;
530 uint8_t bitLength = 0;
531 uint8_t stateRequest = 0;
540 stateRequest = (uint8_t)signal;
557 #pragma diag_suppress 880
566 #pragma diag_suppress 880
574 uint64_t message = 0u;
575 uint64_t signal = 0u;
576 uint64_t bitStart = 0u;
577 uint8_t bitLength = 0u;
579 int32_t tempValue = 0;
581 uint8_t stringNumber = 0;
589 }
else if (
id <= 0x628u) {
602 dummy = (uint32_t)signal;
604 if ((dummy & 0x10u) == 0x10u) {
607 if ((dummy & 0x20u) == 0x20u) {
647 if (((dummy & 0x40u) == 0x40u) || ((dummy & 0x80u) == 0x80u)) {
667 tempValue = (int32_t)signal;
678 tempValue = (int32_t)signal;
688 tempValue = (int32_t)signal;
698 tempValue = (int32_t)signal;
708 tempValue = (int32_t)signal;
715 tempValue = (int32_t)signal;
726 tempValue = (int32_t)signal;
736 tempValue = (int32_t)signal;
754 #pragma diag_suppress 880
758 uint64_t message = 0;
760 uint64_t bitStart = 0;
761 uint8_t bitLength = 0;
769 switch ((uint8_t)signal) {
771 for (uint8_t stringNumber = 0u; stringNumber <
BS_NR_OF_STRINGS; stringNumber++) {
784 #pragma diag_suppress 880
803 uint64_t mask = 0xFFFFFFFFFFFFFFFFu;
809 if (bitLength <= 8u) {
811 }
else if (bitLength <= 16u) {
814 }
else if (bitLength <= 32u) {
823 if ((bitLength < 64u) && (bitStart < 64u)) {
827 *pMessage |= (signal & mask) << bitStart;
837 pCanData[0] = (uint8_t)(((*pMessage) >> 0u) & 0xFFu);
838 pCanData[1] = (uint8_t)(((*pMessage) >> 8u) & 0xFFu);
839 pCanData[2] = (uint8_t)(((*pMessage) >> 16u) & 0xFFu);
840 pCanData[3] = (uint8_t)(((*pMessage) >> 24u) & 0xFFu);
841 pCanData[4] = (uint8_t)(((*pMessage) >> 32u) & 0xFFu);
842 pCanData[5] = (uint8_t)(((*pMessage) >> 40u) & 0xFFu);
843 pCanData[6] = (uint8_t)(((*pMessage) >> 48u) & 0xFFu);
844 pCanData[7] = (uint8_t)(((*pMessage) >> 56u) & 0xFFu);
854 uint64_t mask = 0xFFFFFFFFFFFFFFFFu;
856 if ((bitLength < 64u) && (bitStart < 64u)) {
860 *pSignal = (message >> bitStart) & mask;
870 if (bitLength <= 8u) {
872 }
else if (bitLength <= 16u) {
875 }
else if (bitLength <= 32u) {
888 *pMessage = ((((uint64_t)pCanData[0]) & 0xFFu) << 0u) | ((((uint64_t)pCanData[1]) & 0xFFu) << 8u) |
889 ((((uint64_t)pCanData[2]) & 0xFFu) << 16u) | ((((uint64_t)pCanData[3]) & 0xFFu) << 24u) |
890 ((((uint64_t)pCanData[4]) & 0xFFu) << 32u) | ((((uint64_t)pCanData[5]) & 0xFFu) << 40u) |
891 ((((uint64_t)pCanData[6]) & 0xFFu) << 48u) | ((((uint64_t)pCanData[7]) & 0xFFu) << 56u);
897 #ifdef UNITY_UNIT_TEST
903 extern uint32_t TEST_CAN_TxVoltage(
911 extern uint32_t TEST_CAN_TxPcbTemperature(
919 extern uint32_t TEST_CAN_TxExternalTemperature(
927 extern uint32_t TEST_CAN_TxVoltageMinMax(
937 extern uint32_t TEST_CAN_RxRequest(
945 extern uint32_t TEST_CAN_RxSwReset(
953 extern uint32_t TEST_CAN_RxCurrentSensor(
961 extern uint32_t TEST_CAN_RxDebug(
967 return CAN_RxDebug(
id, dlc, byteOrder, pCanData, pMuxId);
969 extern uint32_t TEST_CAN_RxSwVersion(