18#ifndef __VSF_SERVICE_STREAM_READER_H__
19#define __VSF_SERVICE_STREAM_READER_H__
27#if VSF_USE_STREAM == ENABLED
29#include "../pool/vsf_pool.h"
37#define __PLOOC_CLASS_USE_STRICT_TEMPLATE__
39#if defined(__VSF_STREAM_READER_CLASS_IMPLEMENT)
40# define __PLOOC_CLASS_IMPLEMENT__
41# undef __VSF_STREAM_READER_CLASS_IMPLEMENT
42#elif defined(__VSF_STREAM_READER_CLASS_INHERIT__)
43# define __PLOOC_CLASS_INHERIT__
44# undef __VSF_STREAM_READER_CLASS_INHERIT__
64 implement(vsf_stream_usr_t)
67 vsf_pbuf_t *current_ptr;
72end_def_class(vsf_stream_reader_t)
79#if VSF_STREAM_CFG_SUPPORT_OPEN_CLOSE == ENABLED
80 void (*
Open)( vsf_stream_reader_t *obj_ptr);
81 void (*
Close)( vsf_stream_reader_t *obj_ptr);
84 vsf_pbuf_t * (*Fetch) (vsf_stream_reader_t *obj_ptr);
104 const vsf_stream_reader_cfg_t *
cfg_ptr);
vsf_err_t
Definition __type.h:42
vsf_err_t(* Init)(vsf_adc_cfg_t *pCfg)
Definition adc_interface.h:38
unsigned short uint16_t
Definition lvgl.h:41
unsigned char uint8_t
Definition lvgl.h:40
int int_fast32_t
Definition stdint.h:26
unsigned short uint_fast16_t
Definition stdint.h:25
vsf_stream_usr_cfg_t
Definition vsf_stream_base.h:118
const i_stream_reader_t VSF_STREAM_READER
Definition vsf_stream_reader.c:37
void(* Open)(vsf_stream_reader_t *obj_ptr)
Definition vsf_stream_reader.h:80
vsf_pbuf_t * vsf_stream_reader_fetch_pbuf(vsf_stream_reader_t *obj_ptr)
Definition vsf_stream_reader.c:70
void(* Close)(vsf_stream_reader_t *obj_ptr)
Definition vsf_stream_reader.h:81
const vsf_stream_reader_cfg_t * cfg_ptr
Definition vsf_stream_reader.h:78
bool vsf_stream_reader_read_byte(vsf_stream_reader_t *obj_ptr, uint8_t *byte_ptr)
Definition vsf_stream_reader.c:142
int_fast32_t vsf_stream_reader_read(vsf_stream_reader_t *obj_ptr, uint8_t *buffer_ptr, uint_fast16_t u16_size)
Definition vsf_stream_reader.c:96
int_fast32_t(* Read)(vsf_stream_reader_t *obj_ptr, uint8_t *buffer_ptr, uint_fast16_t u16_size)
Definition vsf_stream_reader.h:89
declare_class(vsf_stream_reader_t)
end_def_interface(i_stream_reader_t) extern const i_stream_reader_t VSF_STREAM_READER
vsf_err_t vsf_stream_reader_init(vsf_stream_reader_t *obj_ptr, const vsf_stream_reader_cfg_t *cfg_ptr)
Definition vsf_stream_reader.c:60
bool(* ReadByte)(vsf_stream_reader_t *obj_ptr, uint8_t *byte_ptr)
Definition vsf_stream_reader.h:87
def_class(vsf_stream_reader_t, which(vsf_stream_usr_t), private:vsf_pbuf_t *current_ptr;uint16_t hwOffset;uint16_t hwBufferSize;) end_def_class(vsf_stream_reader_t) typedef vsf_stream_usr_cfg_t vsf_stream_reader_cfg_t
def_interface(i_stream_reader_t) vsf_err_t(*Init)(vsf_stream_reader_t *obj_ptr
which(union { inherit(vsf_msgt_container_t) vsf_tgui_control_t };vsf_tgui_v_container_t) implement_ex(struct
Definition vsf_tgui_control.h:562