|
@ -36,6 +36,12 @@ typedef struct { |
|
|
* @brief 当前平台参数 |
|
|
* @brief 当前平台参数 |
|
|
*/ |
|
|
*/ |
|
|
int32_t __platinfo_cpyid = 0; |
|
|
int32_t __platinfo_cpyid = 0; |
|
|
|
|
|
|
|
|
|
|
|
int32_t test_pipette_io1_connected = 0; |
|
|
|
|
|
int32_t test_pipette_io1_reverse = 0; |
|
|
|
|
|
int32_t test_pipette_uart485_connected = 0; |
|
|
|
|
|
int32_t test_pipette_uart232_connected = 0; |
|
|
|
|
|
|
|
|
} pipette_state_t; |
|
|
} pipette_state_t; |
|
|
|
|
|
|
|
|
typedef enum { |
|
|
typedef enum { |
|
@ -53,6 +59,10 @@ typedef enum { |
|
|
kpipette_state_asynchronous_result0, |
|
|
kpipette_state_asynchronous_result0, |
|
|
kpipette_state_asynchronous_result1, |
|
|
kpipette_state_asynchronous_result1, |
|
|
kpipette_state_platinfo_cpyid, |
|
|
kpipette_state_platinfo_cpyid, |
|
|
|
|
|
kpipette_state_test_pipette_io1_connected, |
|
|
|
|
|
kpipette_state_test_pipette_io1_reverse, |
|
|
|
|
|
kpipette_state_test_pipette_uart485_connected, |
|
|
|
|
|
kpipette_state_test_pipette_uart232_connected, |
|
|
kpipette_state_max, |
|
|
kpipette_state_max, |
|
|
} pipette_state_index_t; |
|
|
} pipette_state_index_t; |
|
|
|
|
|
|
|
@ -72,6 +82,10 @@ static inline const char *pipette_state_index_to_string(pipette_state_index_t in |
|
|
CASE_ENUM_TO_STRING(kpipette_state_asynchronous_result0) |
|
|
CASE_ENUM_TO_STRING(kpipette_state_asynchronous_result0) |
|
|
CASE_ENUM_TO_STRING(kpipette_state_asynchronous_result1) |
|
|
CASE_ENUM_TO_STRING(kpipette_state_asynchronous_result1) |
|
|
CASE_ENUM_TO_STRING(kpipette_state_platinfo_cpyid) |
|
|
CASE_ENUM_TO_STRING(kpipette_state_platinfo_cpyid) |
|
|
|
|
|
CASE_ENUM_TO_STRING(kpipette_state_test_pipette_io1_connected) |
|
|
|
|
|
CASE_ENUM_TO_STRING(kpipette_state_test_pipette_io1_reverse) |
|
|
|
|
|
CASE_ENUM_TO_STRING(kpipette_state_test_pipette_uart485_connected) |
|
|
|
|
|
CASE_ENUM_TO_STRING(kpipette_state_test_pipette_uart232_connected) |
|
|
CASE_ENUM_TO_STRING(kpipette_state_max) |
|
|
CASE_ENUM_TO_STRING(kpipette_state_max) |
|
|
} |
|
|
} |
|
|
return "unknown"; |
|
|
return "unknown"; |
|
@ -79,7 +93,7 @@ static inline const char *pipette_state_index_to_string(pipette_state_index_t in |
|
|
|
|
|
|
|
|
typedef struct { |
|
|
typedef struct { |
|
|
int32_t is_has_liquid; // 是否有液体
|
|
|
int32_t is_has_liquid; // 是否有液体
|
|
|
int32_t liquid_type_cpyidx; // 移液枪中液体类型索引
|
|
|
|
|
|
|
|
|
int32_t liquid_type_cpyidx; // 移液枪中液体类型索引
|
|
|
int32_t liquid_volume; // 移液枪中液体体积(0.1ul)
|
|
|
int32_t liquid_volume; // 移液枪中液体体积(0.1ul)
|
|
|
int32_t transport_volume; // 转移过程中多吸入的量,精度0.1ul (放滴落)
|
|
|
int32_t transport_volume; // 转移过程中多吸入的量,精度0.1ul (放滴落)
|
|
|
int32_t blowout_air_volume; // 预先吸入的空气体积(0.1ul)
|
|
|
int32_t blowout_air_volume; // 预先吸入的空气体积(0.1ul)
|
|
|