VSF Documented
|
#include "component/usb/vsf_usb_cfg.h"
#include "kernel/vsf_kernel.h"
#include "./vsf_usbd.h"
#include "./vsf_usbd_drv_ifs.h"
Macros | |
#define | __VSF_EDA_CLASS_INHERIT__ |
#define | __VSF_SIMPLE_STREAM_CLASS_INHERIT__ |
#define | __VSF_USBD_CLASS_IMPLEMENT |
#define | VSF_USBD_CFG_PROTECT_LEVEL interrupt |
#define | __vsf_usbd_protect vsf_protect(VSF_USBD_CFG_PROTECT_LEVEL) |
#define | __vsf_usbd_unprotect vsf_unprotect(VSF_USBD_CFG_PROTECT_LEVEL) |
#define | __vsf_usbd_trace(...) vsf_trace_debug(__VA_ARGS__) |
#define | __vsf_usbd_trace_buffer(__ptr, __size) vsf_trace_buffer(VSF_TRACE_DEBUG, (__ptr), (__size), VSF_TRACE_DF_NEWLINE) |
#define | __vsf_usbd_trace_setup(__req) |
#define | __vsf_usbd_trace_evt(__evt, __value) |
Functions | |
vsf_err_t | vsf_usbd_notify_user (vk_usbd_dev_t *dev, usb_evt_t evt, void *param) |
vk_usbd_desc_t * | vk_usbd_get_descriptor (vk_usbd_desc_t *desc, uint_fast8_t desc_num, uint_fast8_t type, uint_fast8_t index, uint_fast16_t langid) |
vsf_err_t | vk_usbd_ep_stall (vk_usbd_dev_t *dev, uint_fast8_t ep) |
vsf_err_t | vk_usbd_ep_recv (vk_usbd_dev_t *dev, vk_usbd_trans_t *trans) |
vsf_err_t | vk_usbd_ep_send (vk_usbd_dev_t *dev, vk_usbd_trans_t *trans) |
void | vk_usbd_stdreq_status_stage (vk_usbd_dev_t *dev) |
void | vk_usbd_stdreq_data_stage (vk_usbd_dev_t *dev) |
void | vk_usbd_connect (vk_usbd_dev_t *dev) |
void | vk_usbd_disconnect (vk_usbd_dev_t *dev) |
void | vk_usbd_wakeup (vk_usbd_dev_t *dev) |
void | vk_usbd_init (vk_usbd_dev_t *dev) |
void | vk_usbd_fini (vk_usbd_dev_t *dev) |
vsf_err_t | vk_usbd_ep_recv_stream (vk_usbd_ep_stream_t *stream_ep, uint_fast32_t size) |
vsf_err_t | vk_usbd_ep_send_stream (vk_usbd_ep_stream_t *stream_ep, uint_fast32_t size) |
#define __VSF_EDA_CLASS_INHERIT__ |
#define __VSF_SIMPLE_STREAM_CLASS_INHERIT__ |
#define __VSF_USBD_CLASS_IMPLEMENT |
#define VSF_USBD_CFG_PROTECT_LEVEL interrupt |
#define __vsf_usbd_protect vsf_protect(VSF_USBD_CFG_PROTECT_LEVEL) |
#define __vsf_usbd_unprotect vsf_unprotect(VSF_USBD_CFG_PROTECT_LEVEL) |
#define __vsf_usbd_trace | ( | ... | ) | vsf_trace_debug(__VA_ARGS__) |
#define __vsf_usbd_trace_buffer | ( | __ptr, | |
__size | |||
) | vsf_trace_buffer(VSF_TRACE_DEBUG, (__ptr), (__size), VSF_TRACE_DF_NEWLINE) |
#define __vsf_usbd_trace_setup | ( | __req | ) |
#define __vsf_usbd_trace_evt | ( | __evt, | |
__value | |||
) |
vk_usbd_desc_t * vk_usbd_get_descriptor | ( | vk_usbd_desc_t * | desc, |
uint_fast8_t | desc_num, | ||
uint_fast8_t | type, | ||
uint_fast8_t | index, | ||
uint_fast16_t | langid | ||
) |
vsf_err_t vk_usbd_ep_stall | ( | vk_usbd_dev_t * | dev, |
uint_fast8_t | ep | ||
) |
vsf_err_t vk_usbd_ep_recv | ( | vk_usbd_dev_t * | dev, |
vk_usbd_trans_t * | trans | ||
) |
vsf_err_t vk_usbd_ep_send | ( | vk_usbd_dev_t * | dev, |
vk_usbd_trans_t * | trans | ||
) |
void vk_usbd_stdreq_status_stage | ( | vk_usbd_dev_t * | dev | ) |
void vk_usbd_stdreq_data_stage | ( | vk_usbd_dev_t * | dev | ) |
void vk_usbd_connect | ( | vk_usbd_dev_t * | dev | ) |
void vk_usbd_disconnect | ( | vk_usbd_dev_t * | dev | ) |
void vk_usbd_wakeup | ( | vk_usbd_dev_t * | dev | ) |
void vk_usbd_init | ( | vk_usbd_dev_t * | dev | ) |
void vk_usbd_fini | ( | vk_usbd_dev_t * | dev | ) |
vsf_err_t vk_usbd_ep_recv_stream | ( | vk_usbd_ep_stream_t * | stream_ep, |
uint_fast32_t | size | ||
) |
vsf_err_t vk_usbd_ep_send_stream | ( | vk_usbd_ep_stream_t * | stream_ep, |
uint_fast32_t | size | ||
) |