mikroSDK Reference Manual
sd_common.h
Go to the documentation of this file.
1/****************************************************************************
2**
3** Copyright (C) 2024 MikroElektronika d.o.o.
4** Contact: https://www.mikroe.com/contact
5**
6** This file is part of the mikroSDK package
7**
8** Commercial License Usage
9**
10** Licensees holding valid commercial NECTO compilers AI licenses may use this
11** file in accordance with the commercial license agreement provided with the
12** Software or, alternatively, in accordance with the terms contained in
13** a written agreement between you and The MikroElektronika Company.
14** For licensing terms and conditions see
15** https://www.mikroe.com/legal/software-license-agreement.
16** For further information use the contact form at
17** https://www.mikroe.com/contact.
18**
19**
20** GNU Lesser General Public License Usage
21**
22** Alternatively, this file may be used for
23** non-commercial projects under the terms of the GNU Lesser
24** General Public License version 3 as published by the Free Software
25** Foundation: https://www.gnu.org/licenses/lgpl-3.0.html.
26**
27** The above copyright notice and this permission notice shall be
28** included in all copies or substantial portions of the Software.
29**
30** THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
31** OF MERCHANTABILITY, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
32** TO THE WARRANTIES FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
33** IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
34** DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT
35** OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE
36** OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
37**
38****************************************************************************/
44#ifndef _SD_COMMON_H_
45#define _SD_COMMON_H_
46
57#define SD_CMD0_GO_IDLE_STATE ((uint8_t)0)
58
62#define SD_CMD1_SEND_OP_COND ((uint8_t)1)
63
69#define SD_CMD8_SEND_IF_COND ((uint8_t)8)
70
74#define SD_CMD9_SEND_CSD ((uint8_t)9)
75
79#define SD_CMD10_SEND_CID ((uint8_t)10)
80
84#define SD_CMD12_STOP_TRANSMISSION ((uint8_t)12)
85
89#define SD_CMD16_SET_BLOCKLEN ((uint8_t)16)
90
94#define SD_CMD17_READ_SINGLE_BLOCK ((uint8_t)17)
95
99#define SD_CMD18_READ_MULTIPLE_BLOCK ((uint8_t)18)
100
104#define SD_CMD24_WRITE_BLOCK ((uint8_t)24)
105
109#define SD_CMD25_WRITE_MULTIPLE_BLOCK ((uint8_t)25)
110
114#define SD_CMD55_APP_CMD ((uint8_t)55)
115
119#define SD_CMD58_READ_OCR ((uint8_t)58)
120
124#define SD_ACMD23_SET_WR_BLK_ERASE_COUNT ((uint8_t)23)
125
129#define SD_ACMD41_SD_SEND_OP_COND ((uint8_t)41)
130
131 // sd_card_commands_group
132
133#endif // !_SD_COMMON_H_