mirror of
https://github.com/intrepidcs/libicsneo.git
synced 2026-11-04 21:09:06 +01:00
Message: LIN: Add wakeup request transmit
This commit is contained in:
committed by
Kyle Schwarz
parent
ee6b846acc
commit
9f747df692
@@ -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
|
||||
Reference in New Issue
Block a user