BioImager  3.6.0
A .NET microscopy imaging library. Supports various microscopes by using imported libraries & GUI automation. Supported libraries include PriorĀ® & ZeissĀ® & all devices supported by Micromanager 2.0 and python-microscope.
Loading...
Searching...
No Matches
microscope._wrappers.asdk Namespace Reference

Classes

class  DM
 

Functions

def make_prototype (name, argtypes, restype=COMPL_STAT)
 

Variables

 SDK = ctypes.WinDLL("ASDK")
 
 pDM = ctypes.POINTER(DM)
 
 CStr = c_char_p
 
 Scalar = c_double
 
 Scalar_p = ctypes.POINTER(Scalar)
 
 UInt = c_uint32
 
 Size_T = c_size_t
 
 COMPL_STAT = c_int
 
int SUCCESS = 0
 
int FAILURE = -1
 
def Get = make_prototype("asdkGet", [pDM, CStr, Scalar_p])
 
def GetLastError
 
def Init = make_prototype("asdkInit", [CStr], pDM)
 
def Release = make_prototype("asdkRelease", [pDM])
 
def Send = make_prototype("asdkSend", [pDM, Scalar_p])
 
def SendPattern = make_prototype("asdkSendPattern", [pDM, Scalar_p, UInt, UInt])
 
def Set = make_prototype("asdkSet", [pDM, CStr, Scalar])
 
def Stop = make_prototype("asdkStop", [pDM])
 

Function Documentation

◆ make_prototype()

def microscope._wrappers.asdk.make_prototype (   name,
  argtypes,
  restype = COMPL_STAT 
)

Definition at line 53 of file asdk.py.

53def make_prototype(name, argtypes, restype=COMPL_STAT):
54 func = getattr(SDK, name)
55 func.argtypes = argtypes
56 func.restype = restype
57 return func
58
59

Variable Documentation

◆ COMPL_STAT

microscope._wrappers.asdk.COMPL_STAT = c_int

Definition at line 48 of file asdk.py.

◆ CStr

microscope._wrappers.asdk.CStr = c_char_p

Definition at line 42 of file asdk.py.

◆ FAILURE

int microscope._wrappers.asdk.FAILURE = -1

Definition at line 50 of file asdk.py.

◆ Get

def microscope._wrappers.asdk.Get = make_prototype("asdkGet", [pDM, CStr, Scalar_p])

Definition at line 60 of file asdk.py.

◆ GetLastError

def microscope._wrappers.asdk.GetLastError
Initial value:
1= make_prototype(
2 "asdkGetLastError", [ctypes.POINTER(UInt), CStr, Size_T]
3)

Definition at line 62 of file asdk.py.

◆ Init

def microscope._wrappers.asdk.Init = make_prototype("asdkInit", [CStr], pDM)

Definition at line 66 of file asdk.py.

◆ pDM

microscope._wrappers.asdk.pDM = ctypes.POINTER(DM)

Definition at line 39 of file asdk.py.

◆ Release

def microscope._wrappers.asdk.Release = make_prototype("asdkRelease", [pDM])

Definition at line 68 of file asdk.py.

◆ Scalar

microscope._wrappers.asdk.Scalar = c_double

Definition at line 43 of file asdk.py.

◆ Scalar_p

microscope._wrappers.asdk.Scalar_p = ctypes.POINTER(Scalar)

Definition at line 44 of file asdk.py.

◆ SDK

microscope._wrappers.asdk.SDK = ctypes.WinDLL("ASDK")

Definition at line 29 of file asdk.py.

◆ Send

def microscope._wrappers.asdk.Send = make_prototype("asdkSend", [pDM, Scalar_p])

Definition at line 70 of file asdk.py.

◆ SendPattern

def microscope._wrappers.asdk.SendPattern = make_prototype("asdkSendPattern", [pDM, Scalar_p, UInt, UInt])

Definition at line 72 of file asdk.py.

◆ Set

def microscope._wrappers.asdk.Set = make_prototype("asdkSet", [pDM, CStr, Scalar])

Definition at line 74 of file asdk.py.

◆ Size_T

microscope._wrappers.asdk.Size_T = c_size_t

Definition at line 46 of file asdk.py.

◆ Stop

def microscope._wrappers.asdk.Stop = make_prototype("asdkStop", [pDM])

Definition at line 76 of file asdk.py.

◆ SUCCESS

int microscope._wrappers.asdk.SUCCESS = 0

Definition at line 49 of file asdk.py.

◆ UInt

microscope._wrappers.asdk.UInt = c_uint32

Definition at line 45 of file asdk.py.