| M480 BSP V3.05.001 The Board Support Package for M480 Series

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"`

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.

Version
  V1.00 SPDX-License-Identifier: Apache-2.0

Copyright
  (C) 2017-2020 Nuvoton Technology Corp. All rights reserved.

Definition in file msc_xfer.c.

## Function Documentation

## ◆ bulk_xfer_done()

static void bulk_xfer_done | ( | UTR_T * | utr | ) |
| static

Definition at line 23 of file msc_xfer.c.

## ◆ 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 67 of file msc_xfer.c.

## ◆ 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 28 of file msc_xfer.c.

## ◆ 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 113 of file msc_xfer.c.

## Variable Documentation

## ◆ __tag

int __tag = 0x10e24388
| static

Definition at line 20 of file msc_xfer.c.