Accessing a SD card via SPI using bit banging.
More...
#include <SDBitBangSPIIO.h>
|
| SDBitBangSPIIO (int miso, int mosi, int clk, int cs=-1) |
|
void | setPins (int miso, int mosi, int clk, int cs=-1) |
|
void | setMISO (int miso) |
|
void | setMOSI (int mosi) |
|
void | setCLK (int clk) |
|
void | setCS (int cs) |
|
DSTATUS | disk_status (BYTE drv) override |
|
DSTATUS | disk_initialize (BYTE drv) override |
|
DRESULT | disk_read (BYTE drv, BYTE *buff, LBA_t sector, UINT count) override |
|
DRESULT | disk_write (BYTE drv, const BYTE *buff, LBA_t sector, UINT count) override |
|
DRESULT | disk_ioctl (BYTE drv, BYTE ctrl, void *buff) override |
|
virtual DRESULT | disk_ioctl (BYTE pdrv, ioctl_cmd_t cmd, void *buff) |
|
virtual FRESULT | mount (FatFs &fs) |
| mount the file system
|
|
virtual FRESULT | un_mount (FatFs &fs) |
| unmount the file system
|
|
|
void | setup_pins () |
|
void | set_pin_active (int pin, bool active) |
|
bool | read_data () |
|
void | xmit_mmc (const BYTE *buff, UINT bc) |
| Transmit bytes to the card (bitbanging) */.
|
|
void | rcvr_mmc (BYTE *buff, UINT bc) |
| Receive bytes from the card (bitbanging) */.
|
|
int | wait_ready (void) |
| Wait for card ready */.
|
|
void | deselect (void) |
| Deselect the card and release SPI bus */.
|
|
int | select (void) |
| Select the card and wait for ready */.
|
|
int | rcvr_datablock (BYTE *buff, UINT btr) |
| Receive a data packet from the card */.
|
|
int | xmit_datablock (const BYTE *buff, BYTE token) |
| Send a data packet to the card */.
|
|
BYTE | send_cmd (BYTE cmd, DWORD arg) |
| Send a command packet to the card */.
|
|
|
DSTATUS | Stat = STA_NOINIT |
|
BYTE | CardType |
|
int | miso = -1 |
|
int | mosi = -1 |
|
int | clk = -1 |
|
int | cs = -1 |
|
Accessing a SD card via SPI using bit banging.
The documentation for this class was generated from the following file: