18#ifndef __VSF_MUSB_FDRC_DCD_H__
19#define __VSF_MUSB_FDRC_DCD_H__
25#if VSF_USE_USB_DEVICE == ENABLED && VSF_USBD_USE_DCD_MUSB_FDRC == ENABLED
30#if defined(__VSF_MUSB_FDRC_DCD_CLASS_IMPLEMENT)
31# undef __VSF_MUSB_FDRC_DCD_CLASS_IMPLEMENT
32# define __VSF_CLASS_IMPLEMENT__
44#define vsf_usb_dc_from_musbfdrc_ip(__n, __obj, __drv_name) \
45 __USB_DC_FROM_IP(__n, (__obj), __drv_name, vk_musb_fdrc_usbd)
50 const i_usb_dc_ip_t *
op;
69#if defined(VSF_MUSB_FDRC_NO_EP_IDX) || defined(VSF_MUSB_FDRC_NO_HWFIFO)
82 bool is_last_control_in;
86 bool is_status_notified;
87 bool is_to_notify_status_in_next_isr;
vsf_err_t
Definition __type.h:42
Definition vsf_musb_fdrc_dcd.h:61
unsigned short uint16_t
Definition lvgl.h:41
unsigned char uint8_t
Definition lvgl.h:40
#define vsf_class(__name)
Definition ooc_class.h:48
unsigned char uint_fast8_t
Definition stdint.h:23
unsigned int uint_fast32_t
Definition stdint.h:27
unsigned short uint_fast16_t
Definition stdint.h:25
Definition vsf_template_usb.h:316
Definition vsf_musb_fdrc_dcd.h:49
const i_usb_dc_ip_t * op
Definition vsf_musb_fdrc_dcd.h:50
Definition vsf_musb_fdrc_hw.h:255
vk_av_control_type_t type
Definition vsf_audio.h:170
uint32_t size
Definition vsf_memfs.h:50
void vk_musb_fdrc_usbd_fini(vk_musb_fdrc_dcd_t *usbd)
Definition vsf_musb_fdrc_dcd.c:221
vsf_err_t vk_musb_fdrc_usbd_ep_set_stall(vk_musb_fdrc_dcd_t *usbd, uint_fast8_t ep)
Definition vsf_musb_fdrc_dcd.c:376
void vk_musb_fdrc_usbd_disconnect(vk_musb_fdrc_dcd_t *usbd)
Definition vsf_musb_fdrc_dcd.c:238
vk_musb_fdrc_dcd_ep0state_t
Definition vsf_musb_fdrc_dcd.h:53
@ MUSB_FDRC_USBD_EP0_DATA_IN
Definition vsf_musb_fdrc_dcd.h:56
@ MUSB_FDRC_USBD_EP0_DATA_OUT
Definition vsf_musb_fdrc_dcd.h:57
@ MUSB_FDRC_USBD_EP0_WAIT_SETUP
Definition vsf_musb_fdrc_dcd.h:55
@ MUSB_FDRC_USBD_EP0_STATUS
Definition vsf_musb_fdrc_dcd.h:58
@ MUSB_FDRC_USBD_EP0_IDLE
Definition vsf_musb_fdrc_dcd.h:54
bool vk_musb_fdrc_usbd_ep_is_stalled(vk_musb_fdrc_dcd_t *usbd, uint_fast8_t ep)
Definition vsf_musb_fdrc_dcd.c:401
void vk_musb_fdrc_usbd_get_setup(vk_musb_fdrc_dcd_t *usbd, uint8_t *buffer)
Definition vsf_musb_fdrc_dcd.c:270
vsf_err_t vk_musb_fdrc_usbd_ep_transfer_send(vk_musb_fdrc_dcd_t *usbd, uint_fast8_t ep, uint8_t *buffer, uint_fast32_t size, bool zlp)
Definition vsf_musb_fdrc_dcd.c:547
void vk_musb_fdrc_usbd_set_address(vk_musb_fdrc_dcd_t *usbd, uint_fast8_t addr)
Definition vsf_musb_fdrc_dcd.c:247
uint_fast32_t vk_musb_fdrc_usbd_ep_get_data_size(vk_musb_fdrc_dcd_t *usbd, uint_fast8_t ep)
Definition vsf_musb_fdrc_dcd.c:445
vsf_err_t vk_musb_fdrc_usbd_ep_transfer_recv(vk_musb_fdrc_dcd_t *usbd, uint_fast8_t ep, uint8_t *buffer, uint_fast32_t size)
Definition vsf_musb_fdrc_dcd.c:541
void vk_musb_fdrc_usbd_reset(vk_musb_fdrc_dcd_t *usbd, usb_dc_cfg_t *cfg)
Definition vsf_musb_fdrc_dcd.c:228
uint_fast8_t vk_musb_fdrc_usbd_ep_get_feature(vk_musb_fdrc_dcd_t *usbd, uint_fast8_t ep, uint_fast8_t feature)
Definition vsf_musb_fdrc_dcd.c:286
vsf_err_t vk_musb_fdrc_usbd_init(vk_musb_fdrc_dcd_t *usbd, usb_dc_cfg_t *cfg)
Definition vsf_musb_fdrc_dcd.c:187
vsf_err_t vk_musb_fdrc_usbd_ep_transaction_enable_out(vk_musb_fdrc_dcd_t *usbd, uint_fast8_t ep)
Definition vsf_musb_fdrc_dcd.c:482
void vk_musb_fdrc_usbd_connect(vk_musb_fdrc_dcd_t *usbd)
Definition vsf_musb_fdrc_dcd.c:233
vsf_err_t vk_musb_fdrc_usbd_ep_transaction_read_buffer(vk_musb_fdrc_dcd_t *usbd, uint_fast8_t ep, uint8_t *buffer, uint_fast16_t size)
Definition vsf_musb_fdrc_dcd.c:453
void vk_musb_fdrc_usbd_irq(vk_musb_fdrc_dcd_t *usbd)
Definition vsf_musb_fdrc_dcd.c:563
vsf_err_t vk_musb_fdrc_usbd_ep_clear_stall(vk_musb_fdrc_dcd_t *usbd, uint_fast8_t ep)
Definition vsf_musb_fdrc_dcd.c:422
vsf_err_t vk_musb_fdrc_usbd_ep_transaction_set_data_size(vk_musb_fdrc_dcd_t *usbd, uint_fast8_t ep, uint_fast16_t size)
Definition vsf_musb_fdrc_dcd.c:500
vsf_err_t vk_musb_fdrc_usbd_ep_transaction_write_buffer(vk_musb_fdrc_dcd_t *usbd, uint_fast8_t ep, uint8_t *buffer, uint_fast16_t size)
Definition vsf_musb_fdrc_dcd.c:530
void vk_musb_fdrc_usbd_wakeup(vk_musb_fdrc_dcd_t *usbd)
Definition vsf_musb_fdrc_dcd.c:243
uint_fast16_t vk_musb_fdrc_usbd_get_frame_number(vk_musb_fdrc_dcd_t *usbd)
Definition vsf_musb_fdrc_dcd.c:259
uint_fast16_t vk_musb_fdrc_usbd_ep_get_size(vk_musb_fdrc_dcd_t *usbd, uint_fast8_t ep)
Definition vsf_musb_fdrc_dcd.c:359
uint_fast8_t vk_musb_fdrc_usbd_get_address(vk_musb_fdrc_dcd_t *usbd)
Definition vsf_musb_fdrc_dcd.c:253
uint_fast8_t vk_musb_fdrc_usbd_get_mframe_number(vk_musb_fdrc_dcd_t *usbd)
Definition vsf_musb_fdrc_dcd.c:265
vsf_err_t vk_musb_fdrc_usbd_ep_add(vk_musb_fdrc_dcd_t *usbd, uint_fast8_t ep, usb_ep_type_t type, uint_fast16_t size)
Definition vsf_musb_fdrc_dcd.c:291
void vk_musb_fdrc_usbd_status_stage(vk_musb_fdrc_dcd_t *usbd, bool is_in)
Definition vsf_musb_fdrc_dcd.c:282
usb_ep_type_t
Definition vsf_template_usb.h:277
void(* usb_dc_evthandler_t)(void *param, usb_evt_t evt, uint_fast8_t value)
Definition vsf_template_usb.h:309