Debian Codegraph @

ports/cc3200/fatfs/src/drivers/stdcmd.h

raw
1 //*****************************************************************************
2 // stdcmd.h
3 //
4 // Defines standard SD Card commands for CC3200 SDHOST module.
5 //
6 // Copyright (C) 2014 Texas Instruments Incorporated - http://www.ti.com/
7 //
8 //
9 // Redistribution and use in source and binary forms, with or without
10 // modification, are permitted provided that the following conditions
11 // are met:
12 //
13 // Redistributions of source code must retain the above copyright
14 // notice, this list of conditions and the following disclaimer.
15 //
16 // Redistributions in binary form must reproduce the above copyright
17 // notice, this list of conditions and the following disclaimer in the
18 // documentation and/or other materials provided with the
19 // distribution.
20 //
21 // Neither the name of Texas Instruments Incorporated nor the names of
22 // its contributors may be used to endorse or promote products derived
23 // from this software without specific prior written permission.
24 //
25 // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
26 // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
27 // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
28 // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
29 // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
30 // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
31 // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
32 // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
33 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
34 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
35 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
36 //
37 //*****************************************************************************
38
39 #ifndef __STDCMD_H__
40 #define __STDCMD_H__
41
42 //*****************************************************************************
43 // Standard MMC/SD Card Commands
44 //*****************************************************************************
45 #define CMD_GO_IDLE_STATE SDHOST_CMD_0
46 #define CMD_SEND_IF_COND SDHOST_CMD_8|SDHOST_RESP_LEN_48
47 #define CMD_SEND_CSD SDHOST_CMD_9|SDHOST_RESP_LEN_136
48 #define CMD_APP_CMD SDHOST_CMD_55|SDHOST_RESP_LEN_48
49 #define CMD_SD_SEND_OP_COND SDHOST_CMD_41|SDHOST_RESP_LEN_48
50 #define CMD_SEND_OP_COND SDHOST_CMD_1|SDHOST_RESP_LEN_48
51 #define CMD_READ_SINGLE_BLK SDHOST_CMD_17|SDHOST_RD_CMD|SDHOST_RESP_LEN_48
52 #define CMD_READ_MULTI_BLK SDHOST_CMD_18|SDHOST_RD_CMD|SDHOST_RESP_LEN_48|SDHOST_MULTI_BLK
53 #define CMD_WRITE_SINGLE_BLK SDHOST_CMD_24|SDHOST_WR_CMD|SDHOST_RESP_LEN_48
54 #define CMD_WRITE_MULTI_BLK SDHOST_CMD_25|SDHOST_WR_CMD|SDHOST_RESP_LEN_48|SDHOST_MULTI_BLK
55 #define CMD_SELECT_CARD SDHOST_CMD_7|SDHOST_RESP_LEN_48B
56 #define CMD_DESELECT_CARD SDHOST_CMD_7
57 #define CMD_STOP_TRANS SDHOST_CMD_12|SDHOST_RESP_LEN_48B
58 #define CMD_SET_BLK_CNT SDHOST_CMD_23|SDHOST_RESP_LEN_48
59 #define CMD_ALL_SEND_CID SDHOST_CMD_2|SDHOST_RESP_LEN_136
60 #define CMD_SEND_REL_ADDR SDHOST_CMD_3|SDHOST_RESP_LEN_48
61
62 #endif //__STDCMD_H__