Rev 1 | Rev 41 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
24 | StephanB | 1 | #ifndef _SDC_H |
2 | #define _SDC_H |
||
1 | ingob | 3 | |
24 | StephanB | 4 | #include "91x_lib.h" |
1 | ingob | 5 | |
6 | //________________________________________________________________________________________________________________________________________ |
||
7 | // |
||
24 | StephanB | 8 | // Functions needed for accessing the sdcard. |
1 | ingob | 9 | // |
10 | //________________________________________________________________________________________________________________________________________ |
||
11 | |||
24 | StephanB | 12 | typedef enum |
13 | { |
||
14 | SD_SUCCESS = 0, |
||
15 | SD_ERROR_NOCARD, |
||
16 | SD_ERROR_RESET, |
||
17 | SD_ERROR_INITIALIZE, |
||
18 | SD_ERROR_BAD_RESPONSE, |
||
19 | SD_ERROR_BAD_VOLTAGE_RANGE, |
||
20 | SD_ERROR_NO_SDCARD, |
||
21 | SD_ERROR_TIMEOUT, |
||
22 | SD_ERROR_CRC_DATA, |
||
23 | SD_ERROR_WRITE_DATA, |
||
24 | SD_ERROR_READ_DATA, |
||
25 | SD_ERROR_SET_BLOCKLEN, |
||
26 | SD_ERROR_UNKNOWN |
||
27 | } SD_Result_t; |
||
1 | ingob | 28 | |
24 | StephanB | 29 | extern SD_Result_t SDC_Init(void); |
30 | extern SD_Result_t SDC_GetSector (u32 ,u8 *); |
||
31 | extern SD_Result_t SDC_PutSector (u32, const u8 *); |
||
32 | extern SD_Result_t SDC_Deinit(void); |
||
1 | ingob | 33 | |
24 | StephanB | 34 | #endif // _SDC_H |
1 | ingob | 35 | |
36 |