|
Safe API Framework 0.1.0 build 384e6ae
Layered API framework for safety-related applications (ERTMS RBC reference targeting CENELEC EN 50128 SIL 4)
|
Operations vtable implemented by a concrete ProtocolAdapter. More...
#include <rte_protocol_adapter.h>
Data Fields | |
| rte_status_t(*) | open (void *storage, size_t storage_size, const rte_protocol_config_t *config, const rte_os_socket_ops_t *os_sockets, rte_protocol_handle_t *out_handle) |
| Opens and initializes a protocol adapter endpoint. | |
| rte_status_t(*) | send (rte_protocol_handle_t handle, const void *data, size_t size, rte_duration_ms_t timeout_ms) |
| Sends a message over the protocol adapter. | |
| rte_status_t(*) | receive (rte_protocol_handle_t handle, void *out_buf, size_t buffer_size, rte_duration_ms_t timeout_ms) |
| Receives a message from the protocol adapter. | |
| rte_status_t(*) | close (rte_protocol_handle_t handle) |
| Closes the protocol adapter endpoint. | |
Operations vtable implemented by a concrete ProtocolAdapter.
Definition at line 98 of file rte_protocol_adapter.h.
| rte_status_t(*) rte_protocol_adapter_ops_t::open(void *storage, size_t storage_size, const rte_protocol_config_t *config, const rte_os_socket_ops_t *os_sockets, rte_protocol_handle_t *out_handle) |
Opens and initializes a protocol adapter endpoint.
| storage | Caller-allocated memory buffer for adapter state. Must not be NULL. |
| storage_size | Size of storage buffer in bytes. |
| config | Adapter configuration. Must not be NULL. |
| os_sockets | Vtable of raw OS socket operations (may be NULL if protocol is standalone e.g. DDS). |
| out_handle | Output handle. Must not be NULL. |
Definition at line 108 of file rte_protocol_adapter.h.
| rte_status_t(*) rte_protocol_adapter_ops_t::send(rte_protocol_handle_t handle, const void *data, size_t size, rte_duration_ms_t timeout_ms) |
Sends a message over the protocol adapter.
| handle | Valid protocol handle. |
| data | Message buffer. Must not be NULL. |
| size | Size of message in bytes. |
| timeout_ms | Maximum time to wait. |
Definition at line 120 of file rte_protocol_adapter.h.
| rte_status_t(*) rte_protocol_adapter_ops_t::receive(rte_protocol_handle_t handle, void *out_buf, size_t buffer_size, rte_duration_ms_t timeout_ms) |
Receives a message from the protocol adapter.
| handle | Valid protocol handle. |
| out_buf | Output buffer. Must not be NULL. |
| buffer_size | Capacity of output buffer. |
| timeout_ms | Maximum time to wait. |
Definition at line 130 of file rte_protocol_adapter.h.
| rte_status_t(*) rte_protocol_adapter_ops_t::close(rte_protocol_handle_t handle) |
Closes the protocol adapter endpoint.
| handle | Valid protocol handle. |
Definition at line 137 of file rte_protocol_adapter.h.