internal static extern int TB_SetWorkMode(int device, TBModeDef mode, string param, int timeout);
internal static extern int HX_SetWorkMode(TBModeDef mode, string param);