Atik SDK
Atik SDK for Atik devices
|
Atik SDK C interface header. More...
#include <stddef.h>
#include <stdbool.h>
Go to the source code of this file.
Classes | |
struct | ARTEMISPROPERTIES |
Macros | |
#define | artfn extern |
Function declaration linkage is implicitly extern This definition and further usage has been left in for legacy purposes. | |
Typedefs | |
typedef int | BOOL |
Typedef for non windows builds. | |
typedef void * | HINSTANCE |
Typedef for non windows builds. | |
typedef void * | ArtemisHandle |
Functions | |
artfn int | ArtemisAPIVersion () |
Get API version. This may be the same as the DLL version. More... | |
artfn int | ArtemisDLLVersion () |
Get DLL version. This may be the same as the API version. More... | |
artfn BOOL | ArtemisIsLocalConnection () |
Gets whether the connection to the camera is local. More... | |
artfn void | ArtemisAllowDebugToConsole (bool value) |
Allows debug output to be output to standard error. More... | |
artfn void | ArtemisSetDebugCallback (void(*callback)(const char *message)) |
Provide a pointer to a function, which will be invoked when debug output is produced. This can be used in combination with ArtemisAllowDebugToConsole. More... | |
artfn void | ArtemisSetDebugCallbackContext (void *context, void(*callback)(void *context, const char *message)) |
Same as ArtemisSetDebugCallback(), but allows to pass an additional void pointer. This can be used to store a user-allocated data structure which will be passed to the callback. This pointer needs to be allocated and managed by the user. The context will never be freed by the API. More... | |
artfn void | ArtemisSetFirmwareDir (const char *firmwareDir) |
Internal function used during flashing. More... | |
artfn void | ArtemisSetAtikAir (const char *host, int port) |
Connect to an AtikAir instance. More... | |
artfn void | ArtemisShutdown () |
Deallocates all internal DLL structures. The SDK functions may not be called after calling this function. | |
artfn int | ArtemisDeviceCount () |
Returns the number of connected and recognised devices. The count does not include misconfigured devices (E.G. if drivers are missing). More... | |
artfn BOOL | ArtemisDeviceIsPresent (int iDevice) |
Duplicate of ArtemisDevicePresent(). More... | |
artfn BOOL | ArtemisDevicePresent (int iDevice) |
checks if the device at the index is connected. More... | |
artfn BOOL | ArtemisDeviceInUse (int iDevice) |
Checks if the device has already been connected to. More... | |
artfn BOOL | ArtemisDeviceName (int iDevice, char *pName) |
Retrieves the device's printable name. More... | |
artfn BOOL | ArtemisDeviceSerial (int iDevice, char *pSerial) |
Retrieves the device's serial number. More... | |
artfn BOOL | ArtemisDeviceIsCamera (int iDevice) |
Return whether the device at the specified index is a camera (and not E.G. a filter wheel device). More... | |
artfn BOOL | ArtemisDeviceHasFilterWheel (int iDevice) |
Return whether the device at the specified index has a filter wheel device. More... | |
artfn BOOL | ArtemisDeviceHasGuidePort (int iDevice) |
Return whether the device at the specified index has a guide port. More... | |
artfn ArtemisHandle | ArtemisConnect (int iDevice) |
artfn BOOL | ArtemisIsConnected (ArtemisHandle handle) |
Returns whether the handle is currently connected to a camera. More... | |
artfn BOOL | ArtemisDisconnect (ArtemisHandle handle) |
Disconnects from the device with that handle and invalidates the handle. More... | |
artfn int | ArtemisRefreshDevicesCount () |
Updates the available device count. More... | |
artfn int | ArtemisCameraSerial (ArtemisHandle handle, int *flags, int *serial) |
Retrieves the serial number of the connected device. More... | |
artfn int | ArtemisColourProperties (ArtemisHandle handle, ARTEMISCOLOURTYPE *colourType, int *normalOffsetX, int *normalOffsetY, int *previewOffsetX, int *previewOffsetY) |
Retrieves the colour properties of the the connected device. More... | |
artfn int | ArtemisProperties (ArtemisHandle handle, struct ARTEMISPROPERTIES *pProp) |
artfn int | ArtemisCameraConnectionState (ArtemisHandle handle, ARTEMISCONNECTIONSTATE *state) |
Retrieves the camera connection state. More... | |
artfn int | ArtemisBin (ArtemisHandle handle, int x, int y) |
Sets the binning for the device. This will cause the resolution of the captured image to change accordingly with the requested bin values. More... | |
artfn int | ArtemisGetBin (ArtemisHandle handle, int *x, int *y) |
Gets the binning for the device. More... | |
artfn int | ArtemisGetMaxBin (ArtemisHandle handle, int *x, int *y) |
Retrieves the maximum binning supported by the device. More... | |
artfn int | ArtemisGetSubframe (ArtemisHandle handle, int *x, int *y, int *w, int *h) |
Retrieves the current subframing setting for the device. More... | |
artfn int | ArtemisSubframe (ArtemisHandle handle, int x, int y, int w, int h) |
Set the device's subframe position and size. This is equivalent to calling ArtemisSubframePos() followed by ArtemisSubframeSize(). More... | |
artfn int | ArtemisSubframePos (ArtemisHandle handle, int x, int y) |
Sets the device's subframe position. More... | |
artfn int | ArtemisSubframeSize (ArtemisHandle handle, int w, int h) |
Sets the device's subframe width and height. More... | |
artfn int | ArtemisSetSubSample (ArtemisHandle handle, bool bSub) |
Set whether subsampling mode is enabled on the device. More... | |
artfn BOOL | ArtemisContinuousExposingModeSupported (ArtemisHandle handle) |
Retrieves whether continuous exposing is supported by the device. More... | |
artfn BOOL | ArtemisGetContinuousExposingMode (ArtemisHandle handle) |
Retrieves whether continuous exposing is enabled for the device. More... | |
artfn int | ArtemisSetContinuousExposingMode (ArtemisHandle handle, bool bEnable) |
Set whether continuous exposing mode is enabled. This only has an effect on supported devices. More... | |
artfn BOOL | ArtemisGetDarkMode (ArtemisHandle handle) |
Retrieves whether dark mode is enabled for the device. More... | |
artfn int | ArtemisSetDarkMode (ArtemisHandle handle, bool bEnable) |
Sets whether dark mode is enabled for the device. More... | |
artfn int | ArtemisSetPreview (ArtemisHandle handle, bool bPrev) |
Sets whether preview mode is enabled for the device. If preview mode is enabled, the sensor is not cleared between exposures. Using preview mode, there might be more noise/glow in the resulting image. More... | |
artfn int | ArtemisAutoAdjustBlackLevel (ArtemisHandle handle, bool bEnable) |
Sets whether black auto-adjustment is enabled. More... | |
artfn int | ArtemisPrechargeMode (ArtemisHandle handle, int mode) |
Sets the precharge mode of the camera. Precharge applies an in-camera offset, mainly for astronomy use. More... | |
artfn int | ArtemisEightBitMode (ArtemisHandle handle, bool eightbit) |
Sets whether 8-bit mode is enabled on the device. This affects the size of the returned image buffer, which by default is 16 bits per pixel. More... | |
artfn int | ArtemisGetEightBitMode (ArtemisHandle handle, bool *eightbit) |
Retrieves whether 8-bit mode is enabled on the device. More... | |
artfn int | ArtemisStartOverlappedExposure (ArtemisHandle handle) |
Begin an overlapped exposure. More... | |
artfn BOOL | ArtemisOverlappedExposureValid (ArtemisHandle handle) |
Returns whether the overlapped exposure is still valid. More... | |
artfn int | ArtemisSetOverlappedExposureTime (ArtemisHandle handle, float fSeconds) |
Set the overlapped exposure time. More... | |
artfn int | ArtemisTriggeredExposure (ArtemisHandle handle, bool bAwaitTrigger) |
Sets whether the device will await a triggered exposure. More... | |
artfn int | ArtemisGetProcessing (ArtemisHandle handle) |
Return which post processing flags are enabled for the device. More... | |
artfn int | ArtemisSetProcessing (ArtemisHandle handle, int options) |
Sets which post processing effects are enabled for the device. More... | |
artfn int | ArtemisStartExposure (ArtemisHandle handle, float seconds) |
Begin an exposure for the device, specifying a duration as floating point seconds. More... | |
artfn int | ArtemisStartExposureMS (ArtemisHandle handle, int ms) |
Begin an exposure for the device, specifying a duration as milliseconds. More... | |
artfn int | ArtemisAbortExposure (ArtemisHandle handle) |
Stop the current exposure for the device. This is analogous to ArtemisStopExposure(). More... | |
artfn int | ArtemisStopExposure (ArtemisHandle handle) |
Stop the current exposure for the device. This is analogous to ArtemisAbortExposure(). More... | |
artfn BOOL | ArtemisImageReady (ArtemisHandle handle) |
Returns whether the image has been fully downloaded and is ready to access. This method can be polled until it returns TRUE, after which ArtemisGetImageData() and ArtemisImageBuffer() can be called to get the results of the exposure. It is recommended to add a delay in between polling (E.G. 10 milliseconds). More... | |
artfn int | ArtemisCameraState (ArtemisHandle handle) |
Returns the device's state as an ARTEMISCAMERASTATE enumeration. More... | |
artfn float | ArtemisExposureTimeRemaining (ArtemisHandle handle) |
Returns how much time is left in the exposure as a floating point number. Note this does not include the download time. More... | |
artfn int | ArtemisDownloadPercent (ArtemisHandle handle) |
Returns the download progress in percent. More... | |
artfn int | ArtemisGetImageData (ArtemisHandle handle, int *x, int *y, int *w, int *h, int *binx, int *biny) |
Provides information about the latest acquired image. More... | |
artfn void * | ArtemisImageBuffer (ArtemisHandle handle) |
Returns a pointer to the internal image buffer which contains the latest captured image. The buffer size can be calculated by width * height * pixel depth. More... | |
artfn float | ArtemisLastExposureDuration (ArtemisHandle handle) |
Returns the duration of the last exposure as floating point number of seconds. More... | |
artfn char * | ArtemisLastStartTime (ArtemisHandle handle) |
Returns a pointer to the formatted last exposure start time. The buffer is internal to the SDK and is overwritten every time this function is called. Does not include milliseconds. More... | |
artfn int | ArtemisLastStartTimeMilliseconds (ArtemisHandle handle) |
Returns the last exposure start time millisecond component. More... | |
artfn int | ArtemisClearVReg (ArtemisHandle handle) |
This API is for internal use. More... | |
artfn BOOL | ArtemisHasFastMode (ArtemisHandle handle) |
Gets whether the device supports fast mode. More... | |
artfn BOOL | ArtemisStartFastExposure (ArtemisHandle handle, int ms) |
Begins a fast mode exposure. More... | |
artfn BOOL | ArtemisSetFastCallback (ArtemisHandle handle, void(*callback)(ArtemisHandle handle, int x, int y, int w, int h, int binx, int biny, void *imageBuffer)) |
Set the callback that will be invoked when a fast mode exposure is completed. More... | |
artfn int | ArtemisAmplifier (ArtemisHandle handle, bool bOn) |
Enable/disable the device's amplifier. This function is equivalent to ArtemisSetAmplifierSwitched(). More... | |
artfn BOOL | ArtemisGetAmplifierSwitched (ArtemisHandle handle) |
Returns whether the amplifier is enabled. More... | |
artfn int | ArtemisSetAmplifierSwitched (ArtemisHandle handle, bool bSwitched) |
Enable/disable the device's amplifier. This function is equivalent to ArtemisAmplifier(). More... | |
artfn bool | ArtemisHasCameraSpecificOption (ArtemisHandle handle, unsigned short id) |
Returns whether the specified option is available. More... | |
artfn int | ArtemisCameraSpecificOptionGetData (ArtemisHandle handle, unsigned short id, unsigned char *data, int dataLength, int *actualLength) |
Used to get the specified option's current value. Please check that the current camera has this option using ArtemisHasCameraSpecificOption() More... | |
artfn int | ArtemisCameraSpecificOptionSetData (ArtemisHandle handle, unsigned short id, unsigned char *data, int dataLength) |
Used to set the specified option's value. Please check that the current camera has this option using ArtemisHasCameraSpecificOption() More... | |
artfn int | ArtemisSetColumnRepairColumns (ArtemisHandle handle, int nColumn, unsigned short *columns) |
Set the columns on which column repair post processing is performed. More... | |
artfn int | ArtemisGetColumnRepairColumns (ArtemisHandle handle, int *nColumn, unsigned short *columns) |
Get the columns on which column repair post processing is performed. More... | |
artfn int | ArtemisClearColumnRepairColumns (ArtemisHandle handle) |
Remove all column repair processing set previously. More... | |
artfn int | ArtemisSetColumnRepairFixColumns (ArtemisHandle handle, bool value) |
Sets whether column repair is enabled. More... | |
artfn int | ArtemisGetColumnRepairFixColumns (ArtemisHandle handle, bool *value) |
Retrieves whether column repair is enabled or not. More... | |
artfn int | ArtemisGetColumnRepairCanFixColumns (ArtemisHandle handle, bool *value) |
Retrieves whether column repair can be enabled. More... | |
artfn int | ArtemisCanInteractWithEEPROM (ArtemisHandle handle, bool *canInteract) |
Retrieves whether the EEPROM can be interacted with. This API is for internal use. More... | |
artfn int | ArtemisWriteToEEPROM (ArtemisHandle handle, char *password, int address, int length, const unsigned char *data) |
Writes a value to the EEPROM. This API is for internal use. More... | |
artfn int | ArtemisReadFromEEPROM (ArtemisHandle handle, char *password, int address, int length, unsigned char *data) |
Reads a value from the EEPROM. This API is for internal use. More... | |
artfn int | ArtemisFilterWheelInfo (ArtemisHandle handle, int *numFilters, int *moving, int *currentPos, int *targetPos) |
Retrieve the state of the filter wheel. More... | |
artfn int | ArtemisFilterWheelMove (ArtemisHandle handle, int targetPos) |
Move the filter wheel to the desired location. More... | |
artfn BOOL | ArtemisEFWIsPresent (int i) |
Checks whether a filter wheel is present at the index. More... | |
artfn int | ArtemisEFWGetDeviceDetails (int i, ARTEMISEFWTYPE *type, char *serialNumber) |
Get information on the filter wheel device at the specified index. This is the same as ArtemisEFWGetDetails(), but without connecting first. More... | |
artfn ArtemisHandle | ArtemisEFWConnect (int i) |
Connect to a filter wheel device at the specified index. More... | |
artfn bool | ArtemisEFWIsConnected (ArtemisHandle handle) |
Retrieves whether the handle for the filter wheel is valid. More... | |
artfn int | ArtemisEFWDisconnect (ArtemisHandle handle) |
Disconnect from the filter wheel handle. More... | |
artfn int | ArtemisEFWGetDetails (ArtemisHandle handle, ARTEMISEFWTYPE *type, char *serialNumber) |
Get information on the connected filter wheel device. This is the same as ArtemisEFWGetDeviceDetails(), after connecting. More... | |
artfn int | ArtemisEFWNmrPosition (ArtemisHandle handle, int *nPosition) |
Gets the number of filters inside the filter wheel. More... | |
artfn int | ArtemisEFWSetPosition (ArtemisHandle handle, int iPosition) |
Sets the device's filter wheel position. More... | |
artfn int | ArtemisEFWGetPosition (ArtemisHandle handle, int *iPosition, bool *isMoving) |
Gets the device's filter wheel position. More... | |
artfn bool | ArtemisCanUploadFirmware (ArtemisHandle handle) |
Returns whether firmware can be uploaded to the device. This API is for internal use. More... | |
artfn int | ArtemisUploadFirmware (ArtemisHandle handle, char *fileName, char *password) |
Upload a new firmware on the device. This API is for internal use. More... | |
artfn int | ArtemisGetGain (ArtemisHandle handle, bool isPreview, int *gain, int *offset) |
Get the currently set gain and offset for the device. Note that Horizon/ACIS cameras need to use ArtemisCameraSpecificOptionGetData() to get the gain. More... | |
artfn int | ArtemisSetGain (ArtemisHandle handle, bool isPreview, int gain, int offset) |
Set the gain and offset for the device Note that Horizon/ACIS cameras need to use ArtemisCameraSpecificOptionSetData() to set the gain. More... | |
artfn int | ArtemisGetGpioInformation (ArtemisHandle handle, int *lineCount, int *lineValues) |
artfn int | ArtemisSetGpioDirection (ArtemisHandle handle, int directionMask) |
artfn int | ArtemisSetGpioValues (ArtemisHandle handle, int lineValues) |
artfn int | ArtemisGuide (ArtemisHandle handle, int axis) |
artfn int | ArtemisGuidePort (ArtemisHandle handle, int nibble) |
artfn int | ArtemisPulseGuide (ArtemisHandle handle, int axis, int milli) |
artfn int | ArtemisStopGuiding (ArtemisHandle handle) |
artfn int | ArtemisStopGuidingBeforeDownload (ArtemisHandle handle, bool bEnable) |
artfn int | ArtemisAutoHotPixelRemoval (ArtemisHandle handle, bool on) |
A software based hot pixel remover with some pre defined parameters. darkFrame = false, checkForAdjacentHotPixels = false, hps = HPS_MEDIUM. More... | |
artfn int | ArtemisAdvancedHotPixelRemoval (ArtemisHandle handle, bool on, bool darkFrame, bool checkForAdjacentHotPixels, HotPixelSensitivity hps) |
A software based hot pixel remover with several parameters. If dakFrame is true this function will block for 30 seconds. More... | |
artfn int | ArtemisGetLensAperture (ArtemisHandle handle, int *aperture) |
Gets the current lens aperture value. More... | |
artfn int | ArtemisGetLensFocus (ArtemisHandle handle, int *focus) |
Gets the current lens focus value. More... | |
artfn int | ArtemisGetLensLimits (ArtemisHandle handle, int *apertureMin, int *apertureMax, int *focusMin, int *focusMax) |
Returns the lens numerical limits for the device. More... | |
artfn int | ArtemisInitializeLens (ArtemisHandle handle) |
Initialise lens controls. If not called, lens control methods will return ARTEMIS_NOT_INITIALIZED. More... | |
artfn int | ArtemisSetLensAperture (ArtemisHandle handle, int aperture) |
Sets the lens aperture. More... | |
artfn int | ArtemisSetLensFocus (ArtemisHandle handle, int focus) |
Sets the lens focus. More... | |
artfn int | ArtemisCanControlShutter (ArtemisHandle handle, bool *canControl) |
Checks whether the shutter can be opened and closed on the device. More... | |
artfn int | ArtemisOpenShutter (ArtemisHandle handle) |
Opens the shutter on the device. Please call ArtemisCanControlShutter() to see if the shutter can be controlled. More... | |
artfn int | ArtemisCloseShutter (ArtemisHandle handle) |
Closes the shutter on the device. Please call ArtemisCanControlShutter() to see if the shutter can be controlled. More... | |
artfn int | ArtemisCanSetShutterSpeed (ArtemisHandle handle, bool *canSetShutterSpeed) |
Checks whether the shutter speed can be set on the device. More... | |
artfn int | ArtemisGetShutterSpeed (ArtemisHandle handle, int *speed) |
Gets the shutter speed. More... | |
artfn int | ArtemisSetShutterSpeed (ArtemisHandle handle, int speed) |
Sets the shutter speed. More... | |
artfn int | ArtemisTemperatureSensorInfo (ArtemisHandle handle, int sensor, int *temperature) |
Gets temperature of the device for the specific sensor index, in hundreds of degrees centigrade. If "sensor" is set to 0, this will be set to the number of temperature sensors on the device. More... | |
artfn int | ArtemisSetCooling (ArtemisHandle handle, int setpoint) |
Sets the cooling target temperature of the device. This will override ArtemisSetCoolingPower(). More... | |
artfn int | ArtemisSetCoolingPower (ArtemisHandle handle, int power) |
Sets the cooling power of the cooler directly. This will override ArtemisSetCooling(). More... | |
artfn int | ArtemisCoolingInfo (ArtemisHandle handle, int *flags, int *level, int *minlvl, int *maxlvl, int *setpoint) |
Retrieves information about the cooling settings for the device. More... | |
artfn int | ArtemisCoolerWarmUp (ArtemisHandle handle) |
Disables active cooling for the device. On some devices, this will perform a slow ramp down of the cooler, to avoid thermal shock. More... | |
artfn int | ArtemisGetWindowHeaterPower (ArtemisHandle handle, int *windowHeaterPower) |
Gets the window heater power. More... | |
artfn int | ArtemisSetWindowHeaterPower (ArtemisHandle handle, int windowHeaterPower) |
Sets the window heater power. More... | |
artfn bool | ArtemisLoadDLL (const char *fileName) |
Dynamically loads the Atik implementation DLL. This method is only needed if the DLL is linked dynamically. This method is part of the DLL example code. More... | |
artfn void | ArtemisUnLoadDLL () |
Unloads the Atik DLL and frees the internal DLL handle. This method is only needed if the DLL is linked dynamically. This method is part of the DLL example code. More... | |
Variables | |
static HINSTANCE | hArtemisDLL = NULL |
DLL handle set by ArtemisLoadDLL(). This is irrelevant if you are linking at compile time. | |
Atik SDK C interface header.
typedef void* ArtemisHandle |
Atik SDK handle type
enum ARTEMISCAMERASTATE |
enum ARTEMISCOLOURTYPE |
enum ARTEMISCOOLINGINFO |
Index into ArtemisCoolingInfo() Flags.
Enumerator | |
---|---|
ARTEMIS_COOLING_INFO_HASCOOLING | Camera can be cooled. 0= No cooling ability 1= Has cooling. |
ARTEMIS_COOLING_INFO_CONTROLLABLE | Cooling is always on or can be controlled. 0= Always on 1= Controllable. |
ARTEMIS_COOLING_INFO_ONOFFCOOLINGCONTROL | Cooling can be switched On/Off. 0= On/Off control not available 1= On/Off control available. |
ARTEMIS_COOLING_INFO_POWERLEVELCONTROL | Cooling can be set via ArtemisSetCoolingPower() |
ARTEMIS_COOLING_INFO_SETPOINTCONTROL | Cooling can be set via ArtemisSetCooling() |
ARTEMIS_COOLING_INFO_WARMINGUP | Currently warming up. 0= Normal control 1= Warming Up. |
ARTEMIS_COOLING_INFO_COOLINGON | Currently cooling. 0= Cooling off 1= Cooling on. |
ARTEMIS_COOLING_INFO_SETPOINTCONTROLON | Currently under setpoint control 0= No set point control 1= Set point control. |
enum ARTEMISEFWTYPE |
Filter wheel type.
enum ARTEMISERROR |
Main error enum for methods with "int" as return type.
Enumerator | |
---|---|
ARTEMIS_OK | Operation successful. |
ARTEMIS_INVALID_PARAMETER | The camera handle passed is not a valid handle.
|
ARTEMIS_NOT_CONNECTED | Camera is not connected. |
ARTEMIS_NOT_IMPLEMENTED | Not impl. |
ARTEMIS_NO_RESPONSE | No response. |
ARTEMIS_INVALID_FUNCTION | Invalid function. |
ARTEMIS_NOT_INITIALIZED | Camera Not init. |
ARTEMIS_OPERATION_FAILED | Failed. |
enum ARTEMISPRECHARGEMODE |
enum ARTEMISPROCESSING |
Index into the camera flags of ARTEMISPROPERTIES
Index into the ccdflags value of ARTEMISPROPERTIES.
Enumerator | |
---|---|
ARTEMIS_PROPERTIES_CCDFLAGS_INTERLACED | CCD is interlaced type. |
ARTEMIS_PROPERTIES_CCDFLAGS_DUMMY | Enum padding to 4 bytes. Not used. |
ID's for the camera specific options.
artfn int ArtemisAbortExposure | ( | ArtemisHandle | handle | ) |
Stop the current exposure for the device. This is analogous to ArtemisStopExposure().
handle | the connected Atik device handle. |
artfn int ArtemisAdvancedHotPixelRemoval | ( | ArtemisHandle | handle, |
bool | on, | ||
bool | darkFrame, | ||
bool | checkForAdjacentHotPixels, | ||
HotPixelSensitivity | hps | ||
) |
A software based hot pixel remover with several parameters. If dakFrame is true this function will block for 30 seconds.
handle | the connected Atik device handle. |
on | turns the hot pixel removal off/on |
darkFrame | If true, a 30 second dark frame will be taken. This will create a hot pixel array internally that will be used after exposure to remove hot pixels. This array will need to be regenerated on any dimension or binning change otherwise the hot pixel removal will not be applied. If this parameter is used hot pixels will not be determined during exposure only those listed in the array will be fixed. If false the internal hot pixel array will be regenarated for each exposure |
checkForAdjacentHotPixels | If true surrounding hot pixels will not be used to determine the value of the current hot pixel. This option trades time against better quality results. |
hps | This determines what is seen as a hot pixel. HPS_HIGH will see the most hot pixels. |
artfn void ArtemisAllowDebugToConsole | ( | bool | value | ) |
Allows debug output to be output to standard error.
value | Whether to enable the output. |
artfn int ArtemisAmplifier | ( | ArtemisHandle | handle, |
bool | bOn | ||
) |
Enable/disable the device's amplifier. This function is equivalent to ArtemisSetAmplifierSwitched().
handle | the connected Atik device handle. |
bOn | whether to enable or disable the built in amplifier. |
artfn int ArtemisAPIVersion | ( | ) |
Get API version. This may be the same as the DLL version.
artfn int ArtemisAutoAdjustBlackLevel | ( | ArtemisHandle | handle, |
bool | bEnable | ||
) |
Sets whether black auto-adjustment is enabled.
handle | the connected Atik device handle. |
bEnable | whether black levels will be auto-adjusted. |
artfn int ArtemisAutoHotPixelRemoval | ( | ArtemisHandle | handle, |
bool | on | ||
) |
A software based hot pixel remover with some pre defined parameters. darkFrame = false, checkForAdjacentHotPixels = false, hps = HPS_MEDIUM.
handle | the connected Atik device handle. |
on | turns the hot pixel removal off/on |
artfn int ArtemisBin | ( | ArtemisHandle | handle, |
int | x, | ||
int | y | ||
) |
Sets the binning for the device. This will cause the resolution of the captured image to change accordingly with the requested bin values.
handle | the connected Atik device handle. |
x | the X binning value. |
y | the Y binning value. |
artfn int ArtemisCameraConnectionState | ( | ArtemisHandle | handle, |
ARTEMISCONNECTIONSTATE * | state | ||
) |
Retrieves the camera connection state.
handle | the connected Atik device handle. |
state | if successful, a pointer to a user provided ARTEMISCONNECTIONSTATE instance. |
artfn int ArtemisCameraSerial | ( | ArtemisHandle | handle, |
int * | flags, | ||
int * | serial | ||
) |
Retrieves the serial number of the connected device.
handle | the connected device handle. |
flags | a pointer to an integer which will be set to internal device flags. |
serial | a pointer to an integer which will be set to the serial number of the connected Atik device. |
artfn int ArtemisCameraSpecificOptionGetData | ( | ArtemisHandle | handle, |
unsigned short | id, | ||
unsigned char * | data, | ||
int | dataLength, | ||
int * | actualLength | ||
) |
Used to get the specified option's current value. Please check that the current camera has this option using ArtemisHasCameraSpecificOption()
handle | the connected Atik device handle. |
id | |
data | |
dataLength | |
actualLength |
artfn int ArtemisCameraSpecificOptionSetData | ( | ArtemisHandle | handle, |
unsigned short | id, | ||
unsigned char * | data, | ||
int | dataLength | ||
) |
Used to set the specified option's value. Please check that the current camera has this option using ArtemisHasCameraSpecificOption()
handle | the connected Atik device handle. |
id | |
data | |
dataLength |
artfn int ArtemisCameraState | ( | ArtemisHandle | handle | ) |
Returns the device's state as an ARTEMISCAMERASTATE enumeration.
handle | the connected device handle. |
artfn int ArtemisCanControlShutter | ( | ArtemisHandle | handle, |
bool * | canControl | ||
) |
Checks whether the shutter can be opened and closed on the device.
handle | the connected Atik device handle. |
canControl | a pointer to a boolean which will be set to whether the shutter can be opened and closed. |
artfn int ArtemisCanInteractWithEEPROM | ( | ArtemisHandle | handle, |
bool * | canInteract | ||
) |
Retrieves whether the EEPROM can be interacted with. This API is for internal use.
handle | the connected Atik device handle. |
canInteract |
artfn int ArtemisCanSetShutterSpeed | ( | ArtemisHandle | handle, |
bool * | canSetShutterSpeed | ||
) |
Checks whether the shutter speed can be set on the device.
handle | the connected Atik device handle. |
canSetShutterSpeed | a pointer to a boolean which will be set to whether the shutter speed can be set. |
artfn bool ArtemisCanUploadFirmware | ( | ArtemisHandle | handle | ) |
Returns whether firmware can be uploaded to the device. This API is for internal use.
handle | the connected Atik device handle. |
artfn int ArtemisClearColumnRepairColumns | ( | ArtemisHandle | handle | ) |
Remove all column repair processing set previously.
handle | the connected Atik device handle. |
artfn int ArtemisClearVReg | ( | ArtemisHandle | handle | ) |
This API is for internal use.
handle | the connected Atik device handle. |
artfn int ArtemisCloseShutter | ( | ArtemisHandle | handle | ) |
Closes the shutter on the device. Please call ArtemisCanControlShutter() to see if the shutter can be controlled.
handle | the connected Atik device handle. |
artfn int ArtemisColourProperties | ( | ArtemisHandle | handle, |
ARTEMISCOLOURTYPE * | colourType, | ||
int * | normalOffsetX, | ||
int * | normalOffsetY, | ||
int * | previewOffsetX, | ||
int * | previewOffsetY | ||
) |
Retrieves the colour properties of the the connected device.
handle | the connected device handle. |
colourType | a pointer to a user provided ARTEMISCOLOURTYPE enum which will be set to an ARTEMISCOLOURTYPE value. |
normalOffsetX | a pointer to an integer which will be set to the normal offset over the X axis. |
normalOffsetY | a pointer to an integer which will be set to the normal offset over the Y axis. |
previewOffsetX | a pointer to an integer which will be set to the preview offset over the X axis. |
previewOffsetY | a pointer to an integer which will be set to the preview offset over the Y axis. |
artfn ArtemisHandle ArtemisConnect | ( | int | iDevice | ) |
Connect to an Atik device by index and obtain an ArtemisHandle to it for further use. Use ArtemisDeviceCount to discover how many devices are available for connection.
iDevice | Device index. Use 0 if using a single camera. |
artfn BOOL ArtemisContinuousExposingModeSupported | ( | ArtemisHandle | handle | ) |
Retrieves whether continuous exposing is supported by the device.
handle | the connected Atik device handle. |
artfn int ArtemisCoolerWarmUp | ( | ArtemisHandle | handle | ) |
Disables active cooling for the device. On some devices, this will perform a slow ramp down of the cooler, to avoid thermal shock.
handle | the connected Atik device handle. |
artfn int ArtemisCoolingInfo | ( | ArtemisHandle | handle, |
int * | flags, | ||
int * | level, | ||
int * | minlvl, | ||
int * | maxlvl, | ||
int * | setpoint | ||
) |
Retrieves information about the cooling settings for the device.
handle | the connected Atik device handle. |
flags | internal flags representing the cooling state. |
level | the power level of the cooler, usually from 0 to 255. |
minlvl | displays the minimum cooling power level |
maxlvl | displays the maximum cooling power level |
setpoint | the target setpoint temperature for the camera in degrees celsius. |
artfn int ArtemisDeviceCount | ( | ) |
Returns the number of connected and recognised devices. The count does not include misconfigured devices (E.G. if drivers are missing).
Return whether the device at the specified index has a filter wheel device.
iDevice | the device index. |
Return whether the device at the specified index has a guide port.
iDevice | the device index. |
Checks if the device has already been connected to.
iDevice | the device index. |
Return whether the device at the specified index is a camera (and not E.G. a filter wheel device).
iDevice | the device index. |
Duplicate of ArtemisDevicePresent().
iDevice | the device index. |
Retrieves the device's printable name.
iDevice | the device index. |
pName | a pointer to a user-allocated char array of length 100. |
checks if the device at the index is connected.
iDevice | the device index. |
Retrieves the device's serial number.
iDevice | the device index. |
pSerial | a pointer to a user-allocated char array of length 100. |
artfn BOOL ArtemisDisconnect | ( | ArtemisHandle | handle | ) |
Disconnects from the device with that handle and invalidates the handle.
handle | The device handle |
artfn int ArtemisDLLVersion | ( | ) |
Get DLL version. This may be the same as the API version.
artfn int ArtemisDownloadPercent | ( | ArtemisHandle | handle | ) |
Returns the download progress in percent.
handle | the connected Atik device handle. |
artfn ArtemisHandle ArtemisEFWConnect | ( | int | i | ) |
Connect to a filter wheel device at the specified index.
i | The index of the filter wheel device to connect to. |
artfn int ArtemisEFWDisconnect | ( | ArtemisHandle | handle | ) |
Disconnect from the filter wheel handle.
handle | the connected Atik device handle. |
artfn int ArtemisEFWGetDetails | ( | ArtemisHandle | handle, |
ARTEMISEFWTYPE * | type, | ||
char * | serialNumber | ||
) |
Get information on the connected filter wheel device. This is the same as ArtemisEFWGetDeviceDetails(), after connecting.
handle | the connected Atik device handle. |
type | a pointer to an ARTEMISEFWTYPE enumeration, which will be set to the type of the filter wheel device. |
serialNumber | a pointer to a char array of length 100, which will be set to the serial number of the filter wheel. |
artfn int ArtemisEFWGetDeviceDetails | ( | int | i, |
ARTEMISEFWTYPE * | type, | ||
char * | serialNumber | ||
) |
Get information on the filter wheel device at the specified index. This is the same as ArtemisEFWGetDetails(), but without connecting first.
i | the index to get details for. |
type | a pointer to an ARTEMISEFWTYPE enumeration, which will be set to the type of the filter wheel device. |
serialNumber | a pointer to a char array of length 100, which will be set to the serial number of the filter wheel. |
artfn int ArtemisEFWGetPosition | ( | ArtemisHandle | handle, |
int * | iPosition, | ||
bool * | isMoving | ||
) |
Gets the device's filter wheel position.
handle | the connected Atik device handle. |
iPosition | pointer to an integer which will be set to the filter wheel's current position. |
isMoving | pointer to a boolean which will be set to whether the filter wheel is currently moving. |
artfn bool ArtemisEFWIsConnected | ( | ArtemisHandle | handle | ) |
Retrieves whether the handle for the filter wheel is valid.
handle | the filter wheel handle. |
Checks whether a filter wheel is present at the index.
i | the index to check. |
artfn int ArtemisEFWNmrPosition | ( | ArtemisHandle | handle, |
int * | nPosition | ||
) |
Gets the number of filters inside the filter wheel.
handle | the connected Atik device handle. |
nPosition | a pointer to an integer which will be set to the current filter wheel position. |
artfn int ArtemisEFWSetPosition | ( | ArtemisHandle | handle, |
int | iPosition | ||
) |
Sets the device's filter wheel position.
handle | the connected Atik device handle. |
iPosition | the desired position |
artfn int ArtemisEightBitMode | ( | ArtemisHandle | handle, |
bool | eightbit | ||
) |
Sets whether 8-bit mode is enabled on the device. This affects the size of the returned image buffer, which by default is 16 bits per pixel.
handle | the connected Atik device handle. |
eightbit | whether to enable 8-bit mode. |
artfn float ArtemisExposureTimeRemaining | ( | ArtemisHandle | handle | ) |
Returns how much time is left in the exposure as a floating point number. Note this does not include the download time.
handle | the connected device handle. |
artfn int ArtemisFilterWheelInfo | ( | ArtemisHandle | handle, |
int * | numFilters, | ||
int * | moving, | ||
int * | currentPos, | ||
int * | targetPos | ||
) |
Retrieve the state of the filter wheel.
handle | the connected Atik device handle. |
numFilters | pointer to an integer which will be set to the number of filters in the filter wheel. |
moving | pointer to an integer which will be set to 1 if the filter wheel is moving, 0 otherwise. |
currentPos | pointer to an integer which will be set to the current position. |
targetPos | pointer to an integer which will be set to the target position. |
artfn int ArtemisFilterWheelMove | ( | ArtemisHandle | handle, |
int | targetPos | ||
) |
Move the filter wheel to the desired location.
handle | the connected Atik device handle. |
targetPos | the target filter wheel position. |
artfn BOOL ArtemisGetAmplifierSwitched | ( | ArtemisHandle | handle | ) |
Returns whether the amplifier is enabled.
handle | the connected Atik device handle. |
artfn int ArtemisGetBin | ( | ArtemisHandle | handle, |
int * | x, | ||
int * | y | ||
) |
Gets the binning for the device.
handle | the connected Atik device handle. |
x | pointer to an integer which will be set to the X binning value. |
y | pointer to an integer which will be set to the Y binning value. |
artfn int ArtemisGetColumnRepairCanFixColumns | ( | ArtemisHandle | handle, |
bool * | value | ||
) |
Retrieves whether column repair can be enabled.
handle | the connected Atik device handle. |
value | a pointer to a boolean which will be set to whether the column repair can be enabled or not. |
artfn int ArtemisGetColumnRepairColumns | ( | ArtemisHandle | handle, |
int * | nColumn, | ||
unsigned short * | columns | ||
) |
Get the columns on which column repair post processing is performed.
handle | the connected Atik device handle. |
nColumn | a pointer to an integer which will be set to the length of the columns array. |
columns | a pointer to a user-managed array of length 1000, which will be set to the column values. |
artfn int ArtemisGetColumnRepairFixColumns | ( | ArtemisHandle | handle, |
bool * | value | ||
) |
Retrieves whether column repair is enabled or not.
handle | the connected Atik device handle. |
value | a pointer to a boolean which will be set to whether the column repair is enabled or not. |
artfn BOOL ArtemisGetContinuousExposingMode | ( | ArtemisHandle | handle | ) |
Retrieves whether continuous exposing is enabled for the device.
handle | the connected Atik device handle. |
artfn BOOL ArtemisGetDarkMode | ( | ArtemisHandle | handle | ) |
Retrieves whether dark mode is enabled for the device.
handle | the connected Atik device handle. |
artfn int ArtemisGetEightBitMode | ( | ArtemisHandle | handle, |
bool * | eightbit | ||
) |
Retrieves whether 8-bit mode is enabled on the device.
handle | the connected Atik device handle. |
eightbit | pointer to a boolean, which will be set to whether the 8-bit mode is enabled. |
artfn int ArtemisGetGain | ( | ArtemisHandle | handle, |
bool | isPreview, | ||
int * | gain, | ||
int * | offset | ||
) |
Get the currently set gain and offset for the device. Note that Horizon/ACIS cameras need to use ArtemisCameraSpecificOptionGetData() to get the gain.
handle | the connected Atik device handle. |
isPreview | whether gain will be returned for preview mode or normal mode. |
gain | pointer to an integer which will be set to the current gain. |
offset | pointer to an integer which will be set to the current offset. |
artfn int ArtemisGetGpioInformation | ( | ArtemisHandle | handle, |
int * | lineCount, | ||
int * | lineValues | ||
) |
handle | the connected Atik device handle. |
lineCount | |
lineValues |
artfn int ArtemisGetImageData | ( | ArtemisHandle | handle, |
int * | x, | ||
int * | y, | ||
int * | w, | ||
int * | h, | ||
int * | binx, | ||
int * | biny | ||
) |
Provides information about the latest acquired image.
handle | the connected Atik device handle. |
x | pointer to an integer which will be set to the subframe size in pixels, on the X axis. |
y | pointer to an integer which will be set to the subframe size in pixels, on the Y axis. |
w | pointer to an integer which will be set to the width of the image in pixels. |
h | pointer to an integer which will be set to the height of the image in pixels. |
binx | pointer to an integer which will be set to the horizontal binning used. |
biny | pointer to an integer which will be set to the vertical binning used. |
artfn int ArtemisGetLensAperture | ( | ArtemisHandle | handle, |
int * | aperture | ||
) |
Gets the current lens aperture value.
handle | the connected Atik device handle. |
aperture | a pointer to an integer which will be set to the current aperture. |
artfn int ArtemisGetLensFocus | ( | ArtemisHandle | handle, |
int * | focus | ||
) |
Gets the current lens focus value.
handle | the connected Atik device handle. |
focus | a pointer to an integer which will be set to the current lens focus value. |
artfn int ArtemisGetLensLimits | ( | ArtemisHandle | handle, |
int * | apertureMin, | ||
int * | apertureMax, | ||
int * | focusMin, | ||
int * | focusMax | ||
) |
Returns the lens numerical limits for the device.
handle | the connected Atik device handle. |
apertureMin | a pointer to an integer which will be set to the minimum aperture value. |
apertureMax | a pointer to an integer which will be set to the maximum aperture value. |
focusMin | a pointer to an integer which will be set to the minimum focus value. |
focusMax | a pointer to an integer which will be set to the maximum focus value. |
artfn int ArtemisGetMaxBin | ( | ArtemisHandle | handle, |
int * | x, | ||
int * | y | ||
) |
Retrieves the maximum binning supported by the device.
handle | the connected Atik device handle. |
x | pointer to an integer which will be set to the maximum supported X binning value. |
y | pointer to an integer which will be set to the maximum supported Y binning value. |
artfn int ArtemisGetProcessing | ( | ArtemisHandle | handle | ) |
Return which post processing flags are enabled for the device.
handle | the connected Atik device handle. |
artfn int ArtemisGetShutterSpeed | ( | ArtemisHandle | handle, |
int * | speed | ||
) |
Gets the shutter speed.
handle | the connected Atik device handle. |
speed | a pointer to an integer which will be set to the speed of the shutter. |
artfn int ArtemisGetSubframe | ( | ArtemisHandle | handle, |
int * | x, | ||
int * | y, | ||
int * | w, | ||
int * | h | ||
) |
Retrieves the current subframing setting for the device.
handle | the connected Atik device handle. |
x | pointer to an integer which will be set to the current subframing X offset. |
y | pointer to an integer which will be set to the current subframing Y offset. |
w | pointer to an integer which will be set to the current subframing width. |
h | pointer to an integer which will be set to the current subframing height. |
artfn int ArtemisGetWindowHeaterPower | ( | ArtemisHandle | handle, |
int * | windowHeaterPower | ||
) |
Gets the window heater power.
handle | the connected Atik device handle. |
windowHeaterPower | a pointer to an integer, which will be set to the current window heater power, between 0 and 255. |
artfn int ArtemisGuide | ( | ArtemisHandle | handle, |
int | axis | ||
) |
handle | the connected Atik device handle. |
axis | 1= North 2= South 3= East 4= West |
artfn int ArtemisGuidePort | ( | ArtemisHandle | handle, |
int | nibble | ||
) |
handle | the connected Atik device handle. |
nibble | 0b0001= North 0b0010= South 0b0100=East 0b1000=West |
artfn bool ArtemisHasCameraSpecificOption | ( | ArtemisHandle | handle, |
unsigned short | id | ||
) |
Returns whether the specified option is available.
handle | the connected Atik device handle. |
id | the camera specific option |
artfn BOOL ArtemisHasFastMode | ( | ArtemisHandle | handle | ) |
Gets whether the device supports fast mode.
handle | the connected Atik device handle. |
artfn void* ArtemisImageBuffer | ( | ArtemisHandle | handle | ) |
Returns a pointer to the internal image buffer which contains the latest captured image. The buffer size can be calculated by width * height * pixel depth.
handle | the connected Atik device handle. |
artfn BOOL ArtemisImageReady | ( | ArtemisHandle | handle | ) |
Returns whether the image has been fully downloaded and is ready to access. This method can be polled until it returns TRUE, after which ArtemisGetImageData() and ArtemisImageBuffer() can be called to get the results of the exposure. It is recommended to add a delay in between polling (E.G. 10 milliseconds).
handle | the connected Atik device handle. |
artfn int ArtemisInitializeLens | ( | ArtemisHandle | handle | ) |
Initialise lens controls. If not called, lens control methods will return ARTEMIS_NOT_INITIALIZED.
handle | the connected Atik device handle. |
artfn BOOL ArtemisIsConnected | ( | ArtemisHandle | handle | ) |
Returns whether the handle is currently connected to a camera.
handle | The device handle |
Gets whether the connection to the camera is local.
artfn float ArtemisLastExposureDuration | ( | ArtemisHandle | handle | ) |
Returns the duration of the last exposure as floating point number of seconds.
handle | the connected Atik device handle. |
artfn char* ArtemisLastStartTime | ( | ArtemisHandle | handle | ) |
Returns a pointer to the formatted last exposure start time. The buffer is internal to the SDK and is overwritten every time this function is called. Does not include milliseconds.
handle | the connected Atik device handle. |
artfn int ArtemisLastStartTimeMilliseconds | ( | ArtemisHandle | handle | ) |
Returns the last exposure start time millisecond component.
handle | the connected Atik device handle. |
artfn bool ArtemisLoadDLL | ( | const char * | fileName | ) |
Dynamically loads the Atik implementation DLL. This method is only needed if the DLL is linked dynamically. This method is part of the DLL example code.
fileName | the DLL's file path |
artfn int ArtemisOpenShutter | ( | ArtemisHandle | handle | ) |
Opens the shutter on the device. Please call ArtemisCanControlShutter() to see if the shutter can be controlled.
handle | the connected Atik device handle. |
artfn BOOL ArtemisOverlappedExposureValid | ( | ArtemisHandle | handle | ) |
Returns whether the overlapped exposure is still valid.
handle | the connected Atik device handle. |
artfn int ArtemisPrechargeMode | ( | ArtemisHandle | handle, |
int | mode | ||
) |
Sets the precharge mode of the camera. Precharge applies an in-camera offset, mainly for astronomy use.
handle | the connected Atik device handle. |
mode | ARTEMISPRECHARGEMODE enumeration value |
artfn int ArtemisProperties | ( | ArtemisHandle | handle, |
struct ARTEMISPROPERTIES * | pProp | ||
) |
Gets the connected camera's physical properties.
handle | The connected camera's handle. |
pProp | if successful, a pointer to a user provided ARTEMISPROPERTIES instance. |
artfn int ArtemisPulseGuide | ( | ArtemisHandle | handle, |
int | axis, | ||
int | milli | ||
) |
handle | the connected Atik device handle. |
axis | 1= North 2= South 3= East 4= West |
milli | number of milliseconds to pulse for on the selected axis |
artfn int ArtemisReadFromEEPROM | ( | ArtemisHandle | handle, |
char * | password, | ||
int | address, | ||
int | length, | ||
unsigned char * | data | ||
) |
Reads a value from the EEPROM. This API is for internal use.
handle | the connected Atik device handle. |
password | password required to interact with the device. |
address | address of EEPROM |
length | length of the data |
data | pointer to the buffer containing the data |
artfn int ArtemisRefreshDevicesCount | ( | ) |
artfn int ArtemisSetAmplifierSwitched | ( | ArtemisHandle | handle, |
bool | bSwitched | ||
) |
Enable/disable the device's amplifier. This function is equivalent to ArtemisAmplifier().
handle | the connected Atik device handle. |
bSwitched | whether to enable switching amplifier or not |
artfn void ArtemisSetAtikAir | ( | const char * | host, |
int | port | ||
) |
Connect to an AtikAir instance.
host | The hostname or ip address of the instance, E.G. "192.168.0.1" |
port | the port of the instance. |
artfn int ArtemisSetColumnRepairColumns | ( | ArtemisHandle | handle, |
int | nColumn, | ||
unsigned short * | columns | ||
) |
Set the columns on which column repair post processing is performed.
handle | the connected Atik device handle. |
nColumn | the length of the array of column indices provided in columns. |
columns | an array of column indices to perform repair to. |
artfn int ArtemisSetColumnRepairFixColumns | ( | ArtemisHandle | handle, |
bool | value | ||
) |
Sets whether column repair is enabled.
handle | the connected Atik device handle. |
value | whether column repair is enabled or not. |
artfn int ArtemisSetContinuousExposingMode | ( | ArtemisHandle | handle, |
bool | bEnable | ||
) |
Set whether continuous exposing mode is enabled. This only has an effect on supported devices.
handle | the connected Atik device handle. |
bEnable |
artfn int ArtemisSetCooling | ( | ArtemisHandle | handle, |
int | setpoint | ||
) |
Sets the cooling target temperature of the device. This will override ArtemisSetCoolingPower().
handle | the connected Atik device handle. |
setpoint | the target temperature of the device in hundreds of degrees celsius. |
artfn int ArtemisSetCoolingPower | ( | ArtemisHandle | handle, |
int | power | ||
) |
Sets the cooling power of the cooler directly. This will override ArtemisSetCooling().
handle | the connected Atik device handle. |
power | the power level of the cooler, from 0 to 255. |
artfn int ArtemisSetDarkMode | ( | ArtemisHandle | handle, |
bool | bEnable | ||
) |
Sets whether dark mode is enabled for the device.
handle | the connected Atik device handle. |
bEnable | whether to enable or disable dark mode. |
artfn void ArtemisSetDebugCallback | ( | void(*)(const char *message) | callback | ) |
Provide a pointer to a function, which will be invoked when debug output is produced. This can be used in combination with ArtemisAllowDebugToConsole.
callback | A function pointer to a compatible log function. |
artfn void ArtemisSetDebugCallbackContext | ( | void * | context, |
void(*)(void *context, const char *message) | callback | ||
) |
Same as ArtemisSetDebugCallback(), but allows to pass an additional void pointer. This can be used to store a user-allocated data structure which will be passed to the callback. This pointer needs to be allocated and managed by the user. The context will never be freed by the API.
context | The user-allocated pointer. |
callback | A function pointer to a compatible log function |
artfn BOOL ArtemisSetFastCallback | ( | ArtemisHandle | handle, |
void(*)(ArtemisHandle handle, int x, int y, int w, int h, int binx, int biny, void *imageBuffer) | callback | ||
) |
Set the callback that will be invoked when a fast mode exposure is completed.
handle | the connected Atik device handle. |
callback | a pointer to a function which will be invoked when fast mode is completed. |
artfn void ArtemisSetFirmwareDir | ( | const char * | firmwareDir | ) |
Internal function used during flashing.
firmwareDir | The firmware directory as null terminated string. |
artfn int ArtemisSetGain | ( | ArtemisHandle | handle, |
bool | isPreview, | ||
int | gain, | ||
int | offset | ||
) |
Set the gain and offset for the device Note that Horizon/ACIS cameras need to use ArtemisCameraSpecificOptionSetData() to set the gain.
handle | the connected Atik device handle. |
isPreview | whether to set gain for preview mode or normal mode. |
gain | the gain to set (scale of 1-24). |
offset | the offset to set. |
artfn int ArtemisSetGpioDirection | ( | ArtemisHandle | handle, |
int | directionMask | ||
) |
handle | |
directionMask |
artfn int ArtemisSetGpioValues | ( | ArtemisHandle | handle, |
int | lineValues | ||
) |
handle | the connected Atik device handle. |
lineValues |
artfn int ArtemisSetLensAperture | ( | ArtemisHandle | handle, |
int | aperture | ||
) |
Sets the lens aperture.
handle | the connected Atik device handle. |
aperture | the aperture to set |
artfn int ArtemisSetLensFocus | ( | ArtemisHandle | handle, |
int | focus | ||
) |
Sets the lens focus.
handle | the connected Atik device handle. |
focus | the focus value to set |
artfn int ArtemisSetOverlappedExposureTime | ( | ArtemisHandle | handle, |
float | fSeconds | ||
) |
Set the overlapped exposure time.
handle | the connected Atik device handle. |
fSeconds | the time as a floating point number of seconds. |
artfn int ArtemisSetPreview | ( | ArtemisHandle | handle, |
bool | bPrev | ||
) |
Sets whether preview mode is enabled for the device. If preview mode is enabled, the sensor is not cleared between exposures. Using preview mode, there might be more noise/glow in the resulting image.
handle | the connected Atik device handle. |
bPrev | whether to enable or disable preview mode. |
artfn int ArtemisSetProcessing | ( | ArtemisHandle | handle, |
int | options | ||
) |
Sets which post processing effects are enabled for the device.
handle | the connected Atik device handle. |
options | ARTEMISPROCESSING enumeration of post processing flags to enable for the device. |
artfn int ArtemisSetShutterSpeed | ( | ArtemisHandle | handle, |
int | speed | ||
) |
Sets the shutter speed.
handle | the connected Atik device handle. |
speed | the speed to set, between 1 and 200. |
artfn int ArtemisSetSubSample | ( | ArtemisHandle | handle, |
bool | bSub | ||
) |
Set whether subsampling mode is enabled on the device.
handle | the connected Atik device handle. |
bSub |
artfn int ArtemisSetWindowHeaterPower | ( | ArtemisHandle | handle, |
int | windowHeaterPower | ||
) |
Sets the window heater power.
handle | the connected Atik device handle |
windowHeaterPower | A value between 0 and 255 specifying the power to the window heater. |
artfn int ArtemisStartExposure | ( | ArtemisHandle | handle, |
float | seconds | ||
) |
Begin an exposure for the device, specifying a duration as floating point seconds.
handle | the connected Atik device handle. |
seconds | the seconds to perform the exposure for, as a floating point number. |
artfn int ArtemisStartExposureMS | ( | ArtemisHandle | handle, |
int | ms | ||
) |
Begin an exposure for the device, specifying a duration as milliseconds.
handle | the connected Atik device handle. |
ms | the exposure duration in milliseconds. |
artfn BOOL ArtemisStartFastExposure | ( | ArtemisHandle | handle, |
int | ms | ||
) |
Begins a fast mode exposure.
handle | the connected Atik device handle. |
ms | the exposure duration in milliseconds. |
artfn int ArtemisStartOverlappedExposure | ( | ArtemisHandle | handle | ) |
Begin an overlapped exposure.
handle | the connected Atik device handle. |
artfn int ArtemisStopExposure | ( | ArtemisHandle | handle | ) |
Stop the current exposure for the device. This is analogous to ArtemisAbortExposure().
handle | the connected Atik device handle. |
artfn int ArtemisStopGuiding | ( | ArtemisHandle | handle | ) |
handle | the connected Atik device handle. |
artfn int ArtemisStopGuidingBeforeDownload | ( | ArtemisHandle | handle, |
bool | bEnable | ||
) |
handle | the connected Atik device handle. |
bEnable |
artfn int ArtemisSubframe | ( | ArtemisHandle | handle, |
int | x, | ||
int | y, | ||
int | w, | ||
int | h | ||
) |
Set the device's subframe position and size. This is equivalent to calling ArtemisSubframePos() followed by ArtemisSubframeSize().
handle | the connected camera's handle |
x | the X offset of the subframe region. |
y | the Y offset of the subframe region. |
w | the width of the subframe region. |
h | the height of the subframe region. |
artfn int ArtemisSubframePos | ( | ArtemisHandle | handle, |
int | x, | ||
int | y | ||
) |
Sets the device's subframe position.
handle | the connected Atik device handle. |
x | the X offset of the subframe region. |
y | the Y offset of the subframe region. |
artfn int ArtemisSubframeSize | ( | ArtemisHandle | handle, |
int | w, | ||
int | h | ||
) |
Sets the device's subframe width and height.
handle | the connected Atik device handle. |
w | the width of the subframe region. |
h | the height of the subframe region. |
artfn int ArtemisTemperatureSensorInfo | ( | ArtemisHandle | handle, |
int | sensor, | ||
int * | temperature | ||
) |
Gets temperature of the device for the specific sensor index, in hundreds of degrees centigrade. If "sensor" is set to 0, this will be set to the number of temperature sensors on the device.
handle | the connected Atik device handle. |
sensor | the index of the sensor to obtain information from. |
temperature | a pointer to an integer which will be set to the temperature in tenths of degrees celsius, or the number of temperature sensors on the device. |
artfn int ArtemisTriggeredExposure | ( | ArtemisHandle | handle, |
bool | bAwaitTrigger | ||
) |
Sets whether the device will await a triggered exposure.
handle | the connected Atik device handle. |
bAwaitTrigger | whether to await a triggered exposure |
artfn void ArtemisUnLoadDLL | ( | ) |
Unloads the Atik DLL and frees the internal DLL handle. This method is only needed if the DLL is linked dynamically. This method is part of the DLL example code.
artfn int ArtemisUploadFirmware | ( | ArtemisHandle | handle, |
char * | fileName, | ||
char * | password | ||
) |
Upload a new firmware on the device. This API is for internal use.
handle | the connected Atik device handle. |
fileName | the firmware file's full path. |
password | the password needed to enable upload. |
artfn int ArtemisWriteToEEPROM | ( | ArtemisHandle | handle, |
char * | password, | ||
int | address, | ||
int | length, | ||
const unsigned char * | data | ||
) |
Writes a value to the EEPROM. This API is for internal use.
handle | the connected Atik device handle. |
password | password required to interact with the device. |
address | address of EEPROM |
length | length of the data |
data | pointer to the buffer containing the data |