sd.h File Reference
#include "diskioStructs.h"
#include "sd_defines.h"
Include dependency graph for sd.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define _READONLY   0 /* 1: Read-only mode */
 
#define _USE_IOCTL   1
 
#define _SDIO
 

Functions

DSTATUS sd_initialize ()
 Initializes the SD Card for SPI Mode, called automatically by disk_initialize() More...
 
DSTATUS sd_status ()
 Returns status of card (if its been initialized or not) More...
 
DRESULT sd_read (BYTE *buff, DWORD sector, BYTE count)
 Reads a sector from the SD Card. More...
 
DRESULT sd_write (const BYTE *buff, DWORD sector, BYTE count)
 Writes a sector to the SD-Card. More...
 
DRESULT sd_ioctl (BYTE ctrl, void *buff)
 Low level function used by FAT File System Layer. More...
 
void sd_update_card_status (void)
 Timeout function MUST BE CALLED AT 100Hz (every 10ms) More...
 

Macro Definition Documentation

#define _READONLY   0 /* 1: Read-only mode */
#define _SDIO
#define _USE_IOCTL   1

Function Documentation

DSTATUS sd_initialize ( )

Initializes the SD Card for SPI Mode, called automatically by disk_initialize()

DRESULT sd_ioctl ( BYTE  ctrl,
void *  buff 
)

Low level function used by FAT File System Layer.

DRESULT sd_read ( BYTE buff,
DWORD  sector,
BYTE  count 
)

Reads a sector from the SD Card.

DSTATUS sd_status ( )

Returns status of card (if its been initialized or not)

void sd_update_card_status ( void  )

Timeout function MUST BE CALLED AT 100Hz (every 10ms)

DRESULT sd_write ( const BYTE buff,
DWORD  sector,
BYTE  count 
)

Writes a sector to the SD-Card.