18#ifndef __VSF_DISTBUS_H__
19#define __VSF_DISTBUS_H__
24#if VSF_USE_DISTBUS == ENABLED
28#if defined(__VSF_DISTBUS_CLASS_IMPLEMENT)
29# define __VSF_CLASS_IMPLEMENT__
30#elif defined(__VSF_DISTBUS_CLASS_INHERIT__)
31# define __VSF_CLASS_INHERIT__
43#if VSF_DISTBUS_CFG_DEBUG == ENABLED
44# define __vsf_distbus_trace(...) vsf_trace_debug(__VA_ARGS__)
45# define __vsf_distbus_trace_buffer(__ptr, __size) vsf_trace_buffer(VSF_TRACE_DEBUG, (__ptr), (__size))
47# define __vsf_distbus_trace(...)
48# define __vsf_distbus_trace_buffer(__ptr, __size)
137#ifdef __VSF_DISTBUS_CLASS_INHERIT__
154#undef __VSF_DISTBUS_CLASS_IMPLEMENT
155#undef __VSF_DISTBUS_CLASS_INHERIT__
vsf_err_t
Definition __type.h:42
Definition vsf_distbus.h:68
Definition vsf_distbus.h:86
Definition vsf_distbus.h:119
unsigned short uint16_t
Definition lvgl.h:41
unsigned int uint32_t
Definition lvgl.h:43
unsigned char uint8_t
Definition lvgl.h:40
#define vsf_dcl_class
Definition ooc_class.h:46
#define vsf_class(__name)
Definition ooc_class.h:48
unsigned int uint_fast32_t
Definition stdint.h:27
Definition vsf_distbus.h:96
void * transport
Definition vsf_distbus.h:97
bool(* recv)(void *transport, uint8_t *buffer, uint_fast32_t size, void *p, void(*on_recv)(void *p))
Definition vsf_distbus.h:102
bool(* init)(void *transport, void *p, void(*on_inited)(void *p))
Definition vsf_distbus.h:98
bool(* send)(void *transport, uint8_t *buffer, uint_fast32_t size, void *p, void(*on_sent)(void *p))
Definition vsf_distbus.h:100
Definition vsf_distbus.h:105
void(* free_msg)(void *msg)
Definition vsf_distbus.h:109
Definition vsf_distbus.h:113
vsf_distbus_bus_op_t bus
Definition vsf_distbus.h:114
vsf_distbus_on_error_t on_error
Definition vsf_distbus.h:116
vsf_distbus_mem_op_t mem
Definition vsf_distbus.h:115
Definition vsf_distbus.h:78
uint32_t mtu
Definition vsf_distbus.h:79
vsf_distbus_msghandler_t handler
Definition vsf_distbus.h:83
uint8_t flag
Definition vsf_distbus.h:82
uint16_t type
Definition vsf_distbus.h:80
uint8_t addr_range
Definition vsf_distbus.h:81
Definition vsf_list.h:876
Definition vsf_list.h:872
vsf_distbus_msg_t * vsf_distbus_alloc_msg(vsf_distbus_t *distbus, uint_fast32_t size, uint8_t **buf)
Definition vsf_distbus.c:59
void vsf_distbus_free_msg(vsf_distbus_t *distbus, vsf_distbus_msg_t *msg)
Definition vsf_distbus.c:74
void vsf_distbus_send_msg(vsf_distbus_t *distbus, vsf_distbus_service_t *service, vsf_distbus_msg_t *msg)
Definition vsf_distbus.c:114
vsf_err_t vsf_distbus_init(vsf_distbus_t *distbus)
Definition vsf_distbus.c:226
vsf_err_t vsf_distbus_start(vsf_distbus_t *distbus)
Definition vsf_distbus.c:243
void(* vsf_distbus_on_error_t)(vsf_distbus_t *distbus)
Definition vsf_distbus.h:112
bool(* vsf_distbus_msghandler_t)(vsf_distbus_t *bus, vsf_distbus_service_t *service, vsf_distbus_msg_t *msg)
Definition vsf_distbus.h:58
void vsf_distbus_register_service(vsf_distbus_t *distbus, vsf_distbus_service_t *service)
Definition vsf_distbus.c:258
uint32_t size
Definition vsf_memfs.h:50
struct vk_romfs_header_t VSF_CAL_PACKED