23
Chapter 3: General Library APIs
The first section of
picam.h
includes functions to:
•
Determine if the PICam library has been initialized;
•
Initialize the library;
•
Uninitialize the library;
•
Retrieve the version.
This section also includes error codes that may be returned from any PICam function.
The first step in using the PICam library is library initialization. This is typically done at
the start of the program. Once the library has been initialized, PICam function can then
be called. The success of every function call is determined by the error code that is
returned. It is paramount this error code be checked as most results are invalidated if a
function fails. To facilitate debugging, PICam can convert an error code into a string. In
fact, any PICam enum can be converted into a string. Once the program is finished with
the library, it should clean up and uninitialized the library. This often occurs during
program shutdown.
3.1
Data Type Definitions
Refer to
for information about data definitions.
Table 3-1: Data Enumeration Definitions for General Library APIs
Name
Type
Description
PicamError
enum
The set of error codes returned from all APIs
declared as
PICAM_API
.
PicamEnumeratedType
enum
The set of all PICam enumeration types.
Summary of Contents for Princeton Instruments PICam 5.x
Page 1: ...www princetoninstruments com PICam 5 x Programmer s Manual 4411 0161 Issue 11 June 28 2021...
Page 4: ...4 PICam 5 x Programmer s Manual Issue 11 This page is intentionally blank...
Page 14: ...14 PICam 5 x Programmer s Manual Issue 11 This page is intentionally blank...
Page 180: ...180 PICam 5 x Programmer s Manual Issue 11 This page is intentionally blank...
Page 192: ...192 PICam 5 x Programmer s Manual Issue 11 This page is intentionally blank...
Page 290: ...290 PICam 5 x Programmer s Manual Issue 11 This page is intentionally blank...
Page 302: ...302 PICam 5 x Programmer s Manual Issue 11 This page is intentionally blank...
Page 326: ...324 PICam 5 x Programmer s Manual Issue 11 This page is intentionally blank...
Page 351: ...This page is intentionally blank...
Page 354: ......