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>Chip Select Wrapper FunctionsCS10isEClock -- Define CS10 for its alternate ECLOCK function (default is chip select)Description:Prototype:Inputs:Notes:When in ECLK mode, CS10 simply outputs a clock at one eighth the frequency of the systemclock. This function allows the user to switch between the two functions of the CS10 pin.void CS10isEClock(bool isECLK);isECLK is a boolean that is TRUE if CS10 is to be used as ECLOCK<strong>Persistor</strong> recommends that new users do not use CS10 as an ECLK output if sandwich cards willbe used.CS10Options -- Define the CS10 R/W access and wait statesDescription:Prototype:Inputs:This function is called after calling CS10Setup to specify the characteristics of the device atCS10. This function tells the system whether the device can read, write or both, whether thechip select should go low with the address strobe or the data strobe and how many wait statesto use during transactions.void CS10Options(bool canRead, bool canWrite, bool dsSync, short waits);canRead is a boolean that is TRUE if the device can be read fromcanWrite is a boolean that is TRUE if the device can be written todsSync specifies whether the chip select should go low with the address strobe or the datastrobe.waits is the number of wait states to use with this device.CS10Setup -- Setup CS10Description:Prototype:Inputs:Setup CS10 address range and access width.void CS10Setup(ulong baseAddr, long size, bool is16bit);baseAddr is the address where you would like your memory mapped peripheral to reside.size is the amount of address space above the baseAddr that you would like to reserve for thespecified device.is16bit is a boolean that is TRUE if the device is 16 bits wide.CS10GetWaits -- Return the wait states setting for CS10Description:Prototype:Inputs:Returns:Returns the number of wait states for CS10 at the current clock setting.short CS10GetWaits(void);NoneNumber of wait statesPERSISTOR<strong>Instruments</strong> <strong>Inc</strong>.11 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!