Message: LIN: Add wakeup request transmit

This commit is contained in:
Samuel Bejko
2026-11-04 13:30:36 -05:00
committed by Kyle Schwarz
parent ee6b846acc
commit 9f747df692
9 changed files with 228 additions and 0 deletions
+7
View File
@@ -27,4 +27,11 @@ uint8_t LINMessage::calcProtectedID(uint8_t& id) {
return protID;
}
int LINMessage::wakeupPulseWidthSteps(const LINMessage& message) {
const uint16_t widthUs = message.wakeupPulseWidthUs;
if(widthUs < 250 || widthUs > 5000)
return 0;
return (widthUs + 25) / 50;
}
} //namespace icsneo