HP85 GPIB Disk Emulator  1.0
HP85GPIBDiskEmulator
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Macros | Functions
diskio.c File Reference
#include "user_config.h"
#include "fatfs.h"
#include "ff.h"
#include "diskio.h"

Go to the source code of this file.

Macros

#define DEV_MMC   0 /* Example: Map MMC/SD card to physical drive 1 */
 
#define DEV_CFC   1 /* Example: Map CF card to physical drive 2 */
 
#define DEV_RAM   2 /* Example: Map Ramdisk to physical drive 0 */
 
#define DEV_USB   3 /* Example: Map USB MSD to physical drive 2 */
 

Functions

DSTATUS disk_status (BYTE pdrv)
 
DSTATUS disk_initialize (BYTE pdrv)
 
DRESULT disk_read (BYTE pdrv, BYTE *buff, LBA_t sector, UINT count)
 
DRESULT disk_write (BYTE pdrv, const BYTE *buff, LBA_t sector, UINT count)
 
DRESULT disk_ioctl (BYTE pdrv, BYTE cmd, void *buff)
 
void disk_timerproc (void)
 

Macro Definition Documentation

◆ DEV_CFC

#define DEV_CFC   1 /* Example: Map CF card to physical drive 2 */

Definition at line 39 of file diskio.c.

◆ DEV_MMC

#define DEV_MMC   0 /* Example: Map MMC/SD card to physical drive 1 */

Definition at line 38 of file diskio.c.

◆ DEV_RAM

#define DEV_RAM   2 /* Example: Map Ramdisk to physical drive 0 */

Definition at line 40 of file diskio.c.

◆ DEV_USB

#define DEV_USB   3 /* Example: Map USB MSD to physical drive 2 */

Definition at line 41 of file diskio.c.

Function Documentation

◆ disk_initialize()

DSTATUS disk_initialize ( BYTE  pdrv)

Definition at line 78 of file diskio.c.

Referenced by f_mkfs(), mmc_init(), and mount_volume().

◆ disk_ioctl()

DRESULT disk_ioctl ( BYTE  pdrv,
BYTE  cmd,
void *  buff 
)

Definition at line 181 of file diskio.c.

Referenced by create_partition(), f_mkfs(), mmc_init(), mount_volume(), remove_chain(), and sync_fs().

◆ disk_read()

DRESULT disk_read ( BYTE  pdrv,
BYTE buff,
LBA_t  sector,
UINT  count 
)

Definition at line 110 of file diskio.c.

Referenced by f_lseek(), f_mkfs(), f_open(), f_read(), f_write(), and move_window().

◆ disk_status()

DSTATUS disk_status ( BYTE  pdrv)

Definition at line 47 of file diskio.c.

Referenced by mount_volume(), and validate().

◆ disk_timerproc()

void disk_timerproc ( void  )

Definition at line 214 of file diskio.c.

◆ disk_write()

DRESULT disk_write ( BYTE  pdrv,
const BYTE buff,
LBA_t  sector,
UINT  count 
)