HP85 GPIB Disk Emulator  1.0
HP85GPIBDiskEmulator
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Functions
mmc.h File Reference

Go to the source code of this file.

Functions

MEMSPACE int wait_ready (UINT wt)
 wait for card ready More...
 
MEMSPACE DSTATUS mmc_disk_initialize (void)
 Public Functions. More...
 
MEMSPACE DSTATUS mmc_disk_status (void)
 Get Disk Status. More...
 
MEMSPACE DRESULT mmc_disk_read (BYTE *buff, DWORD sector, UINT count)
 Read Sector(s) More...
 
MEMSPACE DRESULT mmc_disk_write (const BYTE *buff, DWORD sector, UINT count)
 
MEMSPACE DRESULT mmc_disk_ioctl (BYTE cmd, void *buff)
 
void mmc_disk_timerproc (void)
 Write Sector(s) More...
 

Function Documentation

◆ mmc_disk_initialize()

MEMSPACE DSTATUS mmc_disk_initialize ( void  )

Public Functions.

Initialize Disk Drive

Returns
Stat

Definition at line 334 of file mmc.c.

Referenced by disk_initialize().

◆ mmc_disk_ioctl()

MEMSPACE DRESULT mmc_disk_ioctl ( BYTE  cmd,
void *  buff 
)

Referenced by disk_ioctl().

◆ mmc_disk_read()

MEMSPACE DRESULT mmc_disk_read ( BYTE buff,
DWORD  sector,
UINT  count 
)

Read Sector(s)

Parameters
[in]buffread buffer
[in]sectorstart sector number
[in]countsector count
Returns
0 ok
non zero error

Definition at line 424 of file mmc.c.

Referenced by disk_read().

◆ mmc_disk_status()

MEMSPACE DSTATUS mmc_disk_status ( void  )

Get Disk Status.

Returns
Stat
STA_NOINIT if no drive

Definition at line 411 of file mmc.c.

Referenced by disk_status().

◆ mmc_disk_timerproc()

void mmc_disk_timerproc ( void  )

Write Sector(s)

Parameters
[out]buffwrite buffer
[in]sectorstart sector number
[in]countsector count
Returns
0 ok
non zero error

Miscellaneous Functions

Parameters
[in]cmdControl code
[in|out]buff: Send/Receive buffer
Returns
result

mmc timer processes

Definition at line 761 of file mmc.c.

Referenced by disk_timerproc(), and mmc_task().

◆ mmc_disk_write()

MEMSPACE DRESULT mmc_disk_write ( const BYTE buff,
DWORD  sector,
UINT  count 
)

Referenced by disk_write().

◆ wait_ready()

MEMSPACE int wait_ready ( UINT  wt)

wait for card ready

Parameters
[in]wtms to wait
Returns
1 Ready
0 Timeout

Definition at line 168 of file mmc.c.

Referenced by select().