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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>CF2</strong> <strong>API</strong> <strong>Reference</strong>CS8Options -- Define the CS8 R/W access and wait statesDescription:Prototype:Inputs:This function is called after calling CS8Setup to specify the characteristics of the device at CS8.This function tells the system wither the device can read, write or both, whether the chip selectshould go low with the address strobe or the data strobe, and how many wait states to useduring transactions.void CS8Options(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.CS8Setup -- Setup CS8Description:Prototype:Inputs:Setup CS8 address range and access width.void CS8Setup(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.CS8GetWaits -- Return CS8 wait states setting for CS8Description: Return CS8 wait states for CS8 at the current clock .Prototype: short CS8GetWaits(void);Inputs:Returns:NoneNumber of wait statesPERSISTOR<strong>Instruments</strong> <strong>Inc</strong>.12 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!