| LPCOpen Platform v1.03 LPCOpen Platform for NXP LPC Microcontrollers

- Main Page
- Modules
- Data Structures
- Files
- Related Pages

- File List
- Globals

All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
diskio.c File Reference
`#include "diskio.h"`
`#include "usbdisk.h"`
`#include "atadrive.h"`
`#include "sdcard.h"`

Go to the source code of this file.

## Macros
#define | ATA 0
#define | MMC 1
#define | USB 2

## Functions
DSTATUS | disk_initialize (BYTE drv)
DSTATUS | disk_status (BYTE drv)
DRESULT | disk_read (BYTE drv, BYTE *buff, DWORD sector, BYTE count)
DRESULT | disk_write (BYTE drv, const BYTE *buff, DWORD sector, BYTE count)
DRESULT | disk_ioctl (BYTE drv, BYTE ctrl, void *buff)

## Macro Definition Documentation

#define ATA 0

Definition at line 16 of file diskio.c.

#define MMC 1

Definition at line 17 of file diskio.c.

#define USB 2

Definition at line 18 of file diskio.c.

## Function Documentation

DSTATUS disk_initialize | ( | BYTE | drv | ) |

Definition at line 25 of file diskio.c.

DRESULT disk_ioctl | ( | BYTE | drv,
|  | BYTE | ctrl,
|  | void * | buff
| ) |  |

Definition at line 197 of file diskio.c.

DRESULT disk_read | ( | BYTE | drv,
|  | BYTE * | buff,
|  | DWORD | sector,
|  | BYTE | count
| ) |  |

Definition at line 101 of file diskio.c.

DSTATUS disk_status | ( | BYTE | drv | ) |

Definition at line 63 of file diskio.c.

DRESULT disk_write | ( | BYTE | drv,
|  | const BYTE * | buff,
|  | DWORD | sector,
|  | BYTE | count
| ) |  |

Definition at line 149 of file diskio.c.