38#ifndef DW_CONTROL_PLUGINS_VEHICLEIO_DRIVER_H_
39#define DW_CONTROL_PLUGINS_VEHICLEIO_DRIVER_H_
67DW_DEPRECATED(
"_dwVehicleIODriver_initialize is deprecated and will be removed in the next major release. Use either _dwVehicleIODriver_initialize_V2 or _dwVehicleIODriver_initialize_V3 instead.")
dwStatus
Status definition.
NVIDIA DriveWorks API: Core Types
NVIDIA DriveWorks API: VehicleIO car controller
Command signals of ValEgomotion. Expected to be sent from NDAS to VAL.
Command signals of ValSensorCalibration. Expected to be sent from NDAS to VAL.
E2E Profile4 Wrapper for dwVehicleIOASILCommand.
E2E Profile4 Wrapper for dwVehicleIOASILState.
Non-safety critical RoV commands.
Non-safety critical RoV state.
Command signals without an ASIL rating. Expected to be sent from NDAS to VAL.
State signals without an ASIL rating. Expected to be sent from VAL to AV Stack.
Safety critical RoV commands.
Safety critical VIO state.
The vehicle IO state data. Fields only set if supported by VehicleIO driver.
struct dwContextObject * dwContextHandle_t
Context handle.
#define DW_DEPRECATED(msg)
DEPRECATED: Properties of a passenger car vehicle.
struct dwSensorObject * dwSensorHandle_t
Handle representing a sensor.
dwStatus _dwVehicleIODriver_consumeDataForNonSafeState(dwDataPacket const *dataPacket, dwVehicleIONonSafetyState *nonSafetyState)
Extract dwVehicleIONonSafetyState from incoming data packet.
dwStatus _dwVehicleIODriver_consumeDataExt(dwDataPacket const *dataPacket)
Extract VehicleIO signals from incoming data packet.
dwStatus _dwVehicleIODriver_consumeDataForActuationFeedback(dwDataPacket const *dataPacket, dwVehicleIOActuationFeedback *actuationFeedback)
Extract dwVehicleIOActuationFeedback from incoming data packet.
dwStatus _dwVehicleIODriver_consume(const dwCANMessage *msg, dwVehicleIOState *state)
Consume a received CAN message and update the vehicle state.
dwStatus _dwVehicleIODriver_sendASILCommand(dwVehicleIOASILCommandE2EWrapper const *asilCommand, dwSensorHandle_t sensorHandle)
Send dwVehicleIOASILCommandE2EWrapper over specified sensor.
dwStatus _dwVehicleIODriver_sendSafetyCommand(dwVehicleIOSafetyCommand const *safetyCommand, dwSensorHandle_t sensorHandle)
Send dwVehicleIOSafetyCommand over specified sensor.
dwStatus _dwVehicleIODriver_clearFaults_new(dwSensorHandle_t const sensorHandle, dwVehicleIOSafetyState const *vioSafetyState, dwVehicleIONonSafetyState const *vioNonSafetyState, dwVehicleIOActuationFeedback const *vioActuationFeedback)
Clear any outstanding faults based on incoming VIO state structures.
dwStatus _dwVehicleIODriver_setDrivingMode(const dwVehicleIODrivingMode mode)
Set driving mode.
dwStatus _dwVehicleIODriver_initialize()
Initializes the VehicleIO Driver.
dwStatus _dwVehicleIODriver_consumeForSafeState(dwCANMessage const *canMessage, dwVehicleIOSafetyState *safetyState)
Extract dwVehicleIOSafetyState from incoming CAN message.
dwStatus _dwVehicleIODriver_sendCommand(const dwVehicleIOCommand *cmd, dwSensorHandle_t sensor)
Send a vehicle command to the given CAN sensor.
dwStatus _dwVehicleIODriver_consumeExt(dwCANMessage const *canMessage)
Extract VehicleIO signals from incoming CAN message.
dwStatus _dwVehicleIODriver_consumeDataForSafeState(dwDataPacket const *dataPacket, dwVehicleIOSafetyState *safetyState)
Extract dwVehicleIOSafetyState from incoming data packet.
dwStatus _dwVehicleIODriver_sendQMCommand(dwVehicleIOQMCommand const *qmCommand, dwSensorHandle_t sensorHandle)
Send dwVehicleIOQMCommand over specified sensor.
dwStatus _dwVehicleIODriver_initialize_V3(dwContextHandle_t context, dwVehicle const *vehicleProperties, dwVehicleIOCapabilities *vehicleIOCapabilities, char8_t const *dbcFilepath, dwVehicleIOASILStateE2EWrapper *vioAsilState, dwVehicleIOQMState *vioQmState)
Initialize Plugin VIO Driver.
dwStatus _dwVehicleIODriver_sendSensorCalibration(dwValSensorCalibration const *calibration, dwSensorHandle_t sensorHandle)
Send dwValSensorCalibration over specified sensor.
dwStatus _dwVehicleIODriver_release()
Releases the VehicleIO Driver.
dwStatus _dwVehicleIODriver_consumeForActuationFeedback(dwCANMessage const *canMessage, dwVehicleIOActuationFeedback *actuationFeedback)
Extract dwVehicleIOActuationFeedback from incoming CAN message.
dwStatus _dwVehicleIODriver_sendEgomotion(dwValEgomotion const *egomotion, dwSensorHandle_t sensorHandle)
Send dwValEgomotion over specified sensor.
dwStatus _dwVehicleIODriver_sendNonSafetyCommand(dwVehicleIONonSafetyCommand const *nonSafetyCommand, dwSensorHandle_t sensorHandle)
Send dwVehicleIONonSafetyCommand over specified sensor.
dwStatus _dwVehicleIODriver_sendMiscCommand(const dwVehicleIOMiscCommand *cmd, dwSensorHandle_t sensor)
Send misc vehicle command to the given CAN sensor.
dwStatus _dwVehicleIODriver_clearFaults(dwSensorHandle_t sensor, const dwVehicleIOState *state)
Clear faults in current vehicle state.
dwStatus _dwVehicleIODriver_consumeForNonSafeState(dwCANMessage const *canMessage, dwVehicleIONonSafetyState *nonSafetyState)
Extract dwVehicleIONonSafetyState from incoming CAN message.
dwStatus _dwVehicleIODriver_reset()
Reset driver to default state.
dwStatus _dwVehicleIODriver_initialize_V2(dwContextHandle_t context, char8_t const *vehicleTypeString, dwVehicle const *vehicleProperties, dwVehicleIOCapabilities *vehicleIOCapabilities, char8_t const *dbcFilepath, dwVehicleIOState *vioState, dwVehicleIOSafetyState *vioSafetyState, dwVehicleIONonSafetyState *vioNonSafetyState, dwVehicleIOActuationFeedback *vioActuationFeedback)
Initialize Plugin VIO Driver.