热度 7
2023-11-24 17:04
1513 次阅读|
0 个评论
ARS548 ARS548 RDI SDK ARS548 SDK 包含开发与 Continental ARS 548 RDI 交互的软件应用程序所需的一切。SDK包含完整的文档和三种示例程序,用C,C++编写。 【以下全英文,不再翻译。文章很长,慢慢等】 Introduction ARS548 SDK includes everything you need in order to develop software applications interacting with Continental ARS 548 RDI. The SDK contains full documentation and three kind of sample programs, written in C, C++. AttentionWe believe that the information contained herein was accurate in all respects at the time of printing. ADAS Engineering cannot, however, assume any responsibility for errors or omissions in this text. Also note that the information in this document is subject to change without notice and should not be construed as a commitment by ADAS Engineering. Usage The typical usage flow of SDK functions is as follows: Initialization Call Ars548_Init to initialize the SDK. Register callback functions When radar data packets are received, SDK will notify user via callback functions. There are two kinds of callbacks available: Call Ars548_SetRadarMessageCallback to set a callback to get raw radar message data. Call Ars548_SetTargetListCallback to set a callback to get parsed radar target info data from SDK. Start receiving Call Ars548_StartReceive to start the receive thread. Use data In the callback set by Ars548_SetRadarMessageCallback, use the raw radar message data based on the message type ID. In the callback set by Ars548_SetTargetListCallback, use the parsed target info data from SDK. Modify radar configuration Configure sensor configuration of the radar via Ars548_SetSensorConfig. Configure filter configuration of the radar via Ars548_SetFilterConfig. Deinitialization Call Ars548_StopReceive to stop receiving data. Call Ars548_UnInit to deinitialize SDK. Call Ars548_Init to initialize the SDK(调用 Ars548_Init 初始化 SDK) Ars548_Init() ARS548DLL_API HINSTANCE WINAPI Ars548_Init ( ) Initialization ReturnsReturns an instance ID which should be passed as the first parameter in subsequent calls to other SDK functions.See alsoArs548_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 ReturnsReturns 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 ReturnsReturns 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 ReturnsReturns 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 ReturnsReturns ARS548_OK for success, other values for failure.See alsoArs548_StopReceive ◆ Ars548_StopReceive() ARS548DLL_API int WINAPI Ars548_StopReceive ( HINSTANCE hInst ) Stop receiving radar data Parameters hInst Instance ID ReturnsReturns ARS548_OK for success, other values for failure.See alsoArs548_StartReceive ◆ Ars548_UnInit() ARS548DLL_API void WINAPI Ars548_UnInit ( HINSTANCE hInst ) Deinitialization Parameters hInst Instance ID returned by Ars548_Init. See alsoArs548_Init (待续)