Python APIs
On this Page
Python APIs¶
All APIs, structures and enums used are based on HLML. APIs that provide information about a specific device require a handle as a parameter. This handle can be retrieved using the device’s index or PCI address.
Exceptions¶
The error codes of all the C APIs have corresponding exceptions in PYHLML. The exceptions are in pyhlml.hlml_error.
HLML Error Code |
PYHLML Exception |
---|---|
HLML_ERROR_UNINITIALIZED |
HLMLError_Uninitialized |
HLML_ERROR_INVALID_ARGUMENT |
HLMLError_InvalidArgument |
HLML_ERROR_NOT_SUPPORTED |
HLMLError_NotSupported |
HLML_ERROR_ALREADY_INITIALIZED |
HLMLError_AlreadyInitialized |
HLML_ERROR_NOT_FOUND |
HLMLError_NotFound |
HLML_ERROR_INSUFFICIENT_SIZE |
HLMLError_InsufficientSize |
HLML_ERROR_DRIVER_NOT_LOADED |
HLMLError_DriverNotLoaded |
HLML_ERROR_TIMEOUT |
HLMLError_Timeout |
HLML_ERROR_AIP_IS_LOST |
HLMLError_AipIsLost |
HLML_ERROR_MEMORY |
HLMLError_Memory |
HLML_ERROR_NO_DATA |
HLMLError_NoData |
HLML_ERROR_UNKNOWN |
HLMLError_Unknown |