USB Component  Version 6.12.0
MDK Middleware for USB Device and Host Communication
 All Data Structures Functions Variables Enumerations Enumerator Groups Pages
USBD_MSC.h
1 /*------------------------------------------------------------------------------
2  * MDK Middleware - Component ::USB:Host:MSC
3  * Copyright (c) 2004-2015 ARM Germany GmbH. All rights reserved.
4  *------------------------------------------------------------------------------
5  * Name: USBD_MSC_n.h
6  * Purpose: Functions for media ownership control between USB and File System
7  * Rev.: V6.3
8  *----------------------------------------------------------------------------*/
9 
10 #ifndef USBD_MSCn_H
11 #define USBD_MSCn_H
12 
13 #include "stdint.h" // data type definitions
14 
15 #define USBD_MSCn_MEDIA_OWN_USB (1U )
16 #define USBD_MSCn_MEDIA_OWN_CHG (1U<<1)
17 
18 #define USBD_MSCn_OK 0
19 #define USBD_MSCn_ERROR -1
20 
21 
26 extern int32_t USBD_MSCn_SetMediaOwnerUSB (void);
27 
28 
33 extern int32_t USBD_MSCn_SetMediaOwnerFS (void);
34 
35 #endif
int32_t USBD_MSCn_SetMediaOwnerFS(void)
Set File System as media owner.
int32_t USBD_MSCn_SetMediaOwnerUSB(void)
Set USB as media owner.