Previous

Next

Bottom

Contents

Glossary

Index

 

Persistor CF1 User's Manual

CompactFlash Low Level Drivers

February 1999

Revision 1.02

 Persistor Instruments Inc.
© 1998 All rights reserved.

Quick Reference Table

CFAutoWrNoEra

CFCardDetect

CFEnable

CFGetDriver

CFInit

Background

The public CompactFlash functions described here augment and support the ATA functions that you would use for low level CF access. Except for CFCardDetect, you will probably need to directly access these function even less than the ATA functions which caution you to work at a higher level through the standard C libraries.

CFAutoWrNoEra -- Enable or disable write without erase

This function tells the CF driver to attempt write without erase operations on Persistor brand CompactFlash cards for faster write performance at the expense of longer initialization times.

Prototype:

void CFAutoWrNoEra(void);

Definition:

#include <cf1bios.h>

Notes:

1. Cards must be pre-erased to take advantage of this feature.
2. Pre-erase optimizations are only effective for the first 16000 writes to each sector.

Timing:

unspecified

CFCardDetect -- Return true if a card is inserted

This function returns true if a memory card is inserted in the CompactFlash header.

Prototype:

bool CFCardDetect(void);

Definition:

#include <cf1bios.h>

Returns:

true if a card is in the CompactFlash header, false if it is not

Notes:

this is simply an electro-mechanical check and does not interrogate the card to determine its viability

Timing:

less than 20us at 16MHz

CFEnable -- Enable or disable the CompactFlash card to save power

This function.

Prototype:

void CFEnable(bool on);

Definition:

#include <cf1bios.h>

Notes:

Timing:

unspecified

CFGetDriver -- Return the low level CompactFlash driver (for the ATA driver)

The function returns an anonymous pointer that is used by the ATA driver to access the actual CompactFlash I/O primitives. Refer to the ATA section for more information.

Prototype:

void *CFGetDriver(void);

Definition:

#include <cf1bios.h>

Notes:

see ATA

Timing:

less than 20us at 16MHz

CFInit -- Initialize the CompactFlash hardware

This function sets up the 68338 chip select hardware to operate on memory cards in the CF1 CompactFlash header. You will never need to explicitly call this function, and its description is included here so that when you see this function listed in the function table, you won't wonder if this is something you need to do. Calling this function more than once has no effect.

Prototype:

void CFInit(void);

Definition:

#include <cf1bios.h>

Notes:

called automatically at BIOS startup

Timing:

unspecified

Previous

Next

Top

Contents

Glossary

Index

Tel: 508-759-6434

Fax: 508-759-6436

Copyright (C) 1998 Persistor Instruments Inc. - All Rights Reserved