The following functions, variables, structures, and macros are public, but are intended only to be accessed by the library itself. Applications should generally not call these functions or modify these variables.
Functions
|
Name |
Description |
|
Reads a byte from the CF card | |
|
Wait until the card is ready | |
|
Writes a byte to the CF card | |
|
None | |
|
SectorRead reads 512 bytes of data from the card starting at the sector address specified by sector_addr and stores them in the location pointed to by 'buffer'. | |
|
SectorWrite sends 512 bytes of data from the location pointed to by 'buffer' to the card starting at the sector address specified by sector_addr. | |
|
Added for compatibility- no write protect feature | |
|
Reads a byte from the CF card | |
|
Wait until the card and PMP are ready | |
|
Writes a byte to the CF card | |
|
None | |
|
SectorRead reads 512 bytes of data from the card starting at the sector address specified by sector_addr and stores them in the location pointed to by 'buffer'. | |
|
SectorWrite sends 512 bytes of data from the location pointed to by 'buffer' to the card starting at the sector address specified by sector_addr. | |
|
Added for compatibility- no write protect feature |
Macros
|
Name |
Description |
|
A macro to set the CF data bus TRIS register to inputs | |
|
A macro to set the CF data bus TRIS register to outputs | |
|
Prototypes | |
|
A macro to set the CF data bus TRIS register to inputs | |
|
A macro to set the CF data bus TRIS register to outputs | |
|
The initialization function for CF cards (no initialization required) | |
|
A macro for the command register offset for CF cards | |
|
A macro for the count register offset for CF cards | |
|
A macro for the cylinder-high register offset for CF cards | |
|
A macro for the cylinder-low register offset for CF cards | |
|
A macro for the data register offset for CF cards | |
|
A macro for the drive register offset for CF cards | |
|
A macro for the error register offset for CF cards | |
|
A macro for the sector register offset for CF cards | |
|
A macro for the status offset for CF cards | |
|
A macro for the CF drive diagnostic command | |
|
A macro for the CF drive identify command | |
|
A macro for the CF read comment | |
|
A macro for the CF write command | |
|
A macro indicating that the CF status register reports an error condition | |
|
A macro indicating that the CF status register reports a ready condition |