前提:要使用CAPL函数,必须调用 SomeIP_IL.vmodule (在节点的配置里添加此库文件,.vmodule会自动适配32/64位)
1、Callback Functions 回调函数
Functions |
Short Description |
<OnSomeIpEventReceived> |
CAPL handler to receive events. |
<OnSomeIpFieldNotification> |
CAPL handler to receive field change notifications. |
<OnSomeIpMethodError> |
A callback function with this signature must be passed to the CAPL function SomeIpCreateMethodCall. |
<OnSomeIpMethodRequest> |
CAPL handler to request a method. |
<OnSomeIpMethodResponse> |
CAPL handler to response a method. |
<OnSomeIpPrepareEvent> |
CAPL handler to prepare an event before sending. |
OnSomeIpClientAepConnected |
This callback gets called when a client-side SOME/IP Application Endpoint gets connected to a remote peer. |
OnSomeIpNewServerAep |
This callback gets called when a server-side SOME/IP Application Endpoint gets opened. |
OnSomeIpClosedIPv6TCPConnection |
CAPL handler to be called after a IL’s TCP connection has been closed |
OnSomeIpEstablishedIPv6TCPConnection |
CAPL handler to be called after an incoming or outgoing TCP connection. |
OnSomeIpClosedTLSConnection |
This callback will be called after a (D)TLS connection between the local endpoint and remote endpoint has been closed and it indicates whether the connection was closed by peer. |
OnSomeIpEstablishedTLSConnection |
This callback will be called after a (D)TLS connection between the local endpoint and remote endpoint has been established. |
OnSomeIpMessage |
CAPL handler to receive SOME/IP messages. |
OnSomeIpProcessRxMessage |
CAPL handler to be called when the IL has received a SOME/IP message. |
OnSomeIpProcessTxMessage |
CAPL handler to be called when the IL wants to send a SOME/IP message. |
OnSomeIpSDClientEventGroupStatusChanged |
CAPL handler to be called when the status of an Event Group changes. |
OnSomeIpSDClientServiceStatusChanged |
CAPL handler to be called when the status of a service changes. |
OnSomeIpSDServerEventGroupStatusChanged |
CAPL handler to be called when a Client executes the Require Service or Release Service. |
OnSomeIpSDServerEventGroupStatusChangedIPv6 |
CAPL handler to be called when a Client executes the Require Service or Release Service. |
2、Client-Side API 客户端API
Functions |
Short Description |
SomeIpAddConsumedEventGroup |
Adds an Event Group to a Consumed Service Instance |
SomeIpCallMethod |
Sends a request to the server. |
SomeIpCreateConsumedServiceInstance |
Creates a Consumed Service Instance. |