* Helper function - check which 32 bit to scan for next, if any */
| 824 | * Helper function - check which 32 bit to scan for next, if any |
| 825 | */ |
| 826 | static uint8_t |
| 827 | CO_LSSmaster_FsSearchNext(CO_LSSmaster_t* LSSmaster, const CO_LSSmaster_fastscan_t* fastscan) { |
| 828 | uint8_t i; |
| 829 | |
| 830 | /* we search for the next LSS address part to scan for, beginning with the |
| 831 | * one after the current one. If there is none remaining, scanning is finished */ |
| 832 | for (i = LSSmaster->fsLssSub + 1U; i <= CO_LSS_FASTSCAN_SERIAL; i++) { |
| 833 | if (fastscan->scan[i] != CO_LSSmaster_FS_SKIP) { |
| 834 | return i; |
| 835 | } |
| 836 | } |
| 837 | /* node selection is triggered by switching node state machine back to initial state */ |
| 838 | return CO_LSS_FASTSCAN_VENDOR_ID; |
| 839 | } |
| 840 | |
| 841 | CO_LSSmaster_return_t |
| 842 | CO_LSSmaster_IdentifyFastscan(CO_LSSmaster_t* LSSmaster, uint32_t timeDifference_us, |
no outgoing calls
no test coverage detected