18#ifndef __VSF_SERVICE_STREAM_WRITER_H__
19#define __VSF_SERVICE_STREAM_WRITER_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_WRITER_CLASS_IMPLEMENT)
40# define __PLOOC_CLASS_IMPLEMENT__
41# undef __VSF_STREAM_WRITER_CLASS_IMPLEMENT
42#elif defined(__VSF_STREAM_WRITER_CLASS_INHERIT__)
43# define __PLOOC_CLASS_INHERIT__
44# undef __VSF_STREAM_WRITER_CLASS_INHERIT__
65 implement(vsf_stream_src_t)
68 vsf_pbuf_t *current_ptr;
73end_def_class(vsf_stream_writer_t)
81 vsf_pbuf_t * (*New) ( vsf_stream_writer_t *obj_ptr,
85 vsf_pbuf_t *ptOldBlock);
111 vsf_pbuf_t *ptOldBlock);
vsf_err_t
Definition __type.h:42
def_interface(i_adc_t) i_peripheral_t
vsf_err_t(* Init)(vsf_adc_cfg_t *pCfg)
Definition adc_interface.h:38
struct vsf_stream_tx_t vsf_stream_tx_t
Definition interface.h:34
unsigned short uint16_t
Definition lvgl.h:41
unsigned char uint8_t
Definition lvgl.h:40
unsigned char uint_fast8_t
Definition stdint.h:23
int int_fast32_t
Definition stdint.h:26
unsigned short uint_fast16_t
Definition stdint.h:25
Definition vsf_stream_base.h:68
fsm_rt_t
Definition vsf_fsm.h:315
int_fast32_t int_fast32_t nBestSize
Definition vsf_pbuf.h:79
int_fast32_t nNoLessThan
Definition vsf_pbuf.h:78
const i_stream_writer_t VSF_STREAM_WRITER
Definition vsf_stream_writer.c:37
declare_class(vsf_stream_writer_t)
vsf_stream_tx_t *(* GetTX)(vsf_stream_writer_t *obj_ptr)
Definition vsf_stream_writer.h:78
const vsf_stream_src_cfg_t * cfg_ptr
Definition vsf_stream_writer.h:77
def_class(vsf_stream_writer_t, which(vsf_stream_src_t), private:vsf_pbuf_t *current_ptr;uint16_t hwOffset;uint16_t hwBufferSize;) end_def_class(vsf_stream_writer_t) def_interface(i_stream_writer_t) vsf_err_t(*Init)(vsf_stream_writer_t *obj_ptr
bool(* WriteByte)(vsf_stream_writer_t *obj_ptr, uint_fast8_t chByte)
Definition vsf_stream_writer.h:89
vsf_err_t vsf_stream_writer_send_pbuf(vsf_stream_writer_t *obj_ptr, vsf_pbuf_t *ptOldBlock)
Definition vsf_stream_writer.c:91
bool vsf_stream_writer_write_byte(vsf_stream_writer_t *obj_ptr, uint_fast8_t chByte)
Definition vsf_stream_writer.c:151
vsf_err_t(* Send)(vsf_stream_writer_t *obj_ptr, vsf_pbuf_t *ptOldBlock)
Definition vsf_stream_writer.h:84
vsf_err_t vsf_stream_writer_init(vsf_stream_writer_t *obj_ptr, const vsf_stream_src_cfg_t *cfg_ptr)
Definition vsf_stream_writer.c:60
fsm_rt_t(* Flush)(vsf_stream_writer_t *obj_ptr)
Definition vsf_stream_writer.h:94
int_fast32_t vsf_stream_writer_write(vsf_stream_writer_t *obj_ptr, uint8_t *buffer_ptr, uint_fast16_t u16_size)
Definition vsf_stream_writer.c:104
int_fast32_t(* Write)(vsf_stream_writer_t *obj_ptr, uint8_t *buffer_ptr, uint_fast16_t u16_size)
Definition vsf_stream_writer.h:91
end_def_interface(i_stream_writer_t) extern const i_stream_writer_t VSF_STREAM_WRITER
fsm_rt_t vsf_stream_writer_flush(vsf_stream_writer_t *obj_ptr)
Definition vsf_stream_writer.c:157
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