- Main
- Tutorials
- Library
- Samples

- Namespace List
- Namespace Members

Data Structures | Functions | Variables
ioThinx_4530.ioThinx_4530_API Namespace Reference

## Data Structures
class | ioThinx_4530_API
class | ioThinxError

## Functions
def | check_c_api_version (device_c_api_version, support_c_api_version)

## Variables
int | BIN_TYPE = 2
int | SLOT_CH_NUM = 16

## Function Documentation

def ioThinx_4530.ioThinx_4530_API.check_c_api_version | ( |  | device_c_api_version,
|  |  | support_c_api_version
| ) |  |

Definition at line 9 of file ioThinx_4530_API.py.

9 def check_c_api_version(device_c_api_version, support_c_api_version):
10 device_version_array = device_c_api_version.split(".")
11 support_version_array = support_c_api_version.split(".")
12 if len(support_version_array) != 3:
13 return "support_c_api_version error"
14 if len(device_version_array) != 3:
15 return "device_c_api_version error"
16
17 version_fail = device_c_api_version + ">" + support_c_api_version
18
19 if device_version_array == support_version_array:
20 return None
21
22 for i in range(3):
23 if device_version_array[i] < support_version_array[i]:
24 return None
25 else:
26 return version_fail
27
28
ioThinx_4530.ioThinx_4530_API.check_c_api_version
def check_c_api_version(device_c_api_version, support_c_api_version)
Definition: ioThinx_4530_API.py:9

## Variable Documentation

int BIN_TYPE = 2

Definition at line 5 of file ioThinx_4530_API.py.

int SLOT_CH_NUM = 16

Definition at line 6 of file ioThinx_4530_API.py.