IPC@CHIP® RTOS-PPC – API Documentation

Header image

Main page


Drive handler actions.

Since:
SC2x3 V1.00 - CLIB V1.00
See also:
extDiskInstallHandler()
Enumerator:
EXTDISK_ACTION_READ_DISK 

RTOS file system wants to read disk sectors inside mounted partition. Sector 0 is first sector in partition.
param1 becomes the sector number,
param2 becomes the number of sectors,
buffer is used as sector output buffer.

EXTDISK_ACTION_WRITE_DISK 

RTOS file system wants to write disk sectors inside mounted partition. Sector 0 is first sector in partition.
param1 becomes the sector number,
param2 becomes the number of sectors,
buffer is used as sector input buffer.

EXTDISK_ACTION_GET_PARTITION_OFFSET 

RTOS file system wants to know the logical block address (absolute sector number) of the partition's first sector (Sector 0). The FORMAT and CHKDSK commands use this information to maintain or check the alignment of the first data sector on SD cards. All other type external disk drivers must return a -1 value in response to this request.

EXTDISK_ACTION_READ_ANY 

FDISK wants to read disk sectors. Sector 0 is first physical sector on disk.
param1 becomes the sector number,
param2 becomes the number of sectors,
buffer is used as sector output buffer.

EXTDISK_ACTION_WRITE_ANY 

FDISK wants to write disk sectors Sector 0 is first physical sector on disk.
param1 becomes the sector number,
param2 becomes the number of sectors,
buffer is used as sector input buffer.

EXTDISK_ACTION_GET_MEDIA 

FDISK requests drive media information.
param1 and param2 is not used,
buffer is used as output buffer for media information.

EXTDISK_ACTION_GET_VERSION 

Retrieve driver version number and name.
param1 and param2 is not used,
buffer is used as output buffer for the driver version number and pointer to a name string. The size of the buffer must have at least a size of 6 bytes. First 16 Bit are the version number, followed by a char pointer to the name of the driver string.






Top of page | Main page

Copyright © 2017 Beck IPC GmbH
Generated on Thu Jan 26 16:21:36 2017 by Doxygen 1.6.1