ARS548 radar communication SDK.
More...
#include <unistd.h>
#include <stdint.h>
Go to the source code of this file.
|
#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 |
|
|
|
|
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.
|
|
|
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.
|
|
ARS548 radar communication SDK.
- Author
- Jun jun.c.nosp@m.hen@.nosp@m.adas-.nosp@m.engi.nosp@m.neeri.nosp@m.ng.d.nosp@m.e
- Version
- 1.0
- Copyright
- ADAS engineering (C) 2023
◆ 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
-
- Returns
- Returns ARS548_OK for success, other values for failure.
◆ Ars548_SetFilterConfig()
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()
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 | ) |
|
◆ Ars548_UnInit()
ARS548DLL_API void WINAPI Ars548_UnInit |
( |
HINSTANCE |
hInst | ) |
|