VSF Documented
Macros | Functions | Variables
vsf_distbus_stream.c File Reference
#include "service/vsf_service_cfg.h"
#include "../vsf_simple_stream.h"
#include "./vsf_distbus_stream.h"
#include "hal/arch/vsf_arch.h"
#include "service/trace/vsf_trace.h"

Macros

#define __VSF_SIMPLE_STREAM_CLASS_INHERIT__
 
#define __VSF_DISTBUS_CLASS_INHERIT__
 
#define __VSF_DISTBUS_STREAM_CLASS_IMPLEMENT
 

Functions

bool __vsf_distbus_stream_msghandler (vsf_distbus_t *bus, vsf_distbus_service_t *service, vsf_distbus_msg_t *msg)
 
void vsf_distbus_stream_register_service (vsf_distbus_stream_t *distbus_stream)
 

Variables

const vsf_stream_op_t vsf_distbus_stream_op
 

Macro Definition Documentation

◆ __VSF_SIMPLE_STREAM_CLASS_INHERIT__

#define __VSF_SIMPLE_STREAM_CLASS_INHERIT__

◆ __VSF_DISTBUS_CLASS_INHERIT__

#define __VSF_DISTBUS_CLASS_INHERIT__

◆ __VSF_DISTBUS_STREAM_CLASS_IMPLEMENT

#define __VSF_DISTBUS_STREAM_CLASS_IMPLEMENT

Function Documentation

◆ __vsf_distbus_stream_msghandler()

bool __vsf_distbus_stream_msghandler ( vsf_distbus_t bus,
vsf_distbus_service_t service,
vsf_distbus_msg_t msg 
)

◆ vsf_distbus_stream_register_service()

void vsf_distbus_stream_register_service ( vsf_distbus_stream_t distbus_stream)

Variable Documentation

◆ vsf_distbus_stream_op

const vsf_stream_op_t vsf_distbus_stream_op
Initial value:
= {
.init = __vsf_distbus_stream_init,
.fini = __vsf_distbus_stream_init,
.write = __vsf_distbus_stream_write,
.read = __vsf_distbus_stream_read,
.get_buff_length = __vsf_distbus_stream_get_buff_length,
.get_data_length = __vsf_distbus_stream_get_data_length,
.get_avail_length = __vsf_distbus_stream_get_avail_length,
.get_wbuf = __vsf_distbus_stream_get_wbuf,
.get_rbuf = __vsf_distbus_stream_get_rbuf,
}