Development of a Functional Safety Software Layer for the Control of an Electric In-Wheel Motor Based Powertrain | IEEE Conference Publication | IEEE Xplore