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.c File Reference

Validation and dispatch for the named channel service. More...

Include dependency graph for sapi_channel_service.c:

Go to the source code of this file.

Functions

static sapi_status_t validate_backend (void)
sapi_status_t sapi_channel_service_register_backend (const sapi_channel_service_backend_t *backend)
sapi_status_t sapi_channel_service_setup (sapi_channel_service_t *storage, const char *channel_name)
sapi_status_t sapi_channel_service_read (sapi_channel_service_t *storage, void *data, size_t data_size, sapi_duration_ms_t timeout_ms)
sapi_status_t sapi_channel_service_send (sapi_channel_service_t *storage, const void *data, size_t data_size, sapi_duration_ms_t timeout_ms)
sapi_status_t sapi_channel_service_close (sapi_channel_service_t *storage)

Variables

static const sapi_channel_service_backend_ts_backend

Detailed Description

Validation and dispatch for the named channel service.

Definition in file sapi_channel_service.c.

Function Documentation

◆ validate_backend()

sapi_status_t validate_backend ( void )
static

Definition at line 10 of file sapi_channel_service.c.

◆ sapi_channel_service_register_backend()

sapi_status_t sapi_channel_service_register_backend ( const sapi_channel_service_backend_t * backend)

Definition at line 20 of file sapi_channel_service.c.

◆ sapi_channel_service_setup()

sapi_status_t sapi_channel_service_setup ( sapi_channel_service_t * storage,
const char * channel_name )

Definition at line 31 of file sapi_channel_service.c.

◆ sapi_channel_service_read()

sapi_status_t sapi_channel_service_read ( sapi_channel_service_t * storage,
void * data,
size_t data_size,
sapi_duration_ms_t timeout_ms )

Definition at line 47 of file sapi_channel_service.c.

◆ sapi_channel_service_send()

sapi_status_t sapi_channel_service_send ( sapi_channel_service_t * storage,
const void * data,
size_t data_size,
sapi_duration_ms_t timeout_ms )

Definition at line 66 of file sapi_channel_service.c.

◆ sapi_channel_service_close()

sapi_status_t sapi_channel_service_close ( sapi_channel_service_t * storage)

Definition at line 85 of file sapi_channel_service.c.

Variable Documentation

◆ s_backend

const sapi_channel_service_backend_t* s_backend
static

Definition at line 8 of file sapi_channel_service.c.