Contiki 2.5
Main Page
Related Pages
Modules
Data Structures
Files
Examples
File List
Globals
cpu
avr
dev
usb
storage
ctrl_status.h
Go to the documentation of this file.
1
/* This file has been prepared for Doxygen automatic documentation generation.*/
2
/*! \file ctrl_status.h ********************************************************
3
*
4
* \brief
5
* This file contains the interface :
6
* - between USB <-> MEMORY
7
* OR
8
* - between USB <- Access Memory Ctrl -> Memory
9
*
10
* This interface may be controled by a "Access Memory Control" for :
11
* - include a management of write protect global or specific
12
* - include a management of access password
13
*
14
* \addtogroup usbstick
15
*
16
* \author
17
* Atmel Corporation: http://www.atmel.com \n
18
* Support email: avr@atmel.com
19
******************************************************************************/
20
/*
21
Copyright (c) 2004 ATMEL Corporation
22
All rights reserved.
23
24
Redistribution and use in source and binary forms, with or without
25
modification, are permitted provided that the following conditions are met:
26
27
* Redistributions of source code must retain the above copyright
28
notice, this list of conditions and the following disclaimer.
29
* Redistributions in binary form must reproduce the above copyright
30
notice, this list of conditions and the following disclaimer in
31
the documentation and/or other materials provided with the
32
distribution.
33
* Neither the name of the copyright holders nor the names of
34
contributors may be used to endorse or promote products derived
35
from this software without specific prior written permission.
36
37
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
38
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
39
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
40
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
41
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
42
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
43
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
44
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
45
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
46
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
47
POSSIBILITY OF SUCH DAMAGE.
48
*/
49
50
/**
51
\addtogroup usbstorage
52
@{
53
*/
54
55
#ifndef _CTRL_STATUS_H_
56
#define _CTRL_STATUS_H_
57
58
//_____ D E F I N I T I O N S ______________________________________________
59
60
//! Define control status
61
typedef
enum
62
{
63
CTRL_GOOD =(PASS )
// It is ready
64
, CTRL_FAIL =(FAIL )
// Memory fail
65
, CTRL_NO_PRESENT =(FAIL+1)
// Memory unplug
66
, CTRL_BUSY =(FAIL+2)
// Not initialize
67
}
Ctrl_status
;
68
69
#endif // _CTRL_STATUS_H_
70
/** @} */
Generated on Fri Aug 30 2013 12:34:08 for Contiki 2.5 by
1.8.3.1