38 #ifndef DW_SENSORS_PLUGINS_RADAR_DECODER_H_ 39 #define DW_SENSORS_PLUGINS_RADAR_DECODER_H_ 114 const uint8_t* buffer,
160 const uint8_t** buffer,
178 const size_t maxOutputSize,
195 const size_t maxOutputSize,
NVIDIA DriveWorks API: Core Types
Defines the structure for reporting sensor mount position.
Defines the structure for a complete radar scan.
NVIDIA DriveWorks API: Radar
dwStatus _dwRadarDecoder_synchronize(const uint8_t *buffer, const size_t length, size_t *remaining)
Determines whether a byte array of packet data has a valid radar signature.
size_t mountSize
Size of the mount poisition message to be sent to the radar.
dwRadarProperties properties
Radar properties.
dwStatus _dwRadarDecoder_initialize()
Initializes the radar decoder.
dwStatus
Status definition.
size_t headerSize
Packet header size (in bytes).
Defines the type of scan (combination of return type & range)
size_t maxPayloadSize
Packet max payload size (in bytes).
size_t vehicleStateSize
Size of the vehicle state message to be sent to the radar.
dwStatus _dwRadarDecoder_decodePacket(dwRadarScan *output, const uint8_t *buffer, const size_t length, const dwRadarScanType scanType)
Decodes a packet from the radar, given a raw byte array and a specified decoding format.
Defines the properties of the radar.
dwStatus _dwRadarDecoder_validatePacket(const uint8_t *buffer, const size_t length, dwRadarScanType *scanType)
Determines whether a byte array of packet data is valid.
dwStatus _dwRadarDecoder_encodeMountPosition(uint8_t *buffer, const size_t maxOutputSize, const dwRadarMountPosition *packet)
Encodes data from a /ref dwRadarMountPosition into a raw byte array.
dwStatus _dwRadarDecoder_getConstants(_dwRadarDecoder_constants *constants)
Gets constants associated with this radar sensor.
Holds constants for a given radar.
Defines the structure for reporting current vehicle dynamics state.
dwStatus _dwRadarDecoder_encodeVehicleState(uint8_t *buffer, const size_t maxOutputSize, const dwRadarVehicleState *packet)
Encodes data from a /ref dwRadarVehicleState into a raw byte array.
bool _dwRadarDecoder_isScanComplete(dwRadarScanType scanType, const uint8_t **buffer, size_t *length, size_t numPackets)
Returns the status of the scan.
dwStatus _dwRadarDecoder_release()
Releases the radar decoder.