Wellcome to ARS548 SDK
Loading...
Searching...
No Matches
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.c.nosp@m.hen@.nosp@m.adas-.nosp@m.engi.nosp@m.neeri.nosp@m.ng.d.nosp@m.e
Version
1.0

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
hInstInstance 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
hInstInstance ID
cfgfilter 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
hInstInstance ID
pCallbackPointer to callback function

◆ Ars548_SetSensorConfig()

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

Set radar sensor configuration

Parameters
hInstInstance ID
cfgsensor 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
hInstInstance ID
pCallbackPointer to callback function

◆ Ars548_StartReceive()

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

Start receiving radar data

Parameters
hInstInstance ID
lpszBindIPNetwork interface IP connected to radar
lpszRadarIPRadar 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
hInstInstance 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
hInstInstance ID returned by Ars548_Init.
See also
Ars548_Init