VSF Documented
|
#include "component/usb/vsf_usb_cfg.h"
#include "component/usb/common/class/MSC/vsf_usb_MSC.h"
#include "./vsf_usbd_MSC_desc.h"
#include "component/scsi/vsf_scsi.h"
#include "utilities/ooc_class.h"
Go to the source code of this file.
Data Structures | |
union | vk_usbd_msc_scsi_ctx_t |
class | vk_usbd_msc_t |
Macros | |
#define | USB_MSC_PARAM(__BULK_IN_EP, __BULK_OUT_EP, __STREAM, __MAX_LUN, __SCSI_PDEVS) |
#define | USB_MSC_IFS_NUM 1 |
#define | USB_MSCBOT_IFS_NUM USB_MSC_IFS_NUM |
#define | USB_MSC_IFS(__MSC_PARAM) USB_IFS(&vk_usbd_msc, &(__MSC_PARAM)) |
#define | __usbd_mscbot_desc(__name, __ifs, __i_func, __bulk_in_ep, __bulk_out_ep, __bulk_ep_size) USB_DESC_MSCBOT((__ifs), 4 + (__i_func), (__bulk_in_ep), (__bulk_out_ep), (__bulk_ep_size)) |
#define | __usbd_mscbot_desc_iad(__name, __ifs, __i_func, __bulk_in_ep, __bulk_out_ep, __bulk_ep_size) USB_DESC_MSCBOT_IAD((__ifs), 4 + (__i_func), (__bulk_in_ep), (__bulk_out_ep), (__bulk_ep_size)) |
#define | __usbd_mscbot_func(__name, __func_id, __str_func, __i_func, __ifs, __bulk_in_ep, __bulk_out_ep, __bulk_ep_size, __stream, ...) |
#define | __usbd_msc_ifs(__name, __func_id) USB_MSC_IFS(__##__name##_MSC##__func_id) |
#define | usbd_mscbot_desc(__name, __func_id) |
#define | usbd_mscbot_desc_iad(__name, __func_id) |
#define | usbd_mscbot_desc_table(__name, __func_id) usbd_func_str_desc_table(__name, __func_id) |
#define | usbd_mscbot_func(__name, __func_id, __str_func, __i_func, __ifs, __bulk_in_ep, __bulk_out_ep, __bulk_ep_size, __stream, ...) |
#define | usbd_mscbot_ifs(__name, __func_id) __usbd_msc_ifs(__name, __func_id) |
#define | usbd_mscbot_scsi_config(__name, __func_id, __scsi_idx, __is_inited) |
Typedefs | |
typedef union vk_usbd_msc_scsi_ctx_t | vk_usbd_msc_scsi_ctx_t |
Functions | |
void | vk_usbd_mscbot_scsi_config (vk_usbd_msc_t *msc, uint8_t idx, bool is_inited) |
Variables | |
const vk_usbd_class_op_t | vk_usbd_msc |
#define USB_MSC_PARAM | ( | __BULK_IN_EP, | |
__BULK_OUT_EP, | |||
__STREAM, | |||
__MAX_LUN, | |||
__SCSI_PDEVS | |||
) |
#define USB_MSC_IFS_NUM 1 |
#define USB_MSCBOT_IFS_NUM USB_MSC_IFS_NUM |
#define USB_MSC_IFS | ( | __MSC_PARAM | ) | USB_IFS(&vk_usbd_msc, &(__MSC_PARAM)) |
#define __usbd_mscbot_desc | ( | __name, | |
__ifs, | |||
__i_func, | |||
__bulk_in_ep, | |||
__bulk_out_ep, | |||
__bulk_ep_size | |||
) | USB_DESC_MSCBOT((__ifs), 4 + (__i_func), (__bulk_in_ep), (__bulk_out_ep), (__bulk_ep_size)) |
#define __usbd_mscbot_desc_iad | ( | __name, | |
__ifs, | |||
__i_func, | |||
__bulk_in_ep, | |||
__bulk_out_ep, | |||
__bulk_ep_size | |||
) | USB_DESC_MSCBOT_IAD((__ifs), 4 + (__i_func), (__bulk_in_ep), (__bulk_out_ep), (__bulk_ep_size)) |
#define __usbd_mscbot_func | ( | __name, | |
__func_id, | |||
__str_func, | |||
__i_func, | |||
__ifs, | |||
__bulk_in_ep, | |||
__bulk_out_ep, | |||
__bulk_ep_size, | |||
__stream, | |||
... | |||
) |
#define __usbd_msc_ifs | ( | __name, | |
__func_id | |||
) | USB_MSC_IFS(__##__name##_MSC##__func_id) |
#define usbd_mscbot_desc | ( | __name, | |
__func_id | |||
) |
#define usbd_mscbot_desc_iad | ( | __name, | |
__func_id | |||
) |
#define usbd_mscbot_desc_table | ( | __name, | |
__func_id | |||
) | usbd_func_str_desc_table(__name, __func_id) |
#define usbd_mscbot_func | ( | __name, | |
__func_id, | |||
__str_func, | |||
__i_func, | |||
__ifs, | |||
__bulk_in_ep, | |||
__bulk_out_ep, | |||
__bulk_ep_size, | |||
__stream, | |||
... | |||
) |
#define usbd_mscbot_ifs | ( | __name, | |
__func_id | |||
) | __usbd_msc_ifs(__name, __func_id) |
#define usbd_mscbot_scsi_config | ( | __name, | |
__func_id, | |||
__scsi_idx, | |||
__is_inited | |||
) |
typedef union vk_usbd_msc_scsi_ctx_t vk_usbd_msc_scsi_ctx_t |
void vk_usbd_mscbot_scsi_config | ( | vk_usbd_msc_t * | msc, |
uint8_t | idx, | ||
bool | is_inited | ||
) |
|
extern |