M471M/R1/S BSP V3.01.000
The Board Support Package for M4521
Functions | Variables
msc_xfer.c File Reference

Lightweight USB mass storage class transfer layer. More...

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "NuMicro.h"
#include "diskio.h"
#include "usb.h"
#include "msc.h"
Include dependency graph for msc_xfer.c:

Go to the source code of this file.

Functions

static void bulk_xfer_done (UTR_T *utr)
 
int msc_bulk_transfer (MSC_T *msc, EP_INFO_T *ep, uint8_t *data_buff, int data_len, int timeout_ticks)
 
static int do_scsi_command (MSC_T *msc, uint8_t *buff, uint32_t data_len, int bIsDataIn, int timeout_ticks)
 
int run_scsi_command (MSC_T *msc, uint8_t *buff, uint32_t data_len, int bIsDataIn, int timeout_ticks)
 

Variables

static int __tag = 0x10e24388
 

Detailed Description

Lightweight USB mass storage class transfer layer.

SPDX-License-Identifier: Apache-2.0

Definition in file msc_xfer.c.

Function Documentation

◆ bulk_xfer_done()

static void bulk_xfer_done ( UTR_T *  utr)
static

Definition at line 22 of file msc_xfer.c.

Here is the caller graph for this function:

◆ do_scsi_command()

static int do_scsi_command ( MSC_T *  msc,
uint8_t *  buff,
uint32_t  data_len,
int  bIsDataIn,
int  timeout_ticks 
)
static

Definition at line 66 of file msc_xfer.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ msc_bulk_transfer()

int msc_bulk_transfer ( MSC_T *  msc,
EP_INFO_T *  ep,
uint8_t *  data_buff,
int  data_len,
int  timeout_ticks 
)

Definition at line 27 of file msc_xfer.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ run_scsi_command()

int run_scsi_command ( MSC_T *  msc,
uint8_t *  buff,
uint32_t  data_len,
int  bIsDataIn,
int  timeout_ticks 
)

Definition at line 112 of file msc_xfer.c.

Here is the call graph for this function:

Variable Documentation

◆ __tag

int __tag = 0x10e24388
static

Definition at line 19 of file msc_xfer.c.