10.07.2015 Views

CF2 API Reference (PDF) - Persistor Instruments Inc

CF2 API Reference (PDF) - Persistor Instruments Inc

CF2 API Reference (PDF) - Persistor Instruments Inc

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>CF2</strong> <strong>API</strong> <strong>Reference</strong>ATA Device DriversATACapacity -- Return the PC Card capacity in total sectorsDescription:Prototype:Inputs:Returns:Notes:This function returns the drive or media capacity as well as additional information about thenumber of heads and sectors per track for LBA translation. It also optionally returns card ordrive information table which has both generic and manufacturer specific fields. Refer to thedevice/media manuals for exact interpretation.short ATACapacity(ATADvr iodvr, ulong *sectors, ushort *spt, ushort *heads, void**info);ATADvr see following notesiodvr pointer to the physical device driver*sectors pointer to hold the total number of LBA sectors available*spt pointer to hold sectors per track*heads pointer to hold the logical number of heads**info pointer to a ATA_SECTOR_SIZE buffer pointer that can accept the drive informationtableReturns-zero for success or ATA error bitspass zeros for everything except *sectors to just quickly determine capacityATAReadSectors -- Read logical drive sector(s)Description:Prototype:Inputs:Returns:Notes:This function reads one or more 512 byte sectors from the card or disk into a memory buffer.short ATAReadSectors(ATADvr iodvr, ulong sector, void *buffer, short count);ATADvr see following notesiodvr pointer to the physical device driversector first LBA sector to read*buffer pointer to memory that will contain read datacount number of ATA_SECTOR_SIZE sectors to readReturns-zero for success or ATA error bitsUse multi-sector reads for best performancePERSISTOR<strong>Instruments</strong> <strong>Inc</strong>.3 of 84<strong>CF2</strong> <strong>API</strong> <strong>Reference</strong>7/19/2005

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!