The ReadPCMCIA sample code (download link below) provides three different tests. These tests are implemented as different thread procedures. You will need to modify the code to call the thread procedure for the test you wish to run.
Key APIs Used
CreateThread CeSetThreadPriority
Lines of Code: 178
The available tests are:
ReadWriteTest (default) This test generates a large block of random data. It then writes this data to the memory space of the PCMCIA slot such as a physical SRAM card, reads the data back, then compares the written and read data to ensure integrity.
The sample continually cycles, modifying the MECR speed for the memory space, gradually getting faster to determine how fast the bus can be reliably used.
This test can easily be modified to use the more-easily accessed CF bus of the Bitsy by simply changing the occurrences of the PCMCIA SLOT enum to CF
ReadOnlyTest This test reads a block of data at the beginning of the CF Attribute Space (card tuple data) repeatedly. After each read, it compares the currently read data with the previous read to determine if the reads are consistent.
EthernetDetect This test demonstrates how to extract personaitly-board hardware information by querying the chip ID and revision information from the ethernet chip of our standard Ethernet personality board.
Source Download Rev 2 - March 24, 2003 (10k zip) modified March 31, 03 - Added key APIs and LOC