Function SimOneAPI::SetV2XInfoUpdateCB
-
Defined in File SimOneV2XAPI.h
Function Documentation
-
bool
SimOneAPI
::
SetV2XInfoUpdateCB
(
void
(
*
cb
)
(
const
char
*
mainVehicleId
,
const
char
*
sensorId
,
SimOne_Data_V2XNFS
*
pDetections
)
)
-
获得对应车辆编号V2X中的UPER编码之后的v2x消息更新回调.
Callback for Updates on V2X Messages After UPER Encoding for the Corresponding Vehicle Identifier in V2X
此函数用于注册通过V2X中对应车辆编号获取V2X中的UPER编码之后的v2x消息的回调函数.
This function is used to register a callback function for getting the UPER ASN message by the corresponding traffic-vehicle identifier in V2X
- 参数 :
-
-
cb – [in]
通过V2X中对应车辆编号获取V2X中的UPER编码之后的v2x消息的回调
Callback function for getting the UPER ASN message by the corresponding traffic-vehicle identifier in V2X
-
mainVehicleId – [out]
主车的ID
Id of the main vehicle
-
sensorId – [out]
OBU传感器ID
OBU sensor Id
-
pDetections – [out] V2XASN信息 V2XASN data
-
- 返回 :
-
如果注册回调函数成功,则返回true,否则返回false
Returns true if the callback registration is successful, false otherwise.