VSF Documented
Macros | Variables
vsf_block_stream.c File Reference
#include "service/vsf_service_cfg.h"
#include "../vsf_simple_stream.h"
#include "./vsf_block_stream.h"
#include "kernel/vsf_kernel.h"

Macros

#define __VSF_SIMPLE_STREAM_CLASS_INHERIT__
 
#define __VSF_BLOCK_STREAM_CLASS_IMPLEMENT
 
#define VSF_BLOCK_STREAM_CFG_PROTECT_LEVEL   interrupt
 
#define __vsf_block_stream_protect   vsf_protect(VSF_BLOCK_STREAM_CFG_PROTECT_LEVEL)
 
#define __vsf_block_stream_unprotect   vsf_unprotect(VSF_BLOCK_STREAM_CFG_PROTECT_LEVEL)
 

Variables

const vsf_stream_op_t vsf_block_stream_op
 

Macro Definition Documentation

◆ __VSF_SIMPLE_STREAM_CLASS_INHERIT__

#define __VSF_SIMPLE_STREAM_CLASS_INHERIT__

◆ __VSF_BLOCK_STREAM_CLASS_IMPLEMENT

#define __VSF_BLOCK_STREAM_CLASS_IMPLEMENT

◆ VSF_BLOCK_STREAM_CFG_PROTECT_LEVEL

#define VSF_BLOCK_STREAM_CFG_PROTECT_LEVEL   interrupt
Note
By default, the driver tries to make all APIs interrupt-safe, ! ! in the case when you want to disable it, ! please use following macro: ! #define VSF_BLOCK_STREAM_CFG_PROTECT_LEVEL none ! ! in the case when you want to use scheduler-safe, ! please use following macro: ! #define VSF_BLOCK_STREAM_CFG_PROTECT_LEVEL scheduler ! ! NOTE: This macro should be defined in vsf_usr_cfg.h

◆ __vsf_block_stream_protect

#define __vsf_block_stream_protect   vsf_protect(VSF_BLOCK_STREAM_CFG_PROTECT_LEVEL)

◆ __vsf_block_stream_unprotect

#define __vsf_block_stream_unprotect   vsf_unprotect(VSF_BLOCK_STREAM_CFG_PROTECT_LEVEL)

Variable Documentation

◆ vsf_block_stream_op

const vsf_stream_op_t vsf_block_stream_op
Initial value:
= {
.init = __vsf_block_stream_init,
.fini = __vsf_block_stream_init,
.write = __vsf_block_stream_write,
.read = __vsf_block_stream_read,
.get_buff_length = __vsf_block_stream_get_buff_length,
.get_data_length = __vsf_block_stream_get_data_length,
.get_avail_length = __vsf_block_stream_get_avail_length,
.get_wbuf = __vsf_block_stream_get_wbuf,
.get_rbuf = __vsf_block_stream_get_rbuf,
}