* Helper function - send request */
| 640 | * Helper function - send request |
| 641 | */ |
| 642 | static void |
| 643 | CO_LSSmaster_FsSendMsg(CO_LSSmaster_t* LSSmaster, uint32_t idNumber, uint8_t bitCheck, uint8_t lssSub, |
| 644 | uint8_t lssNext) { |
| 645 | LSSmaster->timeoutTimer = 0; |
| 646 | |
| 647 | CO_FLAG_CLEAR(LSSmaster->CANrxNew); |
| 648 | LSSmaster->TXbuff->data[0] = CO_LSS_IDENT_FASTSCAN; |
| 649 | (void)CO_setUint32(&LSSmaster->TXbuff->data[1], CO_SWAP_32(idNumber)); |
| 650 | LSSmaster->TXbuff->data[5] = bitCheck; |
| 651 | LSSmaster->TXbuff->data[6] = lssSub; |
| 652 | LSSmaster->TXbuff->data[7] = lssNext; |
| 653 | |
| 654 | (void)CO_CANsend(LSSmaster->CANdevTx, LSSmaster->TXbuff); |
| 655 | } |
| 656 | |
| 657 | /* |
| 658 | * Helper function - wait for confirmation |
no test coverage detected