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: Radar
NVIDIA DriveWorks API: Core Types
dwStatus
Status definition.
Defines the structure for reporting sensor mount position.
Defines the properties of the radar.
Defines the structure for a complete radar scan.
Defines the type of scan (combination of return type & range)
Defines the structure for reporting current vehicle dynamics state.
dwRadarProperties properties
Radar properties.
size_t headerSize
Packet header size (in bytes).
size_t maxPayloadSize
Packet max payload size (in bytes).
size_t vehicleStateSize
Size of the vehicle state message to be sent to the radar.
size_t mountSize
Size of the mount poisition 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.
dwStatus _dwRadarDecoder_encodeVehicleState(uint8_t *buffer, const size_t maxOutputSize, const dwRadarVehicleState *packet)
Encodes data from a /ref dwRadarVehicleState into a raw byte array.
dwStatus _dwRadarDecoder_release()
Releases the radar decoder.
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_initialize()
Initializes the radar decoder.
dwStatus _dwRadarDecoder_getConstants(_dwRadarDecoder_constants *constants)
Gets constants associated with this radar sensor.
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.
bool _dwRadarDecoder_isScanComplete(dwRadarScanType scanType, const uint8_t **buffer, size_t *length, size_t numPackets)
Returns the status of the scan.
dwStatus _dwRadarDecoder_validatePacket(const uint8_t *buffer, const size_t length, dwRadarScanType *scanType)
Determines whether a byte array of packet data is valid.
Holds constants for a given radar.