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>PicoZOOM FunctionsPZCacheFlush -- Flush cached data to the storage mediaDescription:Prototype:Inputs:Returns:Flush cached data to the storage mediabool PZCacheFlush(short logdrv);logdrv is the logical drive number ("A:" = 0, "B:" = 1, etc.)Returns TRUE if successful.PZCacheSetup -- Setup PicoZOOM cache and optimizationsDescription:Setup PicoZOOM cache and optimizationsPrototype: bool PZCacheSetup(short logdrv, Callocf *callocf, Freef *freef );Inputs:Returns:Notes:logdrv is the logical drive number ("A:" = 0, "B:" = 1, etc.)callocf is a pointer to a user supplied memory allocation funcion with the same behavior as thestandard C library calloc funtions, and will in fact generally be a pointer to your applicationscalloc.freef isa pointer to a user supplied memory allocation funcion with the same behavior as thestandard C library free funtions, and will in fact generally be a pointer to your applications free.Returns TRUE if successful.Because PicoZOOM requires more RAM than PicoDOS has at its disposal, you must explicitlyenable PicoZOOM in your application to let PicoZOOM borrow RAM from your application's heap.Each device that you setup to use PicoZOOM will require about 10KB of RAM.PZCacheRelease -- Conclude (flush) and free PicoZOOM cache memoryDescription:Prototype:Inputs:Returns:Conclude (flush) and free PicoZOOM cache memorybool PZCacheRelease(short logdrv);logdrv is the logical drive number ("A:" = 0, "B:" = 1, etc.)Returns TRUE if successful.PERSISTOR<strong>Instruments</strong> <strong>Inc</strong>.28 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!