38#ifndef DW_CONTROL_PLUGINS_VEHICLEIO_DRIVER_H_
39#define DW_CONTROL_PLUGINS_VEHICLEIO_DRIVER_H_
dwStatus
Status definition.
NVIDIA DriveWorks API: Core Types
NVIDIA DriveWorks API: VehicleIO car controller
Non-safety critical RoV commands.
Non-safety critical RoV state.
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.
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_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_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_consumeDataForSafeState(dwDataPacket const *dataPacket, dwVehicleIOSafetyState *safetyState)
Extract dwVehicleIOSafetyState from incoming data packet.
dwStatus _dwVehicleIODriver_release()
Releases the VehicleIO Driver.
dwStatus _dwVehicleIODriver_consumeForActuationFeedback(dwCANMessage const *canMessage, dwVehicleIOActuationFeedback *actuationFeedback)
Extract dwVehicleIOActuationFeedback from incoming CAN message.
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.