Safe API Framework
Layered API framework for safety-related applications (ERTMS RBC reference targeting CENELEC EN 50128 SIL 4)
Loading...
Searching...
No Matches
sapi_channel_service_backend_t Struct Reference

Backend implementation for named channel operations. More...

#include <sapi_channel_service.h>

Data Fields

sapi_status_t(*) setup (sapi_channel_service_storage_t *storage, const char *channel_name)
sapi_status_t(*) read (sapi_channel_service_storage_t *storage, void *data, size_t data_size, sapi_duration_ms_t timeout_ms)
sapi_status_t(*) send (sapi_channel_service_storage_t *storage, const void *data, size_t data_size, sapi_duration_ms_t timeout_ms)
sapi_status_t(*) close (sapi_channel_service_storage_t *storage)

Detailed Description

Backend implementation for named channel operations.

A backend may perform blocking or non-blocking transport work internally, but it must return from each operation within the supplied timeout. The backend owns all transport-specific state and recovery behavior.

Definition at line 42 of file sapi_channel_service.h.

Field Documentation

◆ setup

sapi_status_t(*) sapi_channel_service_backend_t::setup(sapi_channel_service_storage_t *storage, const char *channel_name)

Definition at line 44 of file sapi_channel_service.h.

◆ read

sapi_status_t(*) sapi_channel_service_backend_t::read(sapi_channel_service_storage_t *storage, void *data, size_t data_size, sapi_duration_ms_t timeout_ms)

Definition at line 46 of file sapi_channel_service.h.

◆ send

sapi_status_t(*) sapi_channel_service_backend_t::send(sapi_channel_service_storage_t *storage, const void *data, size_t data_size, sapi_duration_ms_t timeout_ms)

Definition at line 50 of file sapi_channel_service.h.

◆ close

sapi_status_t(*) sapi_channel_service_backend_t::close(sapi_channel_service_storage_t *storage)

Definition at line 54 of file sapi_channel_service.h.


The documentation for this struct was generated from the following file: