ARS548 ARS548 RDI SDK(七)完结

本文档详细描述了ARS548雷达通信SDK的C++接口,包括初始化、接收数据、设置回调函数、传感器配置和滤波器配置等功能,以及相关的数据结构、错误代码和宏定义。
摘要由CSDN通过智能技术生成

File List
File List
Globals

=================
File List
Here is a list of all documented files with brief descriptions:
Ars548Dll.h ARS548 radar communication SDK

Ars548Dll.h File Reference
ARS548 radar communication SDK. More…

#include <unistd.h>
#include <stdint.h>
Go to the source code of this file.

Data Structures
struct SomeIPHeader1stPart

struct SomeIPHeader2ndPart

struct E2eP07Header

struct Ars548Msg

struct SomeIPPackage

struct Ars548SensorStatusOlder

struct Ars548SensorStatus

struct Ars548FilterStatusEntry

struct Ars548FilterStatus

struct Ars548Detection

struct Ars548DetectionList

struct Ars548Object

struct Ars548ObjectList

struct Ars548SensorConfiguration

struct Ars548FilterConfigEntry

struct Ars548FilterConfiguration

struct Target

struct TargetList

Macros
#define ARS548DLL_API

#define WINAPI

#define CALLBACK

#define METHOD_ID_DETECTION_LIST 336

#define METHOD_ID_OBJECT_LIST 329

#define METHOD_ID_SENSOR_STATUS 380

#define METHOD_ID_FILTER_STATUS 396

#define METHOD_ID_SENSOR_CONFIG 390

#define METHOD_ID_FILTER_CONFIG 395

#define MSG_ID_DETECTION_LIST METHOD_ID_DETECTION_LIST

#define MSG_ID_OBJECT_LIST METHOD_ID_OBJECT_LIST

#define MSG_ID_SENSOR_STATUS METHOD_ID_SENSOR_STATUS

#define MSG_ID_FILTER_STATUS METHOD_ID_FILTER_STATUS

#define TARGET_TYPE_DETECTION 0

#define TARGET_TYPE_OBJECT 1

Typedefs
typedef uint8_t BYTE

typedef int8_t INT8

typedef uint8_t UINT8

typedef uint16_t UINT16

typedef uint32_t UINT32

typedef uint32_t DWORD

typedef uint64_t UINT64

typedef float FLOAT32

typedef int BOOL

typedef void * HINSTANCE

typedef void * LPVOID

typedef int SOCKET

typedef const char * LPCTSTR

typedef void(CALLBACK * RadarMessageCallback) (int nMsgId, const Ars548Msg *pMsg)
Used to define a callback function to be invoked when the radar raw message structure is received.

typedef void(CALLBACK * TargetListCallback) (const TargetList *pTargetList)
Used to define a callback function to be invoked when the parsed target list is ready.

Functions
ARS548DLL_API HINSTANCE WINAPI Ars548_Init ()

ARS548DLL_API int WINAPI Ars548_StartReceive (HINSTANCE hInst, LPCTSTR lpszBindIP, LPCTSTR lpszRadarIP)

ARS548DLL_API int WINAPI Ars548_StopReceive (HINSTANCE hInst)

ARS548DLL_API void WINAPI Ars548_SetRadarMessageCallback (HINSTANCE hInst, const RadarMessageCallback &pCallback)

ARS548DLL_API void WINAPI Ars548_SetTargetListCallback (HINSTANCE hInst, const TargetListCallback &pCallback)

ARS548DLL_API int WINAPI Ars548_SetSensorConfig (HINSTANCE hInst, const Ars548SensorConfiguration &cfg)

ARS548DLL_API int WINAPI Ars548_SetFilterConfig (HINSTANCE hInst, const Ars548FilterConfiguration &cfg)

ARS548DLL_API int WINAPI Ars548_ResetFilterConfig (HINSTANCE hInst)

ARS548DLL_API void WINAPI Ars548_UnInit (HINSTANCE hInst)

Variables
const int ARS548_OK = 0
Success.

const int ARS548_ERROR_STATE = 40001
Status errors, e.g. duplicate start of receiving.

const int ARS548_ERROR_RESOURCE_CREATION = 40002
Failed to create resources, e.g. failed to create threads.

const int ARS548_ERROR_NETWORK_INIT_FAILED = 40003
Network initialization failed.

const int ARS548_ERROR_NETWORK_BIND_FAILED = 40004
Failed to bind address or port.

const int ARS548_ERROR_NETWORK_MULTICAST_INIT_FAILED = 40005
Multicast initialization failed.

const int ARS548_ERROR_NETWORK_INVALID_MULTICAST_IP = 40006
Invalid multicast IP.

const int ARS548_ERROR_NOT_IMPLEMENTED = 40007
This feature is not yet implemented.

const int ARS548_SEND_FAILED = 40008
Send failed.

Detailed Description
ARS548 radar communication SDK.

Author
Jun jun.chen@adas-engineering.de
Version
1.0
Copyright
ADAS engineering © 2023
Function Documentation
◆ Ars548_Init()
ARS548DLL_API HINSTANCE WINAPI Ars548_Init ( )
Initialization

Returns
Returns an instance ID which should be passed as the first parameter in subsequent calls to other SDK functions.
See also
Ars548_UnInit
◆ Ars548_ResetFilterConfig()
ARS548DLL_API int WINAPI Ars548_ResetFilterConfig ( HINSTANCE hInst )
Reset radar filter configuration I.e. clear and disable all filters

Parameters
hInst Instance ID
Returns
Returns ARS548_OK for success, other values for failure.
◆ Ars548_SetFilterConfig()
ARS548DLL_API int WINAPI Ars548_SetFilterConfig ( HINSTANCE hInst,
const Ars548FilterConfiguration & cfg
)
Set radar filter configuration

Parameters
hInst Instance ID
cfg filter configuration
Returns
Returns ARS548_OK for success, other values for failure.
◆ Ars548_SetRadarMessageCallback()
ARS548DLL_API void WINAPI Ars548_SetRadarMessageCallback ( HINSTANCE hInst,
const RadarMessageCallback & pCallback
)
Set callback function for raw radar message data

Parameters
hInst Instance ID
pCallback Pointer to callback function
◆ Ars548_SetSensorConfig()
ARS548DLL_API int WINAPI Ars548_SetSensorConfig ( HINSTANCE hInst,
const Ars548SensorConfiguration & cfg
)
Set radar sensor configuration

Parameters
hInst Instance ID
cfg sensor configuration
Returns
Returns ARS548_OK for success, other values for failure.
◆ Ars548_SetTargetListCallback()
ARS548DLL_API void WINAPI Ars548_SetTargetListCallback ( HINSTANCE hInst,
const TargetListCallback & pCallback
)
Set callback function for radar target info

Parameters
hInst Instance ID
pCallback Pointer to callback function
◆ Ars548_StartReceive()
ARS548DLL_API int WINAPI Ars548_StartReceive ( HINSTANCE hInst,
LPCTSTR lpszBindIP,
LPCTSTR lpszRadarIP
)
Start receiving radar data

Parameters
hInst Instance ID
lpszBindIP Network interface IP connected to radar
lpszRadarIP Radar IP
Returns
Returns ARS548_OK for success, other values for failure.
See also
Ars548_StopReceive
◆ Ars548_StopReceive()
ARS548DLL_API int WINAPI Ars548_StopReceive ( HINSTANCE hInst )
Stop receiving radar data

Parameters
hInst Instance ID
Returns
Returns ARS548_OK for success, other values for failure.
See also
Ars548_StartReceive
◆ Ars548_UnInit()
ARS548DLL_API void WINAPI Ars548_UnInit ( HINSTANCE hInst )
Deinitialization

Parameters
hInst Instance ID returned by Ars548_Init.
See also
Ars548_Init

=======================
Globals
All
Functions
Variables
Typedefs
Macros

All
Here is a list of all documented functions, variables, defines, enums, and typedefs with links to the documentation:
ARS548_ERROR_NETWORK_BIND_FAILED : Ars548Dll.h
ARS548_ERROR_NETWORK_INIT_FAILED : Ars548Dll.h
ARS548_ERROR_NETWORK_INVALID_MULTICAST_IP : Ars548Dll.h
ARS548_ERROR_NETWORK_MULTICAST_INIT_FAILED : Ars548Dll.h
ARS548_ERROR_NOT_IMPLEMENTED : Ars548Dll.h
ARS548_ERROR_RESOURCE_CREATION : Ars548Dll.h
ARS548_ERROR_STATE : Ars548Dll.h
Ars548_Init() : Ars548Dll.h
ARS548_OK : Ars548Dll.h
Ars548_ResetFilterConfig() : Ars548Dll.h
ARS548_SEND_FAILED : Ars548Dll.h
Ars548_SetFilterConfig() : Ars548Dll.h
Ars548_SetRadarMessageCallback() : Ars548Dll.h
Ars548_SetSensorConfig() : Ars548Dll.h
Ars548_SetTargetListCallback() : Ars548Dll.h
Ars548_StartReceive() : Ars548Dll.h
Ars548_StopReceive() : Ars548Dll.h
Ars548_UnInit() : Ars548Dll.h
MSG_ID_DETECTION_LIST : Ars548Dll.h
MSG_ID_FILTER_STATUS : Ars548Dll.h
MSG_ID_OBJECT_LIST : Ars548Dll.h
MSG_ID_SENSOR_STATUS : Ars548Dll.h
RadarMessageCallback : Ars548Dll.h
TARGET_TYPE_DETECTION : Ars548Dll.h
TARGET_TYPE_OBJECT : Ars548Dll.h
TargetListCallback : Ars548Dll.h

Ars548Dll.h
Error Codes
Variables
const int ARS548_OK = 0
Success.

const int ARS548_ERROR_STATE = 40001
Status errors, e.g. duplicate start of receiving.

const int ARS548_ERROR_RESOURCE_CREATION = 40002
Failed to create resources, e.g. failed to create threads.

const int ARS548_ERROR_NETWORK_INIT_FAILED = 40003
Network initialization failed.

const int ARS548_ERROR_NETWORK_BIND_FAILED = 40004
Failed to bind address or port.

const int ARS548_ERROR_NETWORK_MULTICAST_INIT_FAILED = 40005
Multicast initialization failed.

const int ARS548_ERROR_NETWORK_INVALID_MULTICAST_IP = 40006
Invalid multicast IP.

const int ARS548_ERROR_NOT_IMPLEMENTED = 40007
This feature is not yet implemented.

const int ARS548_SEND_FAILED = 40008
Send failed.

Detailed Description
Return value definitions for SDK functions.

Ars548Dll.h File Reference
ARS548 radar communication SDK. More…

#include <unistd.h>
#include <stdint.h>
Go to the source code of this file.

Data Structures
struct SomeIPHeader1stPart

struct SomeIPHeader2ndPart

struct E2eP07Header

struct Ars548Msg

struct SomeIPPackage

struct Ars548SensorStatusOlder

struct Ars548SensorStatus

struct Ars548FilterStatusEntry

struct Ars548FilterStatus

struct Ars548Detection

struct Ars548DetectionList

struct Ars548Object

struct Ars548ObjectList

struct Ars548SensorConfiguration

struct Ars548FilterConfigEntry

struct Ars548FilterConfiguration

struct Target

struct TargetList

Macros
#define ARS548DLL_API

#define WINAPI

#define CALLBACK

#define METHOD_ID_DETECTION_LIST 336

#define METHOD_ID_OBJECT_LIST 329

#define METHOD_ID_SENSOR_STATUS 380

#define METHOD_ID_FILTER_STATUS 396

#define METHOD_ID_SENSOR_CONFIG 390

#define METHOD_ID_FILTER_CONFIG 395

#define MSG_ID_DETECTION_LIST METHOD_ID_DETECTION_LIST

#define MSG_ID_OBJECT_LIST METHOD_ID_OBJECT_LIST

#define MSG_ID_SENSOR_STATUS METHOD_ID_SENSOR_STATUS

#define MSG_ID_FILTER_STATUS METHOD_ID_FILTER_STATUS

#define TARGET_TYPE_DETECTION 0

#define TARGET_TYPE_OBJECT 1

Typedefs
typedef uint8_t BYTE

typedef int8_t INT8

typedef uint8_t UINT8

typedef uint16_t UINT16

typedef uint32_t UINT32

typedef uint32_t DWORD

typedef uint64_t UINT64

typedef float FLOAT32

typedef int BOOL

typedef void * HINSTANCE

typedef void * LPVOID

typedef int SOCKET

typedef const char * LPCTSTR

typedef void(CALLBACK * RadarMessageCallback) (int nMsgId, const Ars548Msg *pMsg)
Used to define a callback function to be invoked when the radar raw message structure is received.

typedef void(CALLBACK * TargetListCallback) (const TargetList *pTargetList)
Used to define a callback function to be invoked when the parsed target list is ready.

Functions
ARS548DLL_API HINSTANCE WINAPI Ars548_Init ()

ARS548DLL_API int WINAPI Ars548_StartReceive (HINSTANCE hInst, LPCTSTR lpszBindIP, LPCTSTR lpszRadarIP)

ARS548DLL_API int WINAPI Ars548_StopReceive (HINSTANCE hInst)

ARS548DLL_API void WINAPI Ars548_SetRadarMessageCallback (HINSTANCE hInst, const RadarMessageCallback &pCallback)

ARS548DLL_API void WINAPI Ars548_SetTargetListCallback (HINSTANCE hInst, const TargetListCallback &pCallback)

ARS548DLL_API int WINAPI Ars548_SetSensorConfig (HINSTANCE hInst, const Ars548SensorConfiguration &cfg)

ARS548DLL_API int WINAPI Ars548_SetFilterConfig (HINSTANCE hInst, const Ars548FilterConfiguration &cfg)

ARS548DLL_API int WINAPI Ars548_ResetFilterConfig (HINSTANCE hInst)

ARS548DLL_API void WINAPI Ars548_UnInit (HINSTANCE hInst)

Variables
const int ARS548_OK = 0
Success.

const int ARS548_ERROR_STATE = 40001
Status errors, e.g. duplicate start of receiving.

const int ARS548_ERROR_RESOURCE_CREATION = 40002
Failed to create resources, e.g. failed to create threads.

const int ARS548_ERROR_NETWORK_INIT_FAILED = 40003
Network initialization failed.

const int ARS548_ERROR_NETWORK_BIND_FAILED = 40004
Failed to bind address or port.

const int ARS548_ERROR_NETWORK_MULTICAST_INIT_FAILED = 40005
Multicast initialization failed.

const int ARS548_ERROR_NETWORK_INVALID_MULTICAST_IP = 40006
Invalid multicast IP.

const int ARS548_ERROR_NOT_IMPLEMENTED = 40007
This feature is not yet implemented.

const int ARS548_SEND_FAILED = 40008
Send failed.

Detailed Description
ARS548 radar communication SDK.

Author
Jun jun.chen@adas-engineering.de
Version
1.0
Copyright
ADAS engineering © 2023
Function Documentation
◆ Ars548_Init()
ARS548DLL_API HINSTANCE WINAPI Ars548_Init ( )
Initialization

Returns
Returns an instance ID which should be passed as the first parameter in subsequent calls to other SDK functions.
See also
Ars548_UnInit
◆ Ars548_ResetFilterConfig()
ARS548DLL_API int WINAPI Ars548_ResetFilterConfig ( HINSTANCE hInst )
Reset radar filter configuration I.e. clear and disable all filters

Parameters
hInst Instance ID
Returns
Returns ARS548_OK for success, other values for failure.
◆ Ars548_SetFilterConfig()
ARS548DLL_API int WINAPI Ars548_SetFilterConfig ( HINSTANCE hInst,
const Ars548FilterConfiguration & cfg
)
Set radar filter configuration

Parameters
hInst Instance ID
cfg filter configuration
Returns
Returns ARS548_OK for success, other values for failure.
◆ Ars548_SetRadarMessageCallback()
ARS548DLL_API void WINAPI Ars548_SetRadarMessageCallback ( HINSTANCE hInst,
const RadarMessageCallback & pCallback
)
Set callback function for raw radar message data

Parameters
hInst Instance ID
pCallback Pointer to callback function
◆ Ars548_SetSensorConfig()
ARS548DLL_API int WINAPI Ars548_SetSensorConfig ( HINSTANCE hInst,
const Ars548SensorConfiguration & cfg
)
Set radar sensor configuration

Parameters
hInst Instance ID
cfg sensor configuration
Returns
Returns ARS548_OK for success, other values for failure.
◆ Ars548_SetTargetListCallback()
ARS548DLL_API void WINAPI Ars548_SetTargetListCallback ( HINSTANCE hInst,
const TargetListCallback & pCallback
)
Set callback function for radar target info

Parameters
hInst Instance ID
pCallback Pointer to callback function
◆ Ars548_StartReceive()
ARS548DLL_API int WINAPI Ars548_StartReceive ( HINSTANCE hInst,
LPCTSTR lpszBindIP,
LPCTSTR lpszRadarIP
)
Start receiving radar data

Parameters
hInst Instance ID
lpszBindIP Network interface IP connected to radar
lpszRadarIP Radar IP
Returns
Returns ARS548_OK for success, other values for failure.
See also
Ars548_StopReceive
◆ Ars548_StopReceive()
ARS548DLL_API int WINAPI Ars548_StopReceive ( HINSTANCE hInst )
Stop receiving radar data

Parameters
hInst Instance ID
Returns
Returns ARS548_OK for success, other values for failure.
See also
Ars548_StartReceive
◆ Ars548_UnInit()
ARS548DLL_API void WINAPI Ars548_UnInit ( HINSTANCE hInst )
Deinitialization

Parameters
hInst Instance ID returned by Ars548_Init.
See also
Ars548_Init

MSG_ID_DETECTION_LIST : Ars548Dll.h
Message IDs
Macros
#define METHOD_ID_DETECTION_LIST 336

#define METHOD_ID_OBJECT_LIST 329

#define METHOD_ID_SENSOR_STATUS 380

#define METHOD_ID_FILTER_STATUS 396

#define METHOD_ID_SENSOR_CONFIG 390

#define METHOD_ID_FILTER_CONFIG 395

#define MSG_ID_DETECTION_LIST METHOD_ID_DETECTION_LIST

#define MSG_ID_OBJECT_LIST METHOD_ID_OBJECT_LIST

#define MSG_ID_SENSOR_STATUS METHOD_ID_SENSOR_STATUS

#define MSG_ID_FILTER_STATUS METHOD_ID_FILTER_STATUS

Detailed Description
Struct definitions for ARS548 radar series communication protocol


TARGET_TYPE_DETECTION : Ars548Dll.h
Parsed Data Structures
Data Structures
struct Target

struct TargetList

Macros
#define TARGET_TYPE_DETECTION 0

#define TARGET_TYPE_OBJECT 1

Detailed Description
Radar information structure after parsing processing

Data Structure Documentation
◆ Target
struct Target
Data Fields
UINT32 ID
Unique ID.

FLOAT32 Distance
Vertical distance (m)

FLOAT32 Position
Horizontal distance (m)

FLOAT32 Height
Height (m)

FLOAT32 Degrees
Angle, reserved, currently 0.

FLOAT32 Kmph
Speed (km/h)

FLOAT32 RCS
Radar cross section (dBm²)

◆ TargetList
struct TargetList
Data Fields
BYTE TargetType
TARGET_TYPE_DETECTION | TARGET_TYPE_OBJECT

Target Targets [800]
Array of targets.

UINT32 NumOfTargets
Number of targets, this indicates how many of the targets in the preceding Targets array are valid.


Functions
Here is a list of all documented functions with links to the documentation:
Ars548_Init() : Ars548Dll.h
Ars548_ResetFilterConfig() : Ars548Dll.h
Ars548_SetFilterConfig() : Ars548Dll.h
Ars548_SetRadarMessageCallback() : Ars548Dll.h
Ars548_SetSensorConfig() : Ars548Dll.h
Ars548_SetTargetListCallback() : Ars548Dll.h
Ars548_StartReceive() : Ars548Dll.h
Ars548_StopReceive() : Ars548Dll.h
Ars548_UnInit() : Ars548Dll.h

Variables
Here is a list of all documented typedefs with links to the documentation:
RadarMessageCallback : Ars548Dll.h
TargetListCallback : Ars548Dll.h
Typedefs
Here is a list of all documented typedefs with links to the documentation:
RadarMessageCallback : Ars548Dll.h
TargetListCallback : Ars548Dll.h
Macros
Here is a list of all documented macros with links to the documentation:
MSG_ID_DETECTION_LIST : Ars548Dll.h
MSG_ID_FILTER_STATUS : Ars548Dll.h
MSG_ID_OBJECT_LIST : Ars548Dll.h
MSG_ID_SENSOR_STATUS : Ars548Dll.h
TARGET_TYPE_DETECTION : Ars548Dll.h
TARGET_TYPE_OBJECT : Ars548Dll.h

  • 20
    点赞
  • 19
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值