NetBurner 3.5.0
PDF Version
mmc_dsc.h
1
/*NB_REVISION*/
2
3
#ifndef _MMC_DSC_H_
4
#define _MMC_DSC_H_
5
6
/****************************************************************************
7
*
8
* Copyright (c) 2003 by HCC Embedded
9
*
10
* This software is copyrighted by and is the sole property of
11
* HCC. All rights, title, ownership, or other interests
12
* in the software remain the property of HCC. This
13
* software may only be used in accordance with the corresponding
14
* license agreement. Any unauthorized use, duplication, transmission,
15
* distribution, or disclosure of this software is expressly forbidden.
16
*
17
* This Copyright notice may not be removed or modified without prior
18
* written consent of HCC.
19
*
20
* HCC reserves the right to modify this software without notice.
21
*
22
* HCC Embedded
23
* Budapest 1132
24
* Victor Hugo Utca 11-15
25
* Hungary
26
*
27
* Tel: +36 (1) 450 1302
28
* Fax: +36 (1) 450 1303
29
* http: www.hcc-embedded.com
30
* email:
[email protected]
31
*
32
***************************************************************************/
33
34
#ifdef __cplusplus
35
extern
"C"
36
{
37
#endif
38
39
#define _T_LOWVOLTAGE 0x80
40
#define _T_MMC 0x01
41
#define _T_SD 0x02
42
#define _T_SDV2 0x04
43
#define _T_SDHC 0x08
44
45
typedef
struct
46
{
47
unsigned
char
initok;
/* card initialized */
48
unsigned
char
cardtype;
49
unsigned
char
use_crc;
50
unsigned
long
number_of_sectors;
51
unsigned
char
bcs;
/* block count supported 0-no 1-yes */
52
53
unsigned
char
CSD[16];
54
55
unsigned
char
TRANSPEED;
56
unsigned
char
R_BL_LEN;
57
unsigned
short
CSIZE;
58
unsigned
char
CSIZE_M;
59
60
unsigned
char
TAAC;
61
unsigned
char
NSAC;
62
unsigned
char
R2W;
63
} t_mmc_dsc;
64
65
#ifdef __cplusplus
66
}
67
#endif
68
69
/******************************************************************************
70
*
71
* end of mmc.h
72
*
73
*****************************************************************************/
74
75
#endif
/* _MMC_H_ */