MAVRK Embedded Software 0.91
Software Libraries for the MAVRK motherboard and related components
|
Defines | |
#define | MCLK_FREQ 16777216 |
#define | INIT_PORT() mvk_SD_Card_Init() |
#define | FAST_MODE() mvk_SD_Card_Fast_Mode() |
#define | DLY_US(n) mvk_Delay_10_us(n) |
#define | CS_H() mvk_SD_Card_Set_CS_High() |
#define | CS_L() mvk_SD_Card_Set_CS_Low() |
#define | WP (0) |
#define | CMD0 (0) |
#define | CMD1 (1) |
#define | ACMD41 (0x80+41) |
#define | CMD8 (8) |
#define | CMD9 (9) |
#define | CMD10 (10) |
#define | CMD12 (12) |
#define | ACMD13 (0x80+13) |
#define | CMD16 (16) |
#define | CMD17 (17) |
#define | CMD18 (18) |
#define | CMD23 (23) |
#define | ACMD23 (0x80+23) |
#define | CMD24 (24) |
#define | CMD25 (25) |
#define | CMD41 (41) |
#define | CMD55 (55) |
#define | CMD58 (58) |
#define | CT_MMC 0x01 |
#define | CT_SD1 0x02 |
#define | CT_SD2 0x04 |
#define | CT_SDC (CT_SD1|CT_SD2) |
#define | CT_BLOCK 0x08 |
Functions | |
DWORD | get_fattime (void) |
DSTATUS | disk_status (unsigned char drv) |
DSTATUS | disk_initialize (unsigned char drv) |
DRESULT | disk_read (unsigned char drv, unsigned char *buff, DWORD sector, unsigned char count) |
DRESULT | disk_write (unsigned char drv, const unsigned char *buff, DWORD sector, unsigned char count) |
DRESULT | disk_ioctl (unsigned char drv, unsigned char ctrl, void *buff) |
uint8_t | validateCSD (void) |
uint8_t | detectCard (void) |
Variables | |
unsigned char | INS = 1 |
#define ACMD13 (0x80+13) |
#define ACMD23 (0x80+23) |
#define ACMD41 (0x80+41) |
#define CMD0 (0) |
#define CMD1 (1) |
#define CMD10 (10) |
#define CMD12 (12) |
#define CMD16 (16) |
#define CMD17 (17) |
#define CMD18 (18) |
#define CMD23 (23) |
#define CMD24 (24) |
#define CMD25 (25) |
#define CMD41 (41) |
#define CMD55 (55) |
#define CMD58 (58) |
#define CMD8 (8) |
#define CMD9 (9) |
#define CS_H | ( | ) | mvk_SD_Card_Set_CS_High() |
#define CS_L | ( | ) | mvk_SD_Card_Set_CS_Low() |
#define CT_BLOCK 0x08 |
#define CT_MMC 0x01 |
#define CT_SD1 0x02 |
#define CT_SD2 0x04 |
#define CT_SDC (CT_SD1|CT_SD2) |
#define DLY_US | ( | n | ) | mvk_Delay_10_us(n) |
#define FAST_MODE | ( | ) | mvk_SD_Card_Fast_Mode() |
#define INIT_PORT | ( | ) | mvk_SD_Card_Init() |
#define MCLK_FREQ 16777216 |
#define WP (0) |
uint8_t detectCard | ( | void | ) |
DSTATUS disk_initialize | ( | unsigned char | drv | ) |
DRESULT disk_ioctl | ( | unsigned char | drv, |
unsigned char | ctrl, | ||
void * | buff | ||
) |
DSTATUS disk_status | ( | unsigned char | drv | ) |
DRESULT disk_write | ( | unsigned char | drv, |
const unsigned char * | buff, | ||
DWORD | sector, | ||
unsigned char | count | ||
) |
DWORD get_fattime | ( | void | ) |
uint8_t validateCSD | ( | void | ) |
unsigned char INS = 1 |