21 #define SWIG_PYTHON_DIRECTOR_NO_VTABLE 29 #ifndef SWIGTEMPLATEDISAMBIGUATOR 30 # if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x560) 31 # define SWIGTEMPLATEDISAMBIGUATOR template 32 # elif defined(__HP_aCC) 35 # define SWIGTEMPLATEDISAMBIGUATOR template 37 # define SWIGTEMPLATEDISAMBIGUATOR 43 # if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__)) 44 # define SWIGINLINE inline 52 # if defined(__GNUC__) 53 # if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)) 54 # define SWIGUNUSED __attribute__ ((__unused__)) 59 # define SWIGUNUSED __attribute__ ((__unused__)) 65 #ifndef SWIG_MSC_UNSUPPRESS_4505 66 # if defined(_MSC_VER) 67 # pragma warning(disable : 4505) 71 #ifndef SWIGUNUSEDPARM 73 # define SWIGUNUSEDPARM(p) 75 # define SWIGUNUSEDPARM(p) p SWIGUNUSED 81 # define SWIGINTERN static SWIGUNUSED 85 #ifndef SWIGINTERNINLINE 86 # define SWIGINTERNINLINE SWIGINTERN SWIGINLINE 90 #if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4) 91 # ifndef GCC_HASCLASSVISIBILITY 92 # define GCC_HASCLASSVISIBILITY 97 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) 98 # if defined(STATIC_LINKED) 101 # define SWIGEXPORT __declspec(dllexport) 104 # if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY) 105 # define SWIGEXPORT __attribute__ ((visibility("default"))) 114 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) 115 # define SWIGSTDCALL __stdcall 122 #if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE) 123 # define _CRT_SECURE_NO_DEPRECATE 127 #if !defined(SWIG_NO_SCL_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_SCL_SECURE_NO_DEPRECATE) 128 # define _SCL_SECURE_NO_DEPRECATE 132 #if defined(__APPLE__) && !defined(__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES) 133 # define __ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES 0 141 #ifdef __INTEL_COMPILER 142 # pragma warning disable 592 146 #if defined(_DEBUG) && defined(SWIG_PYTHON_INTERPRETER_NO_DEBUG) 164 #define SWIG_RUNTIME_VERSION "4" 167 #ifdef SWIG_TYPE_TABLE 168 # define SWIG_QUOTE_STRING(x) #x 169 # define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x) 170 # define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE) 172 # define SWIG_TYPE_TABLE_NAME 185 # define SWIGRUNTIME SWIGINTERN 188 #ifndef SWIGRUNTIMEINLINE 189 # define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE 193 #ifndef SWIG_BUFFER_SIZE 194 # define SWIG_BUFFER_SIZE 1024 198 #define SWIG_POINTER_DISOWN 0x1 199 #define SWIG_CAST_NEW_MEMORY 0x2 202 #define SWIG_POINTER_OWN 0x1 285 #define SWIG_ERROR (-1) 286 #define SWIG_IsOK(r) (r >= 0) 287 #define SWIG_ArgError(r) ((r != SWIG_ERROR) ? r : SWIG_TypeError) 290 #define SWIG_CASTRANKLIMIT (1 << 8) 292 #define SWIG_NEWOBJMASK (SWIG_CASTRANKLIMIT << 1) 294 #define SWIG_TMPOBJMASK (SWIG_NEWOBJMASK << 1) 296 #define SWIG_BADOBJ (SWIG_ERROR) 297 #define SWIG_OLDOBJ (SWIG_OK) 298 #define SWIG_NEWOBJ (SWIG_OK | SWIG_NEWOBJMASK) 299 #define SWIG_TMPOBJ (SWIG_OK | SWIG_TMPOBJMASK) 301 #define SWIG_AddNewMask(r) (SWIG_IsOK(r) ? (r | SWIG_NEWOBJMASK) : r) 302 #define SWIG_DelNewMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_NEWOBJMASK) : r) 303 #define SWIG_IsNewObj(r) (SWIG_IsOK(r) && (r & SWIG_NEWOBJMASK)) 304 #define SWIG_AddTmpMask(r) (SWIG_IsOK(r) ? (r | SWIG_TMPOBJMASK) : r) 305 #define SWIG_DelTmpMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_TMPOBJMASK) : r) 306 #define SWIG_IsTmpObj(r) (SWIG_IsOK(r) && (r & SWIG_TMPOBJMASK)) 309 #if defined(SWIG_CASTRANK_MODE) 310 # ifndef SWIG_TypeRank 311 # define SWIG_TypeRank unsigned long 313 # ifndef SWIG_MAXCASTRANK 314 # define SWIG_MAXCASTRANK (2) 316 # define SWIG_CASTRANKMASK ((SWIG_CASTRANKLIMIT) -1) 317 # define SWIG_CastRank(r) (r & SWIG_CASTRANKMASK) 318 SWIGINTERNINLINE
int SWIG_AddCast(
int r) {
319 return SWIG_IsOK(r) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR) : r;
321 SWIGINTERNINLINE
int SWIG_CheckState(
int r) {
322 return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0;
325 # define SWIG_AddCast(r) (r) 326 # define SWIG_CheckState(r) (SWIG_IsOK(r) ? 1 : 0) 336 typedef void *(*swig_converter_func)(
void *,
int *);
343 swig_dycast_func dcast;
352 swig_converter_func converter;
377 SWIG_TypeNameComp(
const char *f1,
const char *l1,
378 const char *f2,
const char *l2) {
379 for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) {
380 while ((*f1 ==
' ') && (f1 != l1)) ++f1;
381 while ((*f2 ==
' ') && (f2 != l2)) ++f2;
382 if (*f1 != *f2)
return (*f1 > *f2) ? 1 : -1;
384 return (
int)((l1 - f1) - (l2 - f2));
392 SWIG_TypeCmp(
const char *nb,
const char *tb) {
394 const char* te = tb + strlen(tb);
396 while (equiv != 0 && *ne) {
397 for (nb = ne; *ne; ++ne) {
398 if (*ne ==
'|')
break;
400 equiv = SWIG_TypeNameComp(nb, ne, tb, te);
411 SWIG_TypeEquiv(
const char *nb,
const char *tb) {
412 return SWIG_TypeCmp(nb, tb) == 0 ? 1 : 0;
423 if (strcmp(iter->type->name, c) == 0) {
424 if (iter == ty->cast)
427 iter->prev->next = iter->next;
429 iter->next->prev = iter->prev;
430 iter->next = ty->cast;
432 if (ty->cast) ty->cast->prev = iter;
450 if (iter->type == from) {
451 if (iter == ty->cast)
454 iter->prev->next = iter->next;
456 iter->next->prev = iter->prev;
457 iter->next = ty->cast;
459 if (ty->cast) ty->cast->prev = iter;
472 SWIGRUNTIMEINLINE
void *
474 return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr, newmemory);
483 if (!ty || !ty->dcast)
return ty;
484 while (ty && (ty->dcast)) {
485 ty = (*ty->dcast)(ptr);
494 SWIGRUNTIMEINLINE
const char *
503 SWIGRUNTIME
const char *
509 if (!type)
return NULL;
510 if (type->str != NULL) {
511 const char *last_name = type->str;
513 for (s = type->str; *s; s++)
514 if (*s ==
'|') last_name = s+1;
528 ti->clientdata = clientdata;
531 if (!cast->converter) {
533 if (!tc->clientdata) {
534 SWIG_TypeClientData(tc, clientdata);
542 SWIG_TypeClientData(ti, clientdata);
562 size_t r = iter->size - 1;
565 size_t i = (l + r) >> 1;
566 const char *iname = iter->types[i]->name;
568 int compare = strcmp(name, iname);
570 return iter->types[i];
571 }
else if (compare < 0) {
577 }
else if (compare > 0) {
586 }
while (iter != end);
604 swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name);
613 for (; i < iter->size; ++i) {
614 if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name)))
615 return iter->types[i];
618 }
while (iter != end);
629 SWIG_PackData(
char *c,
void *ptr,
size_t sz) {
630 static const char hex[17] =
"0123456789abcdef";
631 const unsigned char *u = (
unsigned char *) ptr;
632 const unsigned char *eu = u + sz;
633 for (; u != eu; ++u) {
634 unsigned char uu = *u;
635 *(c++) = hex[(uu & 0xf0) >> 4];
636 *(c++) = hex[uu & 0xf];
644 SWIGRUNTIME
const char *
645 SWIG_UnpackData(
const char *c,
void *ptr,
size_t sz) {
646 unsigned char *u = (
unsigned char *) ptr;
647 const unsigned char *eu = u + sz;
648 for (; u != eu; ++u) {
651 if ((d >=
'0') && (d <=
'9'))
652 uu = ((d -
'0') << 4);
653 else if ((d >=
'a') && (d <=
'f'))
654 uu = ((d - (
'a'-10)) << 4);
658 if ((d >=
'0') && (d <=
'9'))
660 else if ((d >=
'a') && (d <=
'f'))
661 uu |= (d - (
'a'-10));
673 SWIG_PackVoidPtr(
char *buff,
void *ptr,
const char *name,
size_t bsz) {
675 if ((2*
sizeof(
void *) + 2) > bsz)
return 0;
677 r = SWIG_PackData(r,&ptr,
sizeof(
void *));
678 if (strlen(name) + 1 > (bsz - (r - buff)))
return 0;
683 SWIGRUNTIME
const char *
684 SWIG_UnpackVoidPtr(
const char *c,
void **ptr,
const char *name) {
686 if (strcmp(c,
"NULL") == 0) {
693 return SWIG_UnpackData(++c,ptr,
sizeof(
void *));
697 SWIG_PackDataName(
char *buff,
void *ptr,
size_t sz,
const char *name,
size_t bsz) {
699 size_t lname = (name ? strlen(name) : 0);
700 if ((2*sz + 2 + lname) > bsz)
return 0;
702 r = SWIG_PackData(r,ptr,sz);
704 strncpy(r,name,lname+1);
711 SWIGRUNTIME
const char *
712 SWIG_UnpackDataName(
const char *c,
void *ptr,
size_t sz,
const char *name) {
714 if (strcmp(c,
"NULL") == 0) {
721 return SWIG_UnpackData(++c,ptr,sz);
729 #define SWIG_UnknownError -1 730 #define SWIG_IOError -2 731 #define SWIG_RuntimeError -3 732 #define SWIG_IndexError -4 733 #define SWIG_TypeError -5 734 #define SWIG_DivisionByZero -6 735 #define SWIG_OverflowError -7 736 #define SWIG_SyntaxError -8 737 #define SWIG_ValueError -9 738 #define SWIG_SystemError -10 739 #define SWIG_AttributeError -11 740 #define SWIG_MemoryError -12 741 #define SWIG_NullReferenceError -13 746 #if PY_VERSION_HEX >= 0x03000000 748 #define PyClass_Check(obj) PyObject_IsInstance(obj, (PyObject *)&PyType_Type) 749 #define PyInt_Check(x) PyLong_Check(x) 750 #define PyInt_AsLong(x) PyLong_AsLong(x) 751 #define PyInt_FromLong(x) PyLong_FromLong(x) 752 #define PyInt_FromSize_t(x) PyLong_FromSize_t(x) 753 #define PyString_Check(name) PyBytes_Check(name) 754 #define PyString_FromString(x) PyUnicode_FromString(x) 755 #define PyString_Format(fmt, args) PyUnicode_Format(fmt, args) 756 #define PyString_AsString(str) PyBytes_AsString(str) 757 #define PyString_Size(str) PyBytes_Size(str) 758 #define PyString_InternFromString(key) PyUnicode_InternFromString(key) 759 #define Py_TPFLAGS_HAVE_CLASS Py_TPFLAGS_BASETYPE 760 #define PyString_AS_STRING(x) PyUnicode_AS_STRING(x) 761 #define _PyLong_FromSsize_t(x) PyLong_FromSsize_t(x) 766 # define Py_TYPE(op) ((op)->ob_type) 771 #if PY_VERSION_HEX >= 0x03000000 772 # define SWIG_Python_str_FromFormat PyUnicode_FromFormat 774 # define SWIG_Python_str_FromFormat PyString_FromFormat 782 SWIG_Python_str_AsChar(PyObject *str)
784 #if PY_VERSION_HEX >= 0x03000000 788 str = PyUnicode_AsUTF8String(str);
789 PyBytes_AsStringAndSize(str, &cstr, &len);
790 newstr = (
char *) malloc(len+1);
791 memcpy(newstr, cstr, len+1);
795 return PyString_AsString(str);
799 #if PY_VERSION_HEX >= 0x03000000 800 # define SWIG_Python_str_DelForPy3(x) free( (void*) (x) ) 802 # define SWIG_Python_str_DelForPy3(x) 807 SWIG_Python_str_FromChar(
const char *c)
809 #if PY_VERSION_HEX >= 0x03000000 810 return PyUnicode_FromString(c);
812 return PyString_FromString(c);
817 #if PY_VERSION_HEX < 0x02020000 818 # if defined(_MSC_VER) || defined(__BORLANDC__) || defined(_WATCOM) 819 # define PyOS_snprintf _snprintf 821 # define PyOS_snprintf snprintf 826 #if PY_VERSION_HEX < 0x02020000 828 #ifndef SWIG_PYBUFFER_SIZE 829 # define SWIG_PYBUFFER_SIZE 1024 833 PyString_FromFormat(
const char *fmt, ...) {
835 char buf[SWIG_PYBUFFER_SIZE * 2];
838 res = vsnprintf(buf,
sizeof(buf), fmt, ap);
840 return (res < 0 || res >= (
int)
sizeof(buf)) ? 0 : PyString_FromString(buf);
845 #if PY_VERSION_HEX < 0x01060000 846 # define PyObject_Del(op) PyMem_DEL((op)) 849 # define PyObject_DEL PyObject_Del 853 #if PY_VERSION_HEX < 0x02020000 854 # ifndef PyExc_StopIteration 855 # define PyExc_StopIteration PyExc_RuntimeError 857 # ifndef PyObject_GenericGetAttr 858 # define PyObject_GenericGetAttr 0 863 #if PY_VERSION_HEX < 0x02010000 864 # ifndef Py_NotImplemented 865 # define Py_NotImplemented PyExc_RuntimeError 870 #if PY_VERSION_HEX < 0x02010000 871 # ifndef PyString_AsStringAndSize 872 # define PyString_AsStringAndSize(obj, s, len) {*s = PyString_AsString(obj); *len = *s ? strlen(*s) : 0;} 877 #if PY_VERSION_HEX < 0x02000000 878 # ifndef PySequence_Size 879 # define PySequence_Size PySequence_Length 884 #if PY_VERSION_HEX < 0x02030000 886 PyObject *PyBool_FromLong(
long ok)
888 PyObject *result = ok ? Py_True : Py_False;
897 #if PY_VERSION_HEX < 0x02050000 && !defined(PY_SSIZE_T_MIN) 898 typedef int Py_ssize_t;
899 # define PY_SSIZE_T_MAX INT_MAX 900 # define PY_SSIZE_T_MIN INT_MIN 901 typedef inquiry lenfunc;
902 typedef intargfunc ssizeargfunc;
903 typedef intintargfunc ssizessizeargfunc;
904 typedef intobjargproc ssizeobjargproc;
905 typedef intintobjargproc ssizessizeobjargproc;
906 typedef getreadbufferproc readbufferproc;
907 typedef getwritebufferproc writebufferproc;
908 typedef getsegcountproc segcountproc;
909 typedef getcharbufferproc charbufferproc;
910 static long PyNumber_AsSsize_t (PyObject *x,
void *SWIGUNUSEDPARM(exc))
913 PyObject *i = PyNumber_Int(x);
915 result = PyInt_AsLong(i);
922 #if PY_VERSION_HEX < 0x02050000 923 #define PyInt_FromSize_t(x) PyInt_FromLong((long)x) 926 #if PY_VERSION_HEX < 0x02040000 927 #define Py_VISIT(op) \ 930 int vret = visit((op), arg); \ 937 #if PY_VERSION_HEX < 0x02030000 940 PyNumberMethods as_number;
941 PyMappingMethods as_mapping;
942 PySequenceMethods as_sequence;
943 PyBufferProcs as_buffer;
944 PyObject *name, *slots;
948 #if PY_VERSION_HEX < 0x02030000 949 typedef destructor freefunc;
952 #if ((PY_MAJOR_VERSION == 2 && PY_MINOR_VERSION > 6) || \ 953 (PY_MAJOR_VERSION == 3 && PY_MINOR_VERSION > 0) || \ 954 (PY_MAJOR_VERSION > 3)) 955 # define SWIGPY_USE_CAPSULE 956 # define SWIGPY_CAPSULE_NAME ((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION ".type_pointer_capsule" SWIG_TYPE_TABLE_NAME) 959 #if PY_VERSION_HEX < 0x03020000 960 #define PyDescr_TYPE(x) (((PyDescrObject *)(x))->d_type) 961 #define PyDescr_NAME(x) (((PyDescrObject *)(x))->d_name) 968 SWIGRUNTIME PyObject*
969 SWIG_Python_ErrorType(
int code) {
972 case SWIG_MemoryError:
973 type = PyExc_MemoryError;
976 type = PyExc_IOError;
978 case SWIG_RuntimeError:
979 type = PyExc_RuntimeError;
981 case SWIG_IndexError:
982 type = PyExc_IndexError;
985 type = PyExc_TypeError;
987 case SWIG_DivisionByZero:
988 type = PyExc_ZeroDivisionError;
990 case SWIG_OverflowError:
991 type = PyExc_OverflowError;
993 case SWIG_SyntaxError:
994 type = PyExc_SyntaxError;
996 case SWIG_ValueError:
997 type = PyExc_ValueError;
999 case SWIG_SystemError:
1000 type = PyExc_SystemError;
1002 case SWIG_AttributeError:
1003 type = PyExc_AttributeError;
1006 type = PyExc_RuntimeError;
1013 SWIG_Python_AddErrorMsg(
const char* mesg)
1016 PyObject *value = 0;
1017 PyObject *traceback = 0;
1019 if (PyErr_Occurred()) PyErr_Fetch(&type, &value, &traceback);
1022 PyObject *old_str = PyObject_Str(value);
1026 PyErr_Format(type,
"%s %s", tmp = SWIG_Python_str_AsChar(old_str), mesg);
1027 SWIG_Python_str_DelForPy3(tmp);
1031 PyErr_SetString(PyExc_RuntimeError, mesg);
1035 #if defined(SWIG_PYTHON_NO_THREADS) 1036 # if defined(SWIG_PYTHON_THREADS) 1037 # undef SWIG_PYTHON_THREADS 1040 #if defined(SWIG_PYTHON_THREADS) 1041 # if !defined(SWIG_PYTHON_USE_GIL) && !defined(SWIG_PYTHON_NO_USE_GIL) 1042 # if (PY_VERSION_HEX >= 0x02030000) 1043 # define SWIG_PYTHON_USE_GIL 1046 # if defined(SWIG_PYTHON_USE_GIL) 1047 # ifndef SWIG_PYTHON_INITIALIZE_THREADS 1048 # define SWIG_PYTHON_INITIALIZE_THREADS PyEval_InitThreads() 1051 class SWIG_Python_Thread_Block {
1053 PyGILState_STATE state;
1055 void end() {
if (status) { PyGILState_Release(state); status =
false;} }
1056 SWIG_Python_Thread_Block() : status(true), state(PyGILState_Ensure()) {}
1057 ~SWIG_Python_Thread_Block() { end(); }
1059 class SWIG_Python_Thread_Allow {
1061 PyThreadState *save;
1063 void end() {
if (status) { PyEval_RestoreThread(save); status =
false; }}
1064 SWIG_Python_Thread_Allow() : status(true), save(PyEval_SaveThread()) {}
1065 ~SWIG_Python_Thread_Allow() { end(); }
1067 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK SWIG_Python_Thread_Block _swig_thread_block 1068 # define SWIG_PYTHON_THREAD_END_BLOCK _swig_thread_block.end() 1069 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW SWIG_Python_Thread_Allow _swig_thread_allow 1070 # define SWIG_PYTHON_THREAD_END_ALLOW _swig_thread_allow.end() 1072 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK PyGILState_STATE _swig_thread_block = PyGILState_Ensure() 1073 # define SWIG_PYTHON_THREAD_END_BLOCK PyGILState_Release(_swig_thread_block) 1074 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW PyThreadState *_swig_thread_allow = PyEval_SaveThread() 1075 # define SWIG_PYTHON_THREAD_END_ALLOW PyEval_RestoreThread(_swig_thread_allow) 1078 # if !defined(SWIG_PYTHON_INITIALIZE_THREADS) 1079 # define SWIG_PYTHON_INITIALIZE_THREADS 1081 # if !defined(SWIG_PYTHON_THREAD_BEGIN_BLOCK) 1082 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK 1084 # if !defined(SWIG_PYTHON_THREAD_END_BLOCK) 1085 # define SWIG_PYTHON_THREAD_END_BLOCK 1087 # if !defined(SWIG_PYTHON_THREAD_BEGIN_ALLOW) 1088 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW 1090 # if !defined(SWIG_PYTHON_THREAD_END_ALLOW) 1091 # define SWIG_PYTHON_THREAD_END_ALLOW 1095 # define SWIG_PYTHON_INITIALIZE_THREADS 1096 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK 1097 # define SWIG_PYTHON_THREAD_END_BLOCK 1098 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW 1099 # define SWIG_PYTHON_THREAD_END_ALLOW 1115 #define SWIG_PY_POINTER 4 1116 #define SWIG_PY_BINARY 5 1133 #if PY_VERSION_HEX >= 0x03000000 1134 SWIGRUNTIME PyObject* SWIG_PyInstanceMethod_New(PyObject *SWIGUNUSEDPARM(
self), PyObject *func)
1136 return PyInstanceMethod_New(func);
1139 SWIGRUNTIME PyObject* SWIG_PyInstanceMethod_New(PyObject *SWIGUNUSEDPARM(
self), PyObject *SWIGUNUSEDPARM(func))
1162 #define SWIG_Python_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0) 1163 #define SWIG_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtr(obj, pptr, type, flags) 1164 #define SWIG_ConvertPtrAndOwn(obj,pptr,type,flags,own) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, own) 1166 #ifdef SWIGPYTHON_BUILTIN 1167 #define SWIG_NewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(self, ptr, type, flags) 1169 #define SWIG_NewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(NULL, ptr, type, flags) 1172 #define SWIG_InternalNewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(NULL, ptr, type, flags) 1174 #define SWIG_CheckImplicit(ty) SWIG_Python_CheckImplicit(ty) 1175 #define SWIG_AcquirePtr(ptr, src) SWIG_Python_AcquirePtr(ptr, src) 1176 #define swig_owntype int 1179 #define SWIG_ConvertPacked(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty) 1180 #define SWIG_NewPackedObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type) 1183 #define SWIG_ConvertInstance(obj, pptr, type, flags) SWIG_ConvertPtr(obj, pptr, type, flags) 1184 #define SWIG_NewInstanceObj(ptr, type, flags) SWIG_NewPointerObj(ptr, type, flags) 1187 #define SWIG_ConvertFunctionPtr(obj, pptr, type) SWIG_Python_ConvertFunctionPtr(obj, pptr, type) 1188 #define SWIG_NewFunctionPtrObj(ptr, type) SWIG_Python_NewPointerObj(NULL, ptr, type, 0) 1191 #define SWIG_ConvertMember(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty) 1192 #define SWIG_NewMemberObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type) 1197 #define SWIG_GetModule(clientdata) SWIG_Python_GetModule(clientdata) 1198 #define SWIG_SetModule(clientdata, pointer) SWIG_Python_SetModule(pointer) 1199 #define SWIG_NewClientData(obj) SwigPyClientData_New(obj) 1201 #define SWIG_SetErrorObj SWIG_Python_SetErrorObj 1202 #define SWIG_SetErrorMsg SWIG_Python_SetErrorMsg 1203 #define SWIG_ErrorType(code) SWIG_Python_ErrorType(code) 1204 #define SWIG_Error(code, msg) SWIG_Python_SetErrorMsg(SWIG_ErrorType(code), msg) 1205 #define SWIG_fail goto fail 1213 SWIG_Python_SetErrorObj(PyObject *errtype, PyObject *obj) {
1214 SWIG_PYTHON_THREAD_BEGIN_BLOCK;
1215 PyErr_SetObject(errtype, obj);
1217 SWIG_PYTHON_THREAD_END_BLOCK;
1221 SWIG_Python_SetErrorMsg(PyObject *errtype,
const char *msg) {
1222 SWIG_PYTHON_THREAD_BEGIN_BLOCK;
1223 PyErr_SetString(errtype, msg);
1224 SWIG_PYTHON_THREAD_END_BLOCK;
1227 #define SWIG_Python_Raise(obj, type, desc) SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(desc), obj) 1231 #if defined(SWIGPYTHON_BUILTIN) 1234 SwigPyBuiltin_AddPublicSymbol(PyObject *seq,
const char *key) {
1235 PyObject *s = PyString_InternFromString(key);
1236 PyList_Append(seq, s);
1241 SWIG_Python_SetConstant(PyObject *d, PyObject *public_interface,
const char *name, PyObject *obj) {
1242 #if PY_VERSION_HEX < 0x02030000 1243 PyDict_SetItemString(d, (
char *)name, obj);
1245 PyDict_SetItemString(d, name, obj);
1248 if (public_interface)
1249 SwigPyBuiltin_AddPublicSymbol(public_interface, name);
1255 SWIG_Python_SetConstant(PyObject *d,
const char *name, PyObject *obj) {
1256 #if PY_VERSION_HEX < 0x02030000 1257 PyDict_SetItemString(d, (
char *)name, obj);
1259 PyDict_SetItemString(d, name, obj);
1268 SWIGINTERN PyObject*
1269 SWIG_Python_AppendOutput(PyObject* result, PyObject* obj) {
1270 #if !defined(SWIG_PYTHON_OUTPUT_TUPLE) 1273 }
else if (result == Py_None) {
1277 if (!PyList_Check(result)) {
1278 PyObject *o2 = result;
1279 result = PyList_New(1);
1280 PyList_SetItem(result, 0, o2);
1282 PyList_Append(result,obj);
1291 }
else if (result == Py_None) {
1295 if (!PyTuple_Check(result)) {
1297 result = PyTuple_New(1);
1298 PyTuple_SET_ITEM(result, 0, o2);
1300 o3 = PyTuple_New(1);
1301 PyTuple_SET_ITEM(o3, 0, obj);
1303 result = PySequence_Concat(o2, o3);
1313 SWIGINTERN Py_ssize_t
1314 SWIG_Python_UnpackTuple(PyObject *args,
const char *name, Py_ssize_t min, Py_ssize_t max, PyObject **objs)
1320 PyErr_Format(PyExc_TypeError,
"%s expected %s%d arguments, got none",
1321 name, (min == max ?
"" :
"at least "), (
int)min);
1325 if (!PyTuple_Check(args)) {
1326 if (min <= 1 && max >= 1) {
1329 for (i = 1; i < max; ++i) {
1334 PyErr_SetString(PyExc_SystemError,
"UnpackTuple() argument list is not a tuple");
1337 Py_ssize_t l = PyTuple_GET_SIZE(args);
1339 PyErr_Format(PyExc_TypeError,
"%s expected %s%d arguments, got %d",
1340 name, (min == max ?
"" :
"at least "), (
int)min, (
int)l);
1342 }
else if (l > max) {
1343 PyErr_Format(PyExc_TypeError,
"%s expected %s%d arguments, got %d",
1344 name, (min == max ?
"" :
"at most "), (
int)max, (
int)l);
1348 for (i = 0; i < l; ++i) {
1349 objs[i] = PyTuple_GET_ITEM(args, i);
1351 for (; l < max; ++l) {
1360 #if PY_VERSION_HEX >= 0x02020000 1361 #define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunctionObjArgs(functor, obj, NULL); 1363 #define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunction(functor, "O", obj); 1371 #define SWIG_STATIC_POINTER(var) var 1373 #define SWIG_STATIC_POINTER(var) var = 0; if (!var) var 1381 #define SWIG_POINTER_NOSHADOW (SWIG_POINTER_OWN << 1) 1382 #define SWIG_POINTER_NEW (SWIG_POINTER_NOSHADOW | SWIG_POINTER_OWN) 1384 #define SWIG_POINTER_IMPLICIT_CONV (SWIG_POINTER_DISOWN << 1) 1386 #define SWIG_BUILTIN_TP_INIT (SWIG_POINTER_OWN << 2) 1387 #define SWIG_BUILTIN_INIT (SWIG_BUILTIN_TP_INIT | SWIG_POINTER_OWN) 1394 #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) 1395 # ifndef SWIG_PYTHON_NO_BUILD_NONE 1396 # ifndef SWIG_PYTHON_BUILD_NONE 1397 # define SWIG_PYTHON_BUILD_NONE 1402 #ifdef SWIG_PYTHON_BUILD_NONE 1405 # define Py_None SWIG_Py_None() 1407 SWIGRUNTIMEINLINE PyObject *
1410 PyObject *none = Py_BuildValue((
char*)
"");
1414 SWIGRUNTIME PyObject *
1417 static PyObject *SWIG_STATIC_POINTER(none) = _SWIG_Py_None();
1424 SWIGRUNTIMEINLINE PyObject *
1427 PyObject *none = Py_None;
1441 PyTypeObject *pytype;
1444 SWIGRUNTIMEINLINE
int 1448 return data ? data->implicitconv : 0;
1451 SWIGRUNTIMEINLINE PyObject *
1454 PyObject *klass = data ? data->klass : 0;
1455 return (klass ? klass : PyExc_RuntimeError);
1460 SwigPyClientData_New(PyObject* obj)
1468 Py_INCREF(data->klass);
1470 if (PyClass_Check(obj)) {
1472 data->newargs = obj;
1475 #if (PY_VERSION_HEX < 0x02020000) 1478 data->newraw = PyObject_GetAttrString(data->klass, (
char *)
"__new__");
1481 Py_INCREF(data->newraw);
1482 data->newargs = PyTuple_New(1);
1483 PyTuple_SetItem(data->newargs, 0, obj);
1485 data->newargs = obj;
1487 Py_INCREF(data->newargs);
1490 data->destroy = PyObject_GetAttrString(data->klass, (
char *)
"__swig_destroy__");
1491 if (PyErr_Occurred()) {
1495 if (data->destroy) {
1497 Py_INCREF(data->destroy);
1498 flags = PyCFunction_GET_FLAGS(data->destroy);
1500 data->delargs = !(flags & (METH_O));
1507 data->implicitconv = 0;
1515 Py_XDECREF(data->newraw);
1516 Py_XDECREF(data->newargs);
1517 Py_XDECREF(data->destroy);
1528 #ifdef SWIGPYTHON_BUILTIN 1534 #ifdef SWIGPYTHON_BUILTIN 1536 SWIGRUNTIME PyObject *
1537 SwigPyObject_get___dict__(PyObject *v, PyObject *SWIGUNUSEDPARM(args))
1542 sobj->dict = PyDict_New();
1544 Py_INCREF(sobj->dict);
1550 SWIGRUNTIME PyObject *
1553 return PyLong_FromVoidPtr(v->ptr);
1556 SWIGRUNTIME PyObject *
1559 PyObject *res = NULL;
1560 PyObject *args = PyTuple_New(1);
1562 if (PyTuple_SetItem(args, 0, SwigPyObject_long(v)) == 0) {
1563 PyObject *ofmt = SWIG_Python_str_FromChar(fmt);
1565 #if PY_VERSION_HEX >= 0x03000000 1566 res = PyUnicode_Format(ofmt,args);
1568 res = PyString_Format(ofmt,args);
1578 SWIGRUNTIME PyObject *
1581 return SwigPyObject_format(
"%o",v);
1584 SWIGRUNTIME PyObject *
1587 return SwigPyObject_format(
"%x",v);
1590 SWIGRUNTIME PyObject *
1597 const char *name = SWIG_TypePrettyName(v->ty);
1598 PyObject *repr = SWIG_Python_str_FromFormat(
"<Swig Object of type '%s' at %p>", (name ? name :
"unknown"), (
void *)v);
1601 PyObject *nrep = SwigPyObject_repr((
SwigPyObject *)v->next);
1603 PyObject *nrep = SwigPyObject_repr((
SwigPyObject *)v->next, args);
1605 # if PY_VERSION_HEX >= 0x03000000 1606 PyObject *joined = PyUnicode_Concat(repr, nrep);
1611 PyString_ConcatAndDel(&repr,nrep);
1622 return (i < j) ? -1 : ((i > j) ? 1 : 0);
1626 SWIGRUNTIME PyObject*
1630 if( op != Py_EQ && op != Py_NE ) {
1631 Py_INCREF(Py_NotImplemented);
1632 return Py_NotImplemented;
1634 res = PyBool_FromLong( (SwigPyObject_compare(v, w)==0) == (op == Py_EQ) ? 1 : 0);
1639 SWIGRUNTIME PyTypeObject* SwigPyObject_TypeOnce(
void);
1641 #ifdef SWIGPYTHON_BUILTIN 1643 SWIGRUNTIME PyTypeObject*
1644 SwigPyObject_type(
void) {
1646 assert(SwigPyObject_stype);
1653 SWIGRUNTIME PyTypeObject*
1654 SwigPyObject_type(
void) {
1655 static PyTypeObject *SWIG_STATIC_POINTER(type) = SwigPyObject_TypeOnce();
1660 SWIGRUNTIMEINLINE
int 1661 SwigPyObject_Check(PyObject *op) {
1662 #ifdef SWIGPYTHON_BUILTIN 1663 PyTypeObject *target_tp = SwigPyObject_type();
1664 if (PyType_IsSubtype(op->ob_type, target_tp))
1666 return (strcmp(op->ob_type->tp_name,
"SwigPyObject") == 0);
1668 return (Py_TYPE(op) == SwigPyObject_type())
1669 || (strcmp(Py_TYPE(op)->tp_name,
"SwigPyObject") == 0);
1673 SWIGRUNTIME PyObject *
1677 SwigPyObject_dealloc(PyObject *v)
1680 PyObject *next = sobj->next;
1681 if (sobj->own == SWIG_POINTER_OWN) {
1684 PyObject *destroy = data ? data->destroy : 0;
1696 PyObject *val = NULL, *type = NULL, *tb = NULL;
1697 PyErr_Fetch(&val, &type, &tb);
1699 if (data->delargs) {
1701 PyObject *tmp = SwigPyObject_New(sobj->ptr, ty, 0);
1702 res = SWIG_Python_CallFunctor(destroy, tmp);
1705 PyCFunction meth = PyCFunction_GET_FUNCTION(destroy);
1706 PyObject *mself = PyCFunction_GET_SELF(destroy);
1707 res = ((*meth)(mself, v));
1710 PyErr_WriteUnraisable(destroy);
1712 PyErr_Restore(val, type, tb);
1716 #if !defined(SWIG_PYTHON_SILENT_MEMLEAK) 1718 const char *name = SWIG_TypePrettyName(ty);
1719 printf(
"swig/python detected a memory leak of type '%s', no destructor found.\n", (name ? name :
"unknown"));
1727 SWIGRUNTIME PyObject*
1728 SwigPyObject_append(PyObject* v, PyObject* next)
1733 if (!PyArg_ParseTuple(next,(
char *)
"O:append", &tmp))
return NULL;
1736 if (!SwigPyObject_Check(next)) {
1737 PyErr_SetString(PyExc_TypeError,
"Attempt to append a non SwigPyObject");
1742 return SWIG_Py_Void();
1745 SWIGRUNTIME PyObject*
1747 SwigPyObject_next(PyObject* v)
1749 SwigPyObject_next(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1754 Py_INCREF(sobj->next);
1757 return SWIG_Py_Void();
1761 SWIGINTERN PyObject*
1763 SwigPyObject_disown(PyObject *v)
1765 SwigPyObject_disown(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1770 return SWIG_Py_Void();
1773 SWIGINTERN PyObject*
1775 SwigPyObject_acquire(PyObject *v)
1777 SwigPyObject_acquire(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1781 sobj->own = SWIG_POINTER_OWN;
1782 return SWIG_Py_Void();
1785 SWIGINTERN PyObject*
1786 SwigPyObject_own(PyObject *v, PyObject *args)
1789 #if (PY_VERSION_HEX < 0x02020000) 1790 if (!PyArg_ParseTuple(args,(
char *)
"|O:own",&val))
1791 #elif (PY_VERSION_HEX < 0x02050000) 1792 if (!PyArg_UnpackTuple(args, (
char *)
"own", 0, 1, &val))
1794 if (!PyArg_UnpackTuple(args,
"own", 0, 1, &val))
1802 PyObject *obj = PyBool_FromLong(sobj->own);
1805 if (PyObject_IsTrue(val)) {
1806 SwigPyObject_acquire(v);
1808 SwigPyObject_disown(v);
1811 if (PyObject_IsTrue(val)) {
1812 SwigPyObject_acquire(v,args);
1814 SwigPyObject_disown(v,args);
1824 swigobject_methods[] = {
1825 {(
char *)
"disown", (PyCFunction)SwigPyObject_disown, METH_NOARGS, (
char *)
"releases ownership of the pointer"},
1826 {(
char *)
"acquire", (PyCFunction)SwigPyObject_acquire, METH_NOARGS, (
char *)
"acquires ownership of the pointer"},
1827 {(
char *)
"own", (PyCFunction)SwigPyObject_own, METH_VARARGS, (
char *)
"returns/sets ownership of the pointer"},
1828 {(
char *)
"append", (PyCFunction)SwigPyObject_append, METH_O, (
char *)
"appends another 'this' object"},
1829 {(
char *)
"next", (PyCFunction)SwigPyObject_next, METH_NOARGS, (
char *)
"returns the next 'this' object"},
1830 {(
char *)
"__repr__",(PyCFunction)SwigPyObject_repr, METH_NOARGS, (
char *)
"returns object representation"},
1835 swigobject_methods[] = {
1836 {(
char *)
"disown", (PyCFunction)SwigPyObject_disown, METH_VARARGS, (
char *)
"releases ownership of the pointer"},
1837 {(
char *)
"acquire", (PyCFunction)SwigPyObject_acquire, METH_VARARGS, (
char *)
"acquires ownership of the pointer"},
1838 {(
char *)
"own", (PyCFunction)SwigPyObject_own, METH_VARARGS, (
char *)
"returns/sets ownership of the pointer"},
1839 {(
char *)
"append", (PyCFunction)SwigPyObject_append, METH_VARARGS, (
char *)
"appends another 'this' object"},
1840 {(
char *)
"next", (PyCFunction)SwigPyObject_next, METH_VARARGS, (
char *)
"returns the next 'this' object"},
1841 {(
char *)
"__repr__",(PyCFunction)SwigPyObject_repr, METH_VARARGS, (
char *)
"returns object representation"},
1846 #if PY_VERSION_HEX < 0x02020000 1847 SWIGINTERN PyObject *
1850 return Py_FindMethod(swigobject_methods, (PyObject *)sobj, name);
1854 SWIGRUNTIME PyTypeObject*
1855 SwigPyObject_TypeOnce(
void) {
1856 static char swigobject_doc[] =
"Swig object carries a C/C++ instance pointer";
1858 static PyNumberMethods SwigPyObject_as_number = {
1863 #
if PY_VERSION_HEX < 0x03000000
1879 #
if PY_VERSION_HEX < 0x03000000
1882 (unaryfunc)SwigPyObject_long,
1883 #if PY_VERSION_HEX < 0x03000000 1884 (unaryfunc)SwigPyObject_long,
1889 #if PY_VERSION_HEX < 0x03000000 1890 (unaryfunc)SwigPyObject_oct,
1891 (unaryfunc)SwigPyObject_hex,
1893 #if PY_VERSION_HEX >= 0x03050000 1894 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
1895 #elif PY_VERSION_HEX >= 0x03000000 1896 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
1897 #elif PY_VERSION_HEX >= 0x02050000 1898 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
1899 #elif PY_VERSION_HEX >= 0x02020000 1900 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
1901 #elif PY_VERSION_HEX >= 0x02000000 1902 0,0,0,0,0,0,0,0,0,0,0
1906 static PyTypeObject swigpyobject_type;
1907 static int type_init = 0;
1909 const PyTypeObject tmp = {
1911 #if PY_VERSION_HEX >= 0x03000000 1912 PyVarObject_HEAD_INIT(NULL, 0)
1914 PyObject_HEAD_INIT(NULL)
1917 (
char *)
"SwigPyObject",
1920 (destructor)SwigPyObject_dealloc,
1922 #
if PY_VERSION_HEX < 0x02020000
1923 (getattrfunc)SwigPyObject_getattr,
1928 #if PY_VERSION_HEX >= 0x03000000 1931 (cmpfunc)SwigPyObject_compare,
1933 (reprfunc)SwigPyObject_repr,
1934 &SwigPyObject_as_number,
1940 PyObject_GenericGetAttr,
1947 (richcmpfunc)SwigPyObject_richcompare,
1949 #
if PY_VERSION_HEX >= 0x02020000
1971 #
if PY_VERSION_HEX >= 0x02030000
1974 #
if PY_VERSION_HEX >= 0x02060000
1977 #
if PY_VERSION_HEX >= 0x03040000
1984 #
if PY_VERSION_HEX >= 0x02050000
1990 swigpyobject_type = tmp;
1992 #if PY_VERSION_HEX < 0x02020000 1993 swigpyobject_type.ob_type = &PyType_Type;
1995 if (PyType_Ready(&swigpyobject_type) < 0)
1999 return &swigpyobject_type;
2002 SWIGRUNTIME PyObject *
2012 return (PyObject *)sobj;
2027 SwigPyPacked_print(
SwigPyPacked *v, FILE *fp,
int SWIGUNUSEDPARM(flags))
2029 char result[SWIG_BUFFER_SIZE];
2030 fputs(
"<Swig Packed ", fp);
2031 if (SWIG_PackDataName(result, v->pack, v->size, 0,
sizeof(result))) {
2035 fputs(v->ty->name,fp);
2040 SWIGRUNTIME PyObject *
2043 char result[SWIG_BUFFER_SIZE];
2044 if (SWIG_PackDataName(result, v->pack, v->size, 0,
sizeof(result))) {
2045 return SWIG_Python_str_FromFormat(
"<Swig Packed at %s%s>", result, v->ty->name);
2047 return SWIG_Python_str_FromFormat(
"<Swig Packed %s>", v->ty->name);
2051 SWIGRUNTIME PyObject *
2054 char result[SWIG_BUFFER_SIZE];
2055 if (SWIG_PackDataName(result, v->pack, v->size, 0,
sizeof(result))){
2056 return SWIG_Python_str_FromFormat(
"%s%s", result, v->ty->name);
2058 return SWIG_Python_str_FromChar(v->ty->name);
2067 int s = (i < j) ? -1 : ((i > j) ? 1 : 0);
2068 return s ? s : strncmp((
char *)v->pack, (
char *)w->pack, 2*v->size);
2071 SWIGRUNTIME PyTypeObject* SwigPyPacked_TypeOnce(
void);
2073 SWIGRUNTIME PyTypeObject*
2074 SwigPyPacked_type(
void) {
2075 static PyTypeObject *SWIG_STATIC_POINTER(type) = SwigPyPacked_TypeOnce();
2079 SWIGRUNTIMEINLINE
int 2080 SwigPyPacked_Check(PyObject *op) {
2081 return ((op)->ob_type == SwigPyPacked_TypeOnce())
2082 || (strcmp((op)->ob_type->tp_name,
"SwigPyPacked") == 0);
2086 SwigPyPacked_dealloc(PyObject *v)
2088 if (SwigPyPacked_Check(v)) {
2095 SWIGRUNTIME PyTypeObject*
2096 SwigPyPacked_TypeOnce(
void) {
2097 static char swigpacked_doc[] =
"Swig object carries a C/C++ instance pointer";
2098 static PyTypeObject swigpypacked_type;
2099 static int type_init = 0;
2101 const PyTypeObject tmp = {
2103 #if PY_VERSION_HEX>=0x03000000 2104 PyVarObject_HEAD_INIT(NULL, 0)
2106 PyObject_HEAD_INIT(NULL)
2109 (
char *)
"SwigPyPacked",
2112 (destructor)SwigPyPacked_dealloc,
2113 (printfunc)SwigPyPacked_print,
2116 #if PY_VERSION_HEX>=0x03000000 2119 (cmpfunc)SwigPyPacked_compare,
2121 (reprfunc)SwigPyPacked_repr,
2127 (reprfunc)SwigPyPacked_str,
2128 PyObject_GenericGetAttr,
2137 #
if PY_VERSION_HEX >= 0x02020000
2159 #
if PY_VERSION_HEX >= 0x02030000
2162 #
if PY_VERSION_HEX >= 0x02060000
2165 #
if PY_VERSION_HEX >= 0x03040000
2172 #
if PY_VERSION_HEX >= 0x02050000
2178 swigpypacked_type = tmp;
2180 #if PY_VERSION_HEX < 0x02020000 2181 swigpypacked_type.ob_type = &PyType_Type;
2183 if (PyType_Ready(&swigpypacked_type) < 0)
2187 return &swigpypacked_type;
2190 SWIGRUNTIME PyObject *
2195 void *pack = malloc(size);
2197 memcpy(pack, ptr, size);
2202 PyObject_DEL((PyObject *) sobj);
2206 return (PyObject *) sobj;
2210 SwigPyPacked_UnpackData(PyObject *obj,
void *ptr,
size_t size)
2212 if (SwigPyPacked_Check(obj)) {
2214 if (sobj->size != size)
return 0;
2215 memcpy(ptr, sobj->pack, size);
2226 SWIGRUNTIMEINLINE PyObject *
2229 return SWIG_Python_str_FromChar(
"this");
2232 static PyObject *swig_this = NULL;
2234 SWIGRUNTIME PyObject *
2237 if (swig_this == NULL)
2238 swig_this = _SWIG_This();
2245 #if PY_VERSION_HEX>=0x03000000 2246 #define SWIG_PYTHON_SLOW_GETSET_THIS 2250 SWIG_Python_GetSwigThis(PyObject *pyobj)
2254 if (SwigPyObject_Check(pyobj))
2257 #ifdef SWIGPYTHON_BUILTIN 2259 # ifdef PyWeakref_CheckProxy 2260 if (PyWeakref_CheckProxy(pyobj)) {
2261 pyobj = PyWeakref_GET_OBJECT(pyobj);
2262 if (pyobj && SwigPyObject_Check(pyobj))
2271 #if (!defined(SWIG_PYTHON_SLOW_GETSET_THIS) && (PY_VERSION_HEX >= 0x02030000)) 2272 if (PyInstance_Check(pyobj)) {
2273 obj = _PyInstance_Lookup(pyobj, SWIG_This());
2275 PyObject **dictptr = _PyObject_GetDictPtr(pyobj);
2276 if (dictptr != NULL) {
2277 PyObject *dict = *dictptr;
2278 obj = dict ? PyDict_GetItem(dict, SWIG_This()) : 0;
2280 #ifdef PyWeakref_CheckProxy 2281 if (PyWeakref_CheckProxy(pyobj)) {
2282 PyObject *wobj = PyWeakref_GET_OBJECT(pyobj);
2283 return wobj ? SWIG_Python_GetSwigThis(wobj) : 0;
2286 obj = PyObject_GetAttr(pyobj,SWIG_This());
2290 if (PyErr_Occurred()) PyErr_Clear();
2296 obj = PyObject_GetAttr(pyobj,SWIG_This());
2300 if (PyErr_Occurred()) PyErr_Clear();
2304 if (obj && !SwigPyObject_Check(obj)) {
2307 return SWIG_Python_GetSwigThis(obj);
2316 SWIG_Python_AcquirePtr(PyObject *obj,
int own) {
2317 if (own == SWIG_POINTER_OWN) {
2320 int oldown = sobj->own;
2331 SWIG_Python_ConvertPtrAndOwn(PyObject *obj,
void **ptr,
swig_type_info *ty,
int flags,
int *own) {
2334 int implicit_conv = (flags & SWIG_POINTER_IMPLICIT_CONV) != 0;
2338 if (obj == Py_None && !implicit_conv) {
2346 sobj = SWIG_Python_GetSwigThis(obj);
2350 void *vptr = sobj->ptr;
2355 if (ptr) *ptr = vptr;
2364 *ptr = SWIG_TypeCast(tc,vptr,&newmemory);
2365 if (newmemory == SWIG_CAST_NEW_MEMORY) {
2368 *own = *own | SWIG_CAST_NEW_MEMORY;
2375 if (ptr) *ptr = vptr;
2381 *own = *own | sobj->own;
2382 if (flags & SWIG_POINTER_DISOWN) {
2387 if (implicit_conv) {
2389 if (data && !data->implicitconv) {
2390 PyObject *klass = data->klass;
2393 data->implicitconv = 1;
2394 impconv = SWIG_Python_CallFunctor(klass, obj);
2395 data->implicitconv = 0;
2396 if (PyErr_Occurred()) {
2404 res = SWIG_Python_ConvertPtrAndOwn((PyObject*)iobj, &vptr, ty, 0, 0);
2405 if (SWIG_IsOK(res)) {
2410 res = SWIG_AddCast(res);
2411 res = SWIG_AddNewMask(res);
2413 res = SWIG_AddCast(res);
2422 if (!SWIG_IsOK(res) && obj == Py_None) {
2425 if (PyErr_Occurred())
2436 SWIG_Python_ConvertFunctionPtr(PyObject *obj,
void **ptr,
swig_type_info *ty) {
2437 if (!PyCFunction_Check(obj)) {
2438 return SWIG_ConvertPtr(obj, ptr, ty, 0);
2443 const char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc);
2444 const char *desc = doc ? strstr(doc,
"swig_ptr: ") : 0;
2446 desc = ty ? SWIG_UnpackVoidPtr(desc + 10, &vptr, ty->name) : 0;
2453 *ptr = SWIG_TypeCast(tc,vptr,&newmemory);
2468 SWIG_Python_ConvertPacked(PyObject *obj,
void *ptr,
size_t sz,
swig_type_info *ty) {
2470 if (!to)
return SWIG_ERROR;
2475 if (!tc)
return SWIG_ERROR;
2490 SWIGRUNTIME PyObject*
2493 #if (PY_VERSION_HEX >= 0x02020000) 2495 PyObject *newraw = data->newraw;
2497 inst = PyObject_Call(newraw, data->newargs, NULL);
2499 #if !defined(SWIG_PYTHON_SLOW_GETSET_THIS) 2500 PyObject **dictptr = _PyObject_GetDictPtr(inst);
2501 if (dictptr != NULL) {
2502 PyObject *dict = *dictptr;
2504 dict = PyDict_New();
2506 PyDict_SetItem(dict, SWIG_This(), swig_this);
2510 PyObject *key = SWIG_This();
2511 PyObject_SetAttr(inst, key, swig_this);
2515 #if PY_VERSION_HEX >= 0x03000000 2516 inst = ((PyTypeObject*) data->newargs)->tp_new((PyTypeObject*) data->newargs, Py_None, Py_None);
2518 PyObject_SetAttr(inst, SWIG_This(), swig_this);
2519 Py_TYPE(inst)->tp_flags &= ~Py_TPFLAGS_VALID_VERSION_TAG;
2522 PyObject *dict = PyDict_New();
2524 PyDict_SetItem(dict, SWIG_This(), swig_this);
2525 inst = PyInstance_NewRaw(data->newargs, dict);
2532 #if (PY_VERSION_HEX >= 0x02010000) 2534 PyObject *dict = PyDict_New();
2536 PyDict_SetItem(dict, SWIG_This(), swig_this);
2537 inst = PyInstance_NewRaw(data->newargs, dict);
2540 return (PyObject *) inst;
2542 PyInstanceObject *inst = PyObject_NEW(PyInstanceObject, &PyInstance_Type);
2546 inst->in_class = (PyClassObject *)data->newargs;
2547 Py_INCREF(inst->in_class);
2548 inst->in_dict = PyDict_New();
2549 if (inst->in_dict == NULL) {
2553 #ifdef Py_TPFLAGS_HAVE_WEAKREFS 2554 inst->in_weakreflist = NULL;
2556 #ifdef Py_TPFLAGS_GC 2557 PyObject_GC_Init(inst);
2559 PyDict_SetItem(inst->in_dict, SWIG_This(), swig_this);
2560 return (PyObject *) inst;
2566 SWIG_Python_SetSwigThis(PyObject *inst, PyObject *swig_this)
2569 #if (PY_VERSION_HEX >= 0x02020000) && !defined(SWIG_PYTHON_SLOW_GETSET_THIS) 2570 PyObject **dictptr = _PyObject_GetDictPtr(inst);
2571 if (dictptr != NULL) {
2574 dict = PyDict_New();
2577 PyDict_SetItem(dict, SWIG_This(), swig_this);
2581 dict = PyObject_GetAttrString(inst, (
char*)
"__dict__");
2582 PyDict_SetItem(dict, SWIG_This(), swig_this);
2587 SWIGINTERN PyObject *
2588 SWIG_Python_InitShadowInstance(PyObject *args) {
2590 if (!SWIG_Python_UnpackTuple(args,
"swiginit", 2, 2, obj)) {
2595 SwigPyObject_append((PyObject*) sthis, obj[1]);
2597 SWIG_Python_SetSwigThis(obj[0], obj[1]);
2599 return SWIG_Py_Void();
2605 SWIGRUNTIME PyObject *
2606 SWIG_Python_NewPointerObj(PyObject *
self,
void *ptr,
swig_type_info *type,
int flags) {
2612 return SWIG_Py_Void();
2615 own = (flags & SWIG_POINTER_OWN) ? SWIG_POINTER_OWN : 0;
2616 if (clientdata && clientdata->pytype) {
2618 if (flags & SWIG_BUILTIN_TP_INIT) {
2621 PyObject *next_self = clientdata->pytype->tp_alloc(clientdata->pytype, 0);
2622 while (newobj->next)
2624 newobj->next = next_self;
2626 #ifdef SWIGPYTHON_BUILTIN 2631 newobj = PyObject_New(
SwigPyObject, clientdata->pytype);
2632 #ifdef SWIGPYTHON_BUILTIN 2641 return (PyObject*) newobj;
2643 return SWIG_Py_Void();
2646 assert(!(flags & SWIG_BUILTIN_TP_INIT));
2648 robj = SwigPyObject_New(ptr, type, own);
2649 if (robj && clientdata && !(flags & SWIG_POINTER_NOSHADOW)) {
2650 PyObject *inst = SWIG_Python_NewShadowInstance(clientdata, robj);
2659 SWIGRUNTIMEINLINE PyObject *
2660 SWIG_Python_NewPackedObj(
void *ptr,
size_t sz,
swig_type_info *type) {
2661 return ptr ? SwigPyPacked_New((
void *) ptr, sz, type) : SWIG_Py_Void();
2668 #ifdef SWIG_LINK_RUNTIME 2669 void *SWIG_ReturnGlobalTypeList(
void *);
2673 SWIG_Python_GetModule(
void *SWIGUNUSEDPARM(clientdata)) {
2674 static void *type_pointer = (
void *)0;
2676 if (!type_pointer) {
2677 #ifdef SWIG_LINK_RUNTIME 2678 type_pointer = SWIG_ReturnGlobalTypeList((
void *)0);
2680 # ifdef SWIGPY_USE_CAPSULE 2681 type_pointer = PyCapsule_Import(SWIGPY_CAPSULE_NAME, 0);
2683 type_pointer = PyCObject_Import((
char*)
"swig_runtime_data" SWIG_RUNTIME_VERSION,
2684 (
char*)
"type_pointer" SWIG_TYPE_TABLE_NAME);
2686 if (PyErr_Occurred()) {
2688 type_pointer = (
void *)0;
2695 #if PY_MAJOR_VERSION < 2 2699 PyModule_AddObject(PyObject *m,
char *name, PyObject *o)
2702 if (!PyModule_Check(m)) {
2703 PyErr_SetString(PyExc_TypeError,
"PyModule_AddObject() needs module as first arg");
2707 PyErr_SetString(PyExc_TypeError,
"PyModule_AddObject() needs non-NULL value");
2711 dict = PyModule_GetDict(m);
2714 PyErr_Format(PyExc_SystemError,
"module '%s' has no __dict__",
2715 PyModule_GetName(m));
2718 if (PyDict_SetItemString(dict, name, o))
2726 #ifdef SWIGPY_USE_CAPSULE 2727 SWIG_Python_DestroyModule(PyObject *obj)
2729 SWIG_Python_DestroyModule(
void *vptr)
2732 #ifdef SWIGPY_USE_CAPSULE 2739 for (i =0; i < swig_module->size; ++i) {
2743 if (data) SwigPyClientData_Del(data);
2746 Py_DECREF(SWIG_This());
2752 #if PY_VERSION_HEX >= 0x03000000 2754 PyObject *module = PyImport_AddModule((
char*)
"swig_runtime_data" SWIG_RUNTIME_VERSION);
2756 static PyMethodDef swig_empty_runtime_method_table[] = { {NULL, NULL, 0, NULL} };
2757 PyObject *module = Py_InitModule((
char*)
"swig_runtime_data" SWIG_RUNTIME_VERSION, swig_empty_runtime_method_table);
2759 #ifdef SWIGPY_USE_CAPSULE 2760 PyObject *pointer = PyCapsule_New((
void *) swig_module, SWIGPY_CAPSULE_NAME, SWIG_Python_DestroyModule);
2761 if (pointer && module) {
2762 PyModule_AddObject(module, (
char*)
"type_pointer_capsule" SWIG_TYPE_TABLE_NAME, pointer);
2764 Py_XDECREF(pointer);
2767 PyObject *pointer = PyCObject_FromVoidPtr((
void *) swig_module, SWIG_Python_DestroyModule);
2768 if (pointer && module) {
2769 PyModule_AddObject(module, (
char*)
"type_pointer" SWIG_TYPE_TABLE_NAME, pointer);
2771 Py_XDECREF(pointer);
2777 SWIGRUNTIME PyObject *
2778 SWIG_Python_TypeCache(
void) {
2779 static PyObject *SWIG_STATIC_POINTER(cache) = PyDict_New();
2784 SWIG_Python_TypeQuery(
const char *type)
2786 PyObject *cache = SWIG_Python_TypeCache();
2787 PyObject *key = SWIG_Python_str_FromChar(type);
2788 PyObject *obj = PyDict_GetItem(cache, key);
2791 #ifdef SWIGPY_USE_CAPSULE 2798 descriptor = SWIG_TypeQueryModule(swig_module, swig_module, type);
2800 #ifdef SWIGPY_USE_CAPSULE 2801 obj = PyCapsule_New((
void*) descriptor, NULL, NULL);
2803 obj = PyCObject_FromVoidPtr(descriptor, NULL);
2805 PyDict_SetItem(cache, key, obj);
2816 #define SWIG_POINTER_EXCEPTION 0 2817 #define SWIG_arg_fail(arg) SWIG_Python_ArgFail(arg) 2818 #define SWIG_MustGetPtr(p, type, argnum, flags) SWIG_Python_MustGetPtr(p, type, argnum, flags) 2821 SWIG_Python_AddErrMesg(
const char* mesg,
int infront)
2823 if (PyErr_Occurred()) {
2825 PyObject *value = 0;
2826 PyObject *traceback = 0;
2827 PyErr_Fetch(&type, &value, &traceback);
2830 PyObject *old_str = PyObject_Str(value);
2834 PyErr_Format(type,
"%s %s", mesg, tmp = SWIG_Python_str_AsChar(old_str));
2836 PyErr_Format(type,
"%s %s", tmp = SWIG_Python_str_AsChar(old_str), mesg);
2838 SWIG_Python_str_DelForPy3(tmp);
2848 SWIG_Python_ArgFail(
int argnum)
2850 if (PyErr_Occurred()) {
2853 PyOS_snprintf(mesg,
sizeof(mesg),
"argument number %d:", argnum);
2854 return SWIG_Python_AddErrMesg(mesg, 1);
2860 SWIGRUNTIMEINLINE
const char *
2861 SwigPyObject_GetDesc(PyObject *
self)
2865 return ty ? ty->str :
"";
2869 SWIG_Python_TypeError(
const char *type, PyObject *obj)
2872 #if defined(SWIG_COBJECT_TYPES) 2873 if (obj && SwigPyObject_Check(obj)) {
2874 const char *otype = (
const char *) SwigPyObject_GetDesc(obj);
2876 PyErr_Format(PyExc_TypeError,
"a '%s' is expected, 'SwigPyObject(%s)' is received",
2883 const char *otype = (obj ? obj->ob_type->tp_name : 0);
2885 PyObject *str = PyObject_Str(obj);
2886 const char *cstr = str ? SWIG_Python_str_AsChar(str) : 0;
2888 PyErr_Format(PyExc_TypeError,
"a '%s' is expected, '%s(%s)' is received",
2890 SWIG_Python_str_DelForPy3(cstr);
2892 PyErr_Format(PyExc_TypeError,
"a '%s' is expected, '%s' is received",
2899 PyErr_Format(PyExc_TypeError,
"a '%s' is expected", type);
2901 PyErr_Format(PyExc_TypeError,
"unexpected type is received");
2908 SWIG_Python_MustGetPtr(PyObject *obj,
swig_type_info *ty,
int SWIGUNUSEDPARM(argnum),
int flags) {
2910 if (SWIG_Python_ConvertPtr(obj, &result, ty, flags) == -1) {
2912 #if SWIG_POINTER_EXCEPTION 2914 SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj);
2915 SWIG_Python_ArgFail(argnum);
2922 #ifdef SWIGPYTHON_BUILTIN 2924 SWIG_Python_NonDynamicSetAttr(PyObject *obj, PyObject *name, PyObject *value) {
2925 PyTypeObject *tp = obj->ob_type;
2927 PyObject *encoded_name;
2931 # ifdef Py_USING_UNICODE 2932 if (PyString_Check(name)) {
2933 name = PyUnicode_Decode(PyString_AsString(name), PyString_Size(name), NULL, NULL);
2936 }
else if (!PyUnicode_Check(name))
2938 if (!PyString_Check(name))
2941 PyErr_Format(PyExc_TypeError,
"attribute name must be string, not '%.200s'", name->ob_type->tp_name);
2948 if (PyType_Ready(tp) < 0)
2952 descr = _PyType_Lookup(tp, name);
2955 f = descr->ob_type->tp_descr_set;
2957 if (PyString_Check(name)) {
2958 encoded_name = name;
2961 encoded_name = PyUnicode_AsUTF8String(name);
2963 PyErr_Format(PyExc_AttributeError,
"'%.100s' object has no attribute '%.200s'", tp->tp_name, PyString_AsString(encoded_name));
2964 Py_DECREF(encoded_name);
2966 res = f(descr, obj, value);
2982 #define SWIG_exception_fail(code, msg) do { SWIG_Error(code, msg); SWIG_fail; } while(0) 2984 #define SWIG_contract_assert(expr, msg) if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } else 2990 #define SWIGTYPE_p_char swig_types[0] 2991 #define SWIGTYPE_p_int swig_types[1] 2992 #define SWIGTYPE_p_unsigned_char swig_types[2] 2993 #define SWIGTYPE_p_unsigned_int swig_types[3] 2994 #define SWIGTYPE_p_unsigned_long swig_types[4] 2995 #define SWIGTYPE_p_unsigned_short swig_types[5] 2998 #define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name) 2999 #define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name) 3003 #if (PY_VERSION_HEX <= 0x02000000) 3004 # if !defined(SWIG_PYTHON_CLASSIC) 3005 # error "This python version requires swig to be run with the '-classic' option" 3012 #if PY_VERSION_HEX >= 0x03000000 3013 # define SWIG_init PyInit__WatchDogMsgs 3016 # define SWIG_init init_WatchDogMsgs 3019 #define SWIG_name "_WatchDogMsgs" 3021 #define SWIGVERSION 0x030008 3022 #define SWIG_VERSION SWIGVERSION 3025 #define SWIG_as_voidptr(a) (void *)((const void *)(a)) 3026 #define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),(void**)(a)) 3029 #include "rnr/rnrconfig.h" 3032 SWIGINTERNINLINE PyObject*
3033 SWIG_From_int (
int value)
3035 return PyInt_FromLong((
long) value);
3039 #define SWIG_From_long PyLong_FromLong 3042 SWIGINTERNINLINE PyObject*
3043 SWIG_From_unsigned_SS_long (
unsigned long value)
3045 return (value > LONG_MAX) ?
3046 PyLong_FromUnsignedLong(value) : PyLong_FromLong((long)(value));
3050 SWIGINTERNINLINE PyObject *
3051 SWIG_From_unsigned_SS_char (
unsigned char value)
3053 return SWIG_From_unsigned_SS_long (value);
3057 SWIGINTERNINLINE PyObject*
3058 SWIG_From_unsigned_SS_int (
unsigned int value)
3060 return PyInt_FromSize_t((
size_t) value);
3064 #define SWIG_From_double PyFloat_FromDouble 3067 SWIGINTERNINLINE PyObject *
3068 SWIG_From_float (
float value)
3070 return SWIG_From_double (value);
3075 SWIG_pchar_descriptor(
void)
3077 static int init = 0;
3080 info = SWIG_TypeQuery(
"_p_char");
3087 SWIGINTERNINLINE PyObject *
3088 SWIG_FromCharPtrAndSize(
const char* carray,
size_t size)
3091 if (size > INT_MAX) {
3093 return pchar_descriptor ?
3094 SWIG_InternalNewPointerObj((
char *)(carray), pchar_descriptor, 0) : SWIG_Py_Void();
3096 #if PY_VERSION_HEX >= 0x03000000 3097 #if PY_VERSION_HEX >= 0x03010000 3098 return PyUnicode_DecodeUTF8(carray, (Py_ssize_t)(size),
"surrogateescape");
3100 return PyUnicode_FromStringAndSize(carray, (Py_ssize_t)(size));
3103 return PyString_FromStringAndSize(carray, (Py_ssize_t)(size));
3107 return SWIG_Py_Void();
3112 SWIGINTERNINLINE PyObject *
3113 SWIG_From_char (
char c)
3115 return SWIG_FromCharPtrAndSize(&c,1);
3119 SWIGINTERNINLINE PyObject *
3120 SWIG_FromCharPtr(
const char *cptr)
3122 return SWIG_FromCharPtrAndSize(cptr, (cptr ? strlen(cptr) : 0));
3130 SWIGINTERN PyObject *LAE_WD_VERSION_swigconstant(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
3133 if (!PyArg_ParseTuple(args,(
char*)
"O:swigconstant", &module))
return NULL;
3134 d = PyModule_GetDict(module);
3135 if (!d)
return NULL;
3136 SWIG_Python_SetConstant(d,
"LAE_WD_VERSION",SWIG_From_int((
int)(1)));
3137 return SWIG_Py_Void();
3141 SWIGINTERN PyObject *LaeWdArgFail_swigconstant(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
3144 if (!PyArg_ParseTuple(args,(
char*)
"O:swigconstant", &module))
return NULL;
3145 d = PyModule_GetDict(module);
3146 if (!d)
return NULL;
3147 SWIG_Python_SetConstant(d,
"LaeWdArgFail",SWIG_From_unsigned_SS_char((
unsigned char)(0)));
3148 return SWIG_Py_Void();
3152 SWIGINTERN PyObject *LaeWdArgPass_swigconstant(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
3155 if (!PyArg_ParseTuple(args,(
char*)
"O:swigconstant", &module))
return NULL;
3156 d = PyModule_GetDict(module);
3157 if (!d)
return NULL;
3158 SWIG_Python_SetConstant(d,
"LaeWdArgPass",SWIG_From_unsigned_SS_char((
unsigned char)(1)));
3159 return SWIG_Py_Void();
3163 SWIGINTERN PyObject *LaeWdTimeoutDft_swigconstant(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
3166 if (!PyArg_ParseTuple(args,(
char*)
"O:swigconstant", &module))
return NULL;
3167 d = PyModule_GetDict(module);
3168 if (!d)
return NULL;
3169 SWIG_Python_SetConstant(d,
"LaeWdTimeoutDft",SWIG_From_unsigned_SS_long((
unsigned long)(6000)));
3170 return SWIG_Py_Void();
3174 SWIGINTERN PyObject *LaeWdTimeoutMin_swigconstant(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
3177 if (!PyArg_ParseTuple(args,(
char*)
"O:swigconstant", &module))
return NULL;
3178 d = PyModule_GetDict(module);
3179 if (!d)
return NULL;
3180 SWIG_Python_SetConstant(d,
"LaeWdTimeoutMin",SWIG_From_unsigned_SS_long((
unsigned long)(10)));
3181 return SWIG_Py_Void();
3185 SWIGINTERN PyObject *LaeWdTimeoutMax_swigconstant(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
3188 if (!PyArg_ParseTuple(args,(
char*)
"O:swigconstant", &module))
return NULL;
3189 d = PyModule_GetDict(module);
3190 if (!d)
return NULL;
3191 SWIG_Python_SetConstant(d,
"LaeWdTimeoutMax",SWIG_From_unsigned_SS_long((
unsigned long)(60000)));
3192 return SWIG_Py_Void();
3196 SWIGINTERN PyObject *LaeWdArgBattSoCMin_swigconstant(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
3199 if (!PyArg_ParseTuple(args,(
char*)
"O:swigconstant", &module))
return NULL;
3200 d = PyModule_GetDict(module);
3201 if (!d)
return NULL;
3202 SWIG_Python_SetConstant(d,
"LaeWdArgBattSoCMin",SWIG_From_unsigned_SS_int((
unsigned int)(0)));
3203 return SWIG_Py_Void();
3207 SWIGINTERN PyObject *LaeWdArgBattSoCMax_swigconstant(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
3210 if (!PyArg_ParseTuple(args,(
char*)
"O:swigconstant", &module))
return NULL;
3211 d = PyModule_GetDict(module);
3212 if (!d)
return NULL;
3213 SWIG_Python_SetConstant(d,
"LaeWdArgBattSoCMax",SWIG_From_unsigned_SS_int((
unsigned int)(100)));
3214 return SWIG_Py_Void();
3218 SWIGINTERN PyObject *LaeWdArgAlarmNone_swigconstant(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
3221 if (!PyArg_ParseTuple(args,(
char*)
"O:swigconstant", &module))
return NULL;
3222 d = PyModule_GetDict(module);
3223 if (!d)
return NULL;
3224 SWIG_Python_SetConstant(d,
"LaeWdArgAlarmNone",SWIG_From_unsigned_SS_int((
unsigned int)(0x0000)));
3225 return SWIG_Py_Void();
3229 SWIGINTERN PyObject *LaeWdArgAlarmGen_swigconstant(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
3232 if (!PyArg_ParseTuple(args,(
char*)
"O:swigconstant", &module))
return NULL;
3233 d = PyModule_GetDict(module);
3234 if (!d)
return NULL;
3235 SWIG_Python_SetConstant(d,
"LaeWdArgAlarmGen",SWIG_From_unsigned_SS_int((
unsigned int)(0x0001)));
3236 return SWIG_Py_Void();
3240 SWIGINTERN PyObject *LaeWdArgAlarmBatt_swigconstant(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
3243 if (!PyArg_ParseTuple(args,(
char*)
"O:swigconstant", &module))
return NULL;
3244 d = PyModule_GetDict(module);
3245 if (!d)
return NULL;
3246 SWIG_Python_SetConstant(d,
"LaeWdArgAlarmBatt",SWIG_From_unsigned_SS_int((
unsigned int)(0x0002)));
3247 return SWIG_Py_Void();
3251 SWIGINTERN PyObject *LaeWdArgAlarmTemp_swigconstant(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
3254 if (!PyArg_ParseTuple(args,(
char*)
"O:swigconstant", &module))
return NULL;
3255 d = PyModule_GetDict(module);
3256 if (!d)
return NULL;
3257 SWIG_Python_SetConstant(d,
"LaeWdArgAlarmTemp",SWIG_From_unsigned_SS_int((
unsigned int)(0x0004)));
3258 return SWIG_Py_Void();
3262 SWIGINTERN PyObject *LaeWdArgAlarmEStop_swigconstant(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
3265 if (!PyArg_ParseTuple(args,(
char*)
"O:swigconstant", &module))
return NULL;
3266 d = PyModule_GetDict(module);
3267 if (!d)
return NULL;
3268 SWIG_Python_SetConstant(d,
"LaeWdArgAlarmEStop",SWIG_From_unsigned_SS_int((
unsigned int)(0x0008)));
3269 return SWIG_Py_Void();
3273 SWIGINTERN PyObject *LaeWdArgAlarmBattCrit_swigconstant(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
3276 if (!PyArg_ParseTuple(args,(
char*)
"O:swigconstant", &module))
return NULL;
3277 d = PyModule_GetDict(module);
3278 if (!d)
return NULL;
3279 SWIG_Python_SetConstant(d,
"LaeWdArgAlarmBattCrit",SWIG_From_unsigned_SS_int((
unsigned int)(0x1000)));
3280 return SWIG_Py_Void();
3284 SWIGINTERN PyObject *LaeWdArgAlarmCrit_swigconstant(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
3287 if (!PyArg_ParseTuple(args,(
char*)
"O:swigconstant", &module))
return NULL;
3288 d = PyModule_GetDict(module);
3289 if (!d)
return NULL;
3290 SWIG_Python_SetConstant(d,
"LaeWdArgAlarmCrit",SWIG_From_unsigned_SS_int((
unsigned int)(0x2000)));
3291 return SWIG_Py_Void();
3295 SWIGINTERN PyObject *LaeWdArgAlarmTypeMask_swigconstant(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
3298 if (!PyArg_ParseTuple(args,(
char*)
"O:swigconstant", &module))
return NULL;
3299 d = PyModule_GetDict(module);
3300 if (!d)
return NULL;
3301 SWIG_Python_SetConstant(d,
"LaeWdArgAlarmTypeMask",SWIG_From_unsigned_SS_int((
unsigned int)(0x0fff)));
3302 return SWIG_Py_Void();
3306 SWIGINTERN PyObject *LaeWdArgAlarmMask_swigconstant(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
3309 if (!PyArg_ParseTuple(args,(
char*)
"O:swigconstant", &module))
return NULL;
3310 d = PyModule_GetDict(module);
3311 if (!d)
return NULL;
3312 SWIG_Python_SetConstant(d,
"LaeWdArgAlarmMask",SWIG_From_unsigned_SS_int((
unsigned int)(0x3fff)));
3313 return SWIG_Py_Void();
3317 SWIGINTERN PyObject *LaeWdArgRgbLedMin_swigconstant(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
3320 if (!PyArg_ParseTuple(args,(
char*)
"O:swigconstant", &module))
return NULL;
3321 d = PyModule_GetDict(module);
3322 if (!d)
return NULL;
3323 SWIG_Python_SetConstant(d,
"LaeWdArgRgbLedMin",SWIG_From_unsigned_SS_char((
unsigned char)(0)));
3324 return SWIG_Py_Void();
3328 SWIGINTERN PyObject *LaeWdArgRgbLedMax_swigconstant(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
3331 if (!PyArg_ParseTuple(args,(
char*)
"O:swigconstant", &module))
return NULL;
3332 d = PyModule_GetDict(module);
3333 if (!d)
return NULL;
3334 SWIG_Python_SetConstant(d,
"LaeWdArgRgbLedMax",SWIG_From_unsigned_SS_char((
unsigned char)(255)));
3335 return SWIG_Py_Void();
3339 SWIGINTERN PyObject *LaeWdArgDPinNumMin_swigconstant(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
3342 if (!PyArg_ParseTuple(args,(
char*)
"O:swigconstant", &module))
return NULL;
3343 d = PyModule_GetDict(module);
3344 if (!d)
return NULL;
3345 SWIG_Python_SetConstant(d,
"LaeWdArgDPinNumMin",SWIG_From_unsigned_SS_char((
unsigned char)(2)));
3346 return SWIG_Py_Void();
3350 SWIGINTERN PyObject *LaeWdArgDPinNumWMin_swigconstant(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
3353 if (!PyArg_ParseTuple(args,(
char*)
"O:swigconstant", &module))
return NULL;
3354 d = PyModule_GetDict(module);
3355 if (!d)
return NULL;
3356 SWIG_Python_SetConstant(d,
"LaeWdArgDPinNumWMin",SWIG_From_unsigned_SS_char((
unsigned char)(5)));
3357 return SWIG_Py_Void();
3361 SWIGINTERN PyObject *LaeWdArgDPinNumWMax_swigconstant(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
3364 if (!PyArg_ParseTuple(args,(
char*)
"O:swigconstant", &module))
return NULL;
3365 d = PyModule_GetDict(module);
3366 if (!d)
return NULL;
3367 SWIG_Python_SetConstant(d,
"LaeWdArgDPinNumWMax",SWIG_From_unsigned_SS_char((
unsigned char)(8)));
3368 return SWIG_Py_Void();
3372 SWIGINTERN PyObject *LaeWdArgDPinNumMax_swigconstant(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
3375 if (!PyArg_ParseTuple(args,(
char*)
"O:swigconstant", &module))
return NULL;
3376 d = PyModule_GetDict(module);
3377 if (!d)
return NULL;
3378 SWIG_Python_SetConstant(d,
"LaeWdArgDPinNumMax",SWIG_From_unsigned_SS_char((
unsigned char)(8)));
3379 return SWIG_Py_Void();
3383 SWIGINTERN PyObject *LaeWdArgDPinDirIn_swigconstant(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
3386 if (!PyArg_ParseTuple(args,(
char*)
"O:swigconstant", &module))
return NULL;
3387 d = PyModule_GetDict(module);
3388 if (!d)
return NULL;
3389 SWIG_Python_SetConstant(d,
"LaeWdArgDPinDirIn",SWIG_From_unsigned_SS_char((
unsigned char)(0)));
3390 return SWIG_Py_Void();
3394 SWIGINTERN PyObject *LaeWdArgDPinDirOut_swigconstant(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
3397 if (!PyArg_ParseTuple(args,(
char*)
"O:swigconstant", &module))
return NULL;
3398 d = PyModule_GetDict(module);
3399 if (!d)
return NULL;
3400 SWIG_Python_SetConstant(d,
"LaeWdArgDPinDirOut",SWIG_From_unsigned_SS_char((
unsigned char)(1)));
3401 return SWIG_Py_Void();
3405 SWIGINTERN PyObject *LaeWdArgDPinValLow_swigconstant(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
3408 if (!PyArg_ParseTuple(args,(
char*)
"O:swigconstant", &module))
return NULL;
3409 d = PyModule_GetDict(module);
3410 if (!d)
return NULL;
3411 SWIG_Python_SetConstant(d,
"LaeWdArgDPinValLow",SWIG_From_unsigned_SS_char((
unsigned char)(0)));
3412 return SWIG_Py_Void();
3416 SWIGINTERN PyObject *LaeWdArgDPinValHigh_swigconstant(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
3419 if (!PyArg_ParseTuple(args,(
char*)
"O:swigconstant", &module))
return NULL;
3420 d = PyModule_GetDict(module);
3421 if (!d)
return NULL;
3422 SWIG_Python_SetConstant(d,
"LaeWdArgDPinValHigh",SWIG_From_unsigned_SS_char((
unsigned char)(1)));
3423 return SWIG_Py_Void();
3427 SWIGINTERN PyObject *LaeWdArgAInPinNumMin_swigconstant(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
3430 if (!PyArg_ParseTuple(args,(
char*)
"O:swigconstant", &module))
return NULL;
3431 d = PyModule_GetDict(module);
3432 if (!d)
return NULL;
3433 SWIG_Python_SetConstant(d,
"LaeWdArgAInPinNumMin",SWIG_From_unsigned_SS_char((
unsigned char)(14)));
3434 return SWIG_Py_Void();
3438 SWIGINTERN PyObject *LaeWdArgAInPinNumMax_swigconstant(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
3441 if (!PyArg_ParseTuple(args,(
char*)
"O:swigconstant", &module))
return NULL;
3442 d = PyModule_GetDict(module);
3443 if (!d)
return NULL;
3444 SWIG_Python_SetConstant(d,
"LaeWdArgAInPinNumMax",SWIG_From_unsigned_SS_char((
unsigned char)(17)));
3445 return SWIG_Py_Void();
3449 SWIGINTERN PyObject *LaeWdArgAInPinValMin_swigconstant(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
3452 if (!PyArg_ParseTuple(args,(
char*)
"O:swigconstant", &module))
return NULL;
3453 d = PyModule_GetDict(module);
3454 if (!d)
return NULL;
3455 SWIG_Python_SetConstant(d,
"LaeWdArgAInPinValMin",SWIG_From_int((
int)(0)));
3456 return SWIG_Py_Void();
3460 SWIGINTERN PyObject *LaeWdArgAInPinValMax_swigconstant(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
3463 if (!PyArg_ParseTuple(args,(
char*)
"O:swigconstant", &module))
return NULL;
3464 d = PyModule_GetDict(module);
3465 if (!d)
return NULL;
3466 SWIG_Python_SetConstant(d,
"LaeWdArgAInPinValMax",SWIG_From_int((
int)(1023)));
3467 return SWIG_Py_Void();
3471 SWIGINTERN PyObject *LaeWdArgAOutPinNumMin_swigconstant(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
3474 if (!PyArg_ParseTuple(args,(
char*)
"O:swigconstant", &module))
return NULL;
3475 d = PyModule_GetDict(module);
3476 if (!d)
return NULL;
3477 SWIG_Python_SetConstant(d,
"LaeWdArgAOutPinNumMin",SWIG_From_unsigned_SS_char((
unsigned char)(2)));
3478 return SWIG_Py_Void();
3482 SWIGINTERN PyObject *LaeWdArgAOutPinNumMax_swigconstant(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
3485 if (!PyArg_ParseTuple(args,(
char*)
"O:swigconstant", &module))
return NULL;
3486 d = PyModule_GetDict(module);
3487 if (!d)
return NULL;
3488 SWIG_Python_SetConstant(d,
"LaeWdArgAOutPinNumMax",SWIG_From_unsigned_SS_char((
unsigned char)(8)));
3489 return SWIG_Py_Void();
3493 SWIGINTERN PyObject *LaeWdArgAOutPinValMin_swigconstant(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
3496 if (!PyArg_ParseTuple(args,(
char*)
"O:swigconstant", &module))
return NULL;
3497 d = PyModule_GetDict(module);
3498 if (!d)
return NULL;
3499 SWIG_Python_SetConstant(d,
"LaeWdArgAOutPinValMin",SWIG_From_int((
int)(0)));
3500 return SWIG_Py_Void();
3504 SWIGINTERN PyObject *LaeWdArgAOutPinValMax_swigconstant(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
3507 if (!PyArg_ParseTuple(args,(
char*)
"O:swigconstant", &module))
return NULL;
3508 d = PyModule_GetDict(module);
3509 if (!d)
return NULL;
3510 SWIG_Python_SetConstant(d,
"LaeWdArgAOutPinValMax",SWIG_From_int((
int)(255)));
3511 return SWIG_Py_Void();
3515 SWIGINTERN PyObject *LaeI2CAddrArduino_swigconstant(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
3518 if (!PyArg_ParseTuple(args,(
char*)
"O:swigconstant", &module))
return NULL;
3519 d = PyModule_GetDict(module);
3520 if (!d)
return NULL;
3521 SWIG_Python_SetConstant(d,
"LaeI2CAddrArduino",SWIG_From_unsigned_SS_char((
unsigned char)(0x32)));
3522 return SWIG_Py_Void();
3526 SWIGINTERN PyObject *LaeI2CAddrWd_swigconstant(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
3529 if (!PyArg_ParseTuple(args,(
char*)
"O:swigconstant", &module))
return NULL;
3530 d = PyModule_GetDict(module);
3531 if (!d)
return NULL;
3532 SWIG_Python_SetConstant(d,
"LaeI2CAddrWd",SWIG_From_unsigned_SS_char((
unsigned char)(0x32)));
3533 return SWIG_Py_Void();
3537 SWIGINTERN PyObject *LaeWdMaxCmdLen_swigconstant(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
3540 if (!PyArg_ParseTuple(args,(
char*)
"O:swigconstant", &module))
return NULL;
3541 d = PyModule_GetDict(module);
3542 if (!d)
return NULL;
3543 SWIG_Python_SetConstant(d,
"LaeWdMaxCmdLen",SWIG_From_int((
int)(8)));
3544 return SWIG_Py_Void();
3548 SWIGINTERN PyObject *LaeWdMaxRspLen_swigconstant(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
3551 if (!PyArg_ParseTuple(args,(
char*)
"O:swigconstant", &module))
return NULL;
3552 d = PyModule_GetDict(module);
3553 if (!d)
return NULL;
3554 SWIG_Python_SetConstant(d,
"LaeWdMaxRspLen",SWIG_From_int((
int)(8)));
3555 return SWIG_Py_Void();
3559 SWIGINTERN PyObject *LaeWdCmdIdPetDog_swigconstant(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
3562 if (!PyArg_ParseTuple(args,(
char*)
"O:swigconstant", &module))
return NULL;
3563 d = PyModule_GetDict(module);
3564 if (!d)
return NULL;
3565 SWIG_Python_SetConstant(d,
"LaeWdCmdIdPetDog",SWIG_From_unsigned_SS_char((
unsigned char)(0)));
3566 return SWIG_Py_Void();
3570 SWIGINTERN PyObject *LaeWdCmdLenPetDog_swigconstant(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
3573 if (!PyArg_ParseTuple(args,(
char*)
"O:swigconstant", &module))
return NULL;
3574 d = PyModule_GetDict(module);
3575 if (!d)
return NULL;
3576 SWIG_Python_SetConstant(d,
"LaeWdCmdLenPetDog",SWIG_From_unsigned_SS_char((
unsigned char)(1)));
3577 return SWIG_Py_Void();
3581 SWIGINTERN PyObject *LaeWdRspLenPetDog_swigconstant(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
3584 if (!PyArg_ParseTuple(args,(
char*)
"O:swigconstant", &module))
return NULL;
3585 d = PyModule_GetDict(module);
3586 if (!d)
return NULL;
3587 SWIG_Python_SetConstant(d,
"LaeWdRspLenPetDog",SWIG_From_unsigned_SS_char((
unsigned char)(0)));
3588 return SWIG_Py_Void();
3592 SWIGINTERN PyObject *LaeWdRspLenPetDog_2_swigconstant(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
3595 if (!PyArg_ParseTuple(args,(
char*)
"O:swigconstant", &module))
return NULL;
3596 d = PyModule_GetDict(module);
3597 if (!d)
return NULL;
3598 SWIG_Python_SetConstant(d,
"LaeWdRspLenPetDog_2",SWIG_From_unsigned_SS_char((
unsigned char)(1)));
3599 return SWIG_Py_Void();
3603 SWIGINTERN PyObject *LaeWdCmdIdGetVersion_swigconstant(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
3606 if (!PyArg_ParseTuple(args,(
char*)
"O:swigconstant", &module))
return NULL;
3607 d = PyModule_GetDict(module);
3608 if (!d)
return NULL;
3609 SWIG_Python_SetConstant(d,
"LaeWdCmdIdGetVersion",SWIG_From_unsigned_SS_char((
unsigned char)(1)));
3610 return SWIG_Py_Void();
3614 SWIGINTERN PyObject *LaeWdCmdLenGetVersion_swigconstant(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
3617 if (!PyArg_ParseTuple(args,(
char*)
"O:swigconstant", &module))
return NULL;
3618 d = PyModule_GetDict(module);
3619 if (!d)
return NULL;
3620 SWIG_Python_SetConstant(d,
"LaeWdCmdLenGetVersion",SWIG_From_unsigned_SS_char((
unsigned char)(1)));
3621 return SWIG_Py_Void();
3625 SWIGINTERN PyObject *LaeWdRspLenGetVersion_swigconstant(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
3628 if (!PyArg_ParseTuple(args,(
char*)
"O:swigconstant", &module))
return NULL;
3629 d = PyModule_GetDict(module);
3630 if (!d)
return NULL;
3631 SWIG_Python_SetConstant(d,
"LaeWdRspLenGetVersion",SWIG_From_unsigned_SS_char((
unsigned char)(1)));
3632 return SWIG_Py_Void();
3636 SWIGINTERN PyObject *LaeWdCmdIdSetBattCharge_swigconstant(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
3639 if (!PyArg_ParseTuple(args,(
char*)
"O:swigconstant", &module))
return NULL;
3640 d = PyModule_GetDict(module);
3641 if (!d)
return NULL;
3642 SWIG_Python_SetConstant(d,
"LaeWdCmdIdSetBattCharge",SWIG_From_unsigned_SS_char((
unsigned char)(2)));
3643 return SWIG_Py_Void();
3647 SWIGINTERN PyObject *LaeWdCmdLenSetBattCharge_swigconstant(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
3650 if (!PyArg_ParseTuple(args,(
char*)
"O:swigconstant", &module))
return NULL;
3651 d = PyModule_GetDict(module);
3652 if (!d)
return NULL;
3653 SWIG_Python_SetConstant(d,
"LaeWdCmdLenSetBattCharge",SWIG_From_unsigned_SS_char((
unsigned char)(2)));
3654 return SWIG_Py_Void();
3658 SWIGINTERN PyObject *LaeWdRspLenSetBattCharge_swigconstant(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
3661 if (!PyArg_ParseTuple(args,(
char*)
"O:swigconstant", &module))
return NULL;
3662 d = PyModule_GetDict(module);
3663 if (!d)
return NULL;
3664 SWIG_Python_SetConstant(d,
"LaeWdRspLenSetBattCharge",SWIG_From_unsigned_SS_char((
unsigned char)(0)));
3665 return SWIG_Py_Void();
3669 SWIGINTERN PyObject *LaeWdCmdIdSetAlarms_swigconstant(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
3672 if (!PyArg_ParseTuple(args,(
char*)
"O:swigconstant", &module))
return NULL;
3673 d = PyModule_GetDict(module);
3674 if (!d)
return NULL;
3675 SWIG_Python_SetConstant(d,
"LaeWdCmdIdSetAlarms",SWIG_From_unsigned_SS_char((
unsigned char)(3)));
3676 return SWIG_Py_Void();
3680 SWIGINTERN PyObject *LaeWdCmdLenSetAlarms_swigconstant(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
3683 if (!PyArg_ParseTuple(args,(
char*)
"O:swigconstant", &module))
return NULL;
3684 d = PyModule_GetDict(module);
3685 if (!d)
return NULL;
3686 SWIG_Python_SetConstant(d,
"LaeWdCmdLenSetAlarms",SWIG_From_unsigned_SS_char((
unsigned char)(3)));
3687 return SWIG_Py_Void();
3691 SWIGINTERN PyObject *LaeWdRspLenSetAlarms_swigconstant(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
3694 if (!PyArg_ParseTuple(args,(
char*)
"O:swigconstant", &module))
return NULL;
3695 d = PyModule_GetDict(module);
3696 if (!d)
return NULL;
3697 SWIG_Python_SetConstant(d,
"LaeWdRspLenSetAlarms",SWIG_From_unsigned_SS_char((
unsigned char)(0)));
3698 return SWIG_Py_Void();
3702 SWIGINTERN PyObject *LaeWdCmdIdSetRgbLed_swigconstant(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
3705 if (!PyArg_ParseTuple(args,(
char*)
"O:swigconstant", &module))
return NULL;
3706 d = PyModule_GetDict(module);
3707 if (!d)
return NULL;
3708 SWIG_Python_SetConstant(d,
"LaeWdCmdIdSetRgbLed",SWIG_From_unsigned_SS_char((
unsigned char)(4)));
3709 return SWIG_Py_Void();
3713 SWIGINTERN PyObject *LaeWdCmdLenSetRgbLed_swigconstant(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
3716 if (!PyArg_ParseTuple(args,(
char*)
"O:swigconstant", &module))
return NULL;
3717 d = PyModule_GetDict(module);
3718 if (!d)
return NULL;
3719 SWIG_Python_SetConstant(d,
"LaeWdCmdLenSetRgbLed",SWIG_From_unsigned_SS_char((
unsigned char)(4)));
3720 return SWIG_Py_Void();
3724 SWIGINTERN PyObject *LaeWdRspLenSetRgbLed_swigconstant(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
3727 if (!PyArg_ParseTuple(args,(
char*)
"O:swigconstant", &module))
return NULL;
3728 d = PyModule_GetDict(module);
3729 if (!d)
return NULL;
3730 SWIG_Python_SetConstant(d,
"LaeWdRspLenSetRgbLed",SWIG_From_unsigned_SS_char((
unsigned char)(0)));
3731 return SWIG_Py_Void();
3735 SWIGINTERN PyObject *LaeWdCmdIdResetRgbLed_swigconstant(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
3738 if (!PyArg_ParseTuple(args,(
char*)
"O:swigconstant", &module))
return NULL;
3739 d = PyModule_GetDict(module);
3740 if (!d)
return NULL;
3741 SWIG_Python_SetConstant(d,
"LaeWdCmdIdResetRgbLed",SWIG_From_unsigned_SS_char((
unsigned char)(5)));
3742 return SWIG_Py_Void();
3746 SWIGINTERN PyObject *LaeWdCmdLenResetRgbLed_swigconstant(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
3749 if (!PyArg_ParseTuple(args,(
char*)
"O:swigconstant", &module))
return NULL;
3750 d = PyModule_GetDict(module);
3751 if (!d)
return NULL;
3752 SWIG_Python_SetConstant(d,
"LaeWdCmdLenResetRgbLed",SWIG_From_unsigned_SS_char((
unsigned char)(1)));
3753 return SWIG_Py_Void();
3757 SWIGINTERN PyObject *LaeWdRspLenResetRgbLed_swigconstant(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
3760 if (!PyArg_ParseTuple(args,(
char*)
"O:swigconstant", &module))
return NULL;
3761 d = PyModule_GetDict(module);
3762 if (!d)
return NULL;
3763 SWIG_Python_SetConstant(d,
"LaeWdRspLenResetRgbLed",SWIG_From_unsigned_SS_char((
unsigned char)(0)));
3764 return SWIG_Py_Void();
3768 SWIGINTERN PyObject *LaeWdCmdIdConfigDPin_swigconstant(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
3771 if (!PyArg_ParseTuple(args,(
char*)
"O:swigconstant", &module))
return NULL;
3772 d = PyModule_GetDict(module);
3773 if (!d)
return NULL;
3774 SWIG_Python_SetConstant(d,
"LaeWdCmdIdConfigDPin",SWIG_From_unsigned_SS_char((
unsigned char)(6)));
3775 return SWIG_Py_Void();
3779 SWIGINTERN PyObject *LaeWdCmdLenConfigDPin_swigconstant(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
3782 if (!PyArg_ParseTuple(args,(
char*)
"O:swigconstant", &module))
return NULL;
3783 d = PyModule_GetDict(module);
3784 if (!d)
return NULL;
3785 SWIG_Python_SetConstant(d,
"LaeWdCmdLenConfigDPin",SWIG_From_unsigned_SS_char((
unsigned char)(3)));
3786 return SWIG_Py_Void();
3790 SWIGINTERN PyObject *LaeWdRspLenConfigDPin_swigconstant(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
3793 if (!PyArg_ParseTuple(args,(
char*)
"O:swigconstant", &module))
return NULL;
3794 d = PyModule_GetDict(module);
3795 if (!d)
return NULL;
3796 SWIG_Python_SetConstant(d,
"LaeWdRspLenConfigDPin",SWIG_From_unsigned_SS_char((
unsigned char)(0)));
3797 return SWIG_Py_Void();
3801 SWIGINTERN PyObject *LaeWdCmdIdReadDPin_swigconstant(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
3804 if (!PyArg_ParseTuple(args,(
char*)
"O:swigconstant", &module))
return NULL;
3805 d = PyModule_GetDict(module);
3806 if (!d)
return NULL;
3807 SWIG_Python_SetConstant(d,
"LaeWdCmdIdReadDPin",SWIG_From_unsigned_SS_char((
unsigned char)(7)));
3808 return SWIG_Py_Void();
3812 SWIGINTERN PyObject *LaeWdCmdLenReadDPin_swigconstant(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
3815 if (!PyArg_ParseTuple(args,(
char*)
"O:swigconstant", &module))
return NULL;
3816 d = PyModule_GetDict(module);
3817 if (!d)
return NULL;
3818 SWIG_Python_SetConstant(d,
"LaeWdCmdLenReadDPin",SWIG_From_unsigned_SS_char((
unsigned char)(2)));
3819 return SWIG_Py_Void();
3823 SWIGINTERN PyObject *LaeWdRspLenReadDPin_swigconstant(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
3826 if (!PyArg_ParseTuple(args,(
char*)
"O:swigconstant", &module))
return NULL;
3827 d = PyModule_GetDict(module);
3828 if (!d)
return NULL;
3829 SWIG_Python_SetConstant(d,
"LaeWdRspLenReadDPin",SWIG_From_unsigned_SS_char((
unsigned char)(2)));
3830 return SWIG_Py_Void();
3834 SWIGINTERN PyObject *LaeWdCmdIdWriteDPin_swigconstant(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
3837 if (!PyArg_ParseTuple(args,(
char*)
"O:swigconstant", &module))
return NULL;
3838 d = PyModule_GetDict(module);
3839 if (!d)
return NULL;
3840 SWIG_Python_SetConstant(d,
"LaeWdCmdIdWriteDPin",SWIG_From_unsigned_SS_char((
unsigned char)(8)));
3841 return SWIG_Py_Void();
3845 SWIGINTERN PyObject *LaeWdCmdLenWriteDPin_swigconstant(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
3848 if (!PyArg_ParseTuple(args,(
char*)
"O:swigconstant", &module))
return NULL;
3849 d = PyModule_GetDict(module);
3850 if (!d)
return NULL;
3851 SWIG_Python_SetConstant(d,
"LaeWdCmdLenWriteDPin",SWIG_From_unsigned_SS_char((
unsigned char)(3)));
3852 return SWIG_Py_Void();
3856 SWIGINTERN PyObject *LaeWdRspLenWriteDPin_swigconstant(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
3859 if (!PyArg_ParseTuple(args,(
char*)
"O:swigconstant", &module))
return NULL;
3860 d = PyModule_GetDict(module);
3861 if (!d)
return NULL;
3862 SWIG_Python_SetConstant(d,
"LaeWdRspLenWriteDPin",SWIG_From_unsigned_SS_char((
unsigned char)(0)));
3863 return SWIG_Py_Void();
3867 SWIGINTERN PyObject *LaeWdCmdIdReadAPin_swigconstant(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
3870 if (!PyArg_ParseTuple(args,(
char*)
"O:swigconstant", &module))
return NULL;
3871 d = PyModule_GetDict(module);
3872 if (!d)
return NULL;
3873 SWIG_Python_SetConstant(d,
"LaeWdCmdIdReadAPin",SWIG_From_unsigned_SS_char((
unsigned char)(9)));
3874 return SWIG_Py_Void();
3878 SWIGINTERN PyObject *LaeWdCmdLenReadAPin_swigconstant(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
3881 if (!PyArg_ParseTuple(args,(
char*)
"O:swigconstant", &module))
return NULL;
3882 d = PyModule_GetDict(module);
3883 if (!d)
return NULL;
3884 SWIG_Python_SetConstant(d,
"LaeWdCmdLenReadAPin",SWIG_From_unsigned_SS_char((
unsigned char)(2)));
3885 return SWIG_Py_Void();
3889 SWIGINTERN PyObject *LaeWdRspLenReadAPin_swigconstant(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
3892 if (!PyArg_ParseTuple(args,(
char*)
"O:swigconstant", &module))
return NULL;
3893 d = PyModule_GetDict(module);
3894 if (!d)
return NULL;
3895 SWIG_Python_SetConstant(d,
"LaeWdRspLenReadAPin",SWIG_From_unsigned_SS_char((
unsigned char)(3)));
3896 return SWIG_Py_Void();
3900 SWIGINTERN PyObject *LaeWdCmdIdWriteAPin_swigconstant(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
3903 if (!PyArg_ParseTuple(args,(
char*)
"O:swigconstant", &module))
return NULL;
3904 d = PyModule_GetDict(module);
3905 if (!d)
return NULL;
3906 SWIG_Python_SetConstant(d,
"LaeWdCmdIdWriteAPin",SWIG_From_unsigned_SS_char((
unsigned char)(10)));
3907 return SWIG_Py_Void();
3911 SWIGINTERN PyObject *LaeWdCmdLenWriteAPin_swigconstant(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
3914 if (!PyArg_ParseTuple(args,(
char*)
"O:swigconstant", &module))
return NULL;
3915 d = PyModule_GetDict(module);
3916 if (!d)
return NULL;
3917 SWIG_Python_SetConstant(d,
"LaeWdCmdLenWriteAPin",SWIG_From_unsigned_SS_char((
unsigned char)(3)));
3918 return SWIG_Py_Void();
3922 SWIGINTERN PyObject *LaeWdRspLenWriteAPin_swigconstant(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
3925 if (!PyArg_ParseTuple(args,(
char*)
"O:swigconstant", &module))
return NULL;
3926 d = PyModule_GetDict(module);
3927 if (!d)
return NULL;
3928 SWIG_Python_SetConstant(d,
"LaeWdRspLenWriteAPin",SWIG_From_unsigned_SS_char((
unsigned char)(0)));
3929 return SWIG_Py_Void();
3933 SWIGINTERN PyObject *LaeWdCmdIdEnableMotorCtlrs_swigconstant(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
3936 if (!PyArg_ParseTuple(args,(
char*)
"O:swigconstant", &module))
return NULL;
3937 d = PyModule_GetDict(module);
3938 if (!d)
return NULL;
3939 SWIG_Python_SetConstant(d,
"LaeWdCmdIdEnableMotorCtlrs",SWIG_From_unsigned_SS_char((
unsigned char)(11)));
3940 return SWIG_Py_Void();
3944 SWIGINTERN PyObject *LaeWdCmdLenEnableMotorCtlrs_swigconstant(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
3947 if (!PyArg_ParseTuple(args,(
char*)
"O:swigconstant", &module))
return NULL;
3948 d = PyModule_GetDict(module);
3949 if (!d)
return NULL;
3950 SWIG_Python_SetConstant(d,
"LaeWdCmdLenEnableMotorCtlrs",SWIG_From_unsigned_SS_char((
unsigned char)(2)));
3951 return SWIG_Py_Void();
3955 SWIGINTERN PyObject *LaeWdRspLenEnableMotorCtlrs_swigconstant(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
3958 if (!PyArg_ParseTuple(args,(
char*)
"O:swigconstant", &module))
return NULL;
3959 d = PyModule_GetDict(module);
3960 if (!d)
return NULL;
3961 SWIG_Python_SetConstant(d,
"LaeWdRspLenEnableMotorCtlrs",SWIG_From_unsigned_SS_char((
unsigned char)(1)));
3962 return SWIG_Py_Void();
3966 SWIGINTERN PyObject *LaeWdCmdIdEnableAuxPort_swigconstant(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
3969 if (!PyArg_ParseTuple(args,(
char*)
"O:swigconstant", &module))
return NULL;
3970 d = PyModule_GetDict(module);
3971 if (!d)
return NULL;
3972 SWIG_Python_SetConstant(d,
"LaeWdCmdIdEnableAuxPort",SWIG_From_unsigned_SS_char((
unsigned char)(12)));
3973 return SWIG_Py_Void();
3977 SWIGINTERN PyObject *LaeWdCmdLenEnableAuxPort_swigconstant(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
3980 if (!PyArg_ParseTuple(args,(
char*)
"O:swigconstant", &module))
return NULL;
3981 d = PyModule_GetDict(module);
3982 if (!d)
return NULL;
3983 SWIG_Python_SetConstant(d,
"LaeWdCmdLenEnableAuxPort",SWIG_From_unsigned_SS_char((
unsigned char)(3)));
3984 return SWIG_Py_Void();
3988 SWIGINTERN PyObject *LaeWdRspLenEnableAuxPort_swigconstant(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
3991 if (!PyArg_ParseTuple(args,(
char*)
"O:swigconstant", &module))
return NULL;
3992 d = PyModule_GetDict(module);
3993 if (!d)
return NULL;
3994 SWIG_Python_SetConstant(d,
"LaeWdRspLenEnableAuxPort",SWIG_From_unsigned_SS_char((
unsigned char)(0)));
3995 return SWIG_Py_Void();
3999 SWIGINTERN PyObject *LaeWdArgAuxPortBatt_swigconstant(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
4002 if (!PyArg_ParseTuple(args,(
char*)
"O:swigconstant", &module))
return NULL;
4003 d = PyModule_GetDict(module);
4004 if (!d)
return NULL;
4005 SWIG_Python_SetConstant(d,
"LaeWdArgAuxPortBatt",SWIG_From_unsigned_SS_char((
unsigned char)(1)));
4006 return SWIG_Py_Void();
4010 SWIGINTERN PyObject *LaeWdArgAuxPort5V_swigconstant(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
4013 if (!PyArg_ParseTuple(args,(
char*)
"O:swigconstant", &module))
return NULL;
4014 d = PyModule_GetDict(module);
4015 if (!d)
return NULL;
4016 SWIG_Python_SetConstant(d,
"LaeWdArgAuxPort5V",SWIG_From_unsigned_SS_char((
unsigned char)(2)));
4017 return SWIG_Py_Void();
4021 SWIGINTERN PyObject *LaeWdCmdIdReadEnables_swigconstant(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
4024 if (!PyArg_ParseTuple(args,(
char*)
"O:swigconstant", &module))
return NULL;
4025 d = PyModule_GetDict(module);
4026 if (!d)
return NULL;
4027 SWIG_Python_SetConstant(d,
"LaeWdCmdIdReadEnables",SWIG_From_unsigned_SS_char((
unsigned char)(13)));
4028 return SWIG_Py_Void();
4032 SWIGINTERN PyObject *LaeWdCmdLenReadEnables_swigconstant(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
4035 if (!PyArg_ParseTuple(args,(
char*)
"O:swigconstant", &module))
return NULL;
4036 d = PyModule_GetDict(module);
4037 if (!d)
return NULL;
4038 SWIG_Python_SetConstant(d,
"LaeWdCmdLenReadEnables",SWIG_From_unsigned_SS_char((
unsigned char)(0)));
4039 return SWIG_Py_Void();
4043 SWIGINTERN PyObject *LaeWdRspLenReadEnables_swigconstant(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
4046 if (!PyArg_ParseTuple(args,(
char*)
"O:swigconstant", &module))
return NULL;
4047 d = PyModule_GetDict(module);
4048 if (!d)
return NULL;
4049 SWIG_Python_SetConstant(d,
"LaeWdRspLenReadEnables",SWIG_From_unsigned_SS_char((
unsigned char)(3)));
4050 return SWIG_Py_Void();
4054 SWIGINTERN PyObject *LaeWdCmdIdReadVolts_swigconstant(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
4057 if (!PyArg_ParseTuple(args,(
char*)
"O:swigconstant", &module))
return NULL;
4058 d = PyModule_GetDict(module);
4059 if (!d)
return NULL;
4060 SWIG_Python_SetConstant(d,
"LaeWdCmdIdReadVolts",SWIG_From_unsigned_SS_char((
unsigned char)(14)));
4061 return SWIG_Py_Void();
4065 SWIGINTERN PyObject *LaeWdCmdLenReadVolts_swigconstant(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
4068 if (!PyArg_ParseTuple(args,(
char*)
"O:swigconstant", &module))
return NULL;
4069 d = PyModule_GetDict(module);
4070 if (!d)
return NULL;
4071 SWIG_Python_SetConstant(d,
"LaeWdCmdLenReadVolts",SWIG_From_unsigned_SS_char((
unsigned char)(1)));
4072 return SWIG_Py_Void();
4076 SWIGINTERN PyObject *LaeWdRspLenReadVolts_swigconstant(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
4079 if (!PyArg_ParseTuple(args,(
char*)
"O:swigconstant", &module))
return NULL;
4080 d = PyModule_GetDict(module);
4081 if (!d)
return NULL;
4082 SWIG_Python_SetConstant(d,
"LaeWdRspLenReadVolts",SWIG_From_unsigned_SS_char((
unsigned char)(2)));
4083 return SWIG_Py_Void();
4087 SWIGINTERN PyObject *LaeWdArgVMult_swigconstant(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
4090 if (!PyArg_ParseTuple(args,(
char*)
"O:swigconstant", &module))
return NULL;
4091 d = PyModule_GetDict(module);
4092 if (!d)
return NULL;
4093 SWIG_Python_SetConstant(d,
"LaeWdArgVMult",SWIG_From_float((
float)(10.0)));
4094 return SWIG_Py_Void();
4098 SWIGINTERN PyObject *LaeWdArgVScale_swigconstant(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
4101 if (!PyArg_ParseTuple(args,(
char*)
"O:swigconstant", &module))
return NULL;
4102 d = PyModule_GetDict(module);
4103 if (!d)
return NULL;
4104 SWIG_Python_SetConstant(d,
"LaeWdArgVScale",SWIG_From_float((
float)(0.1)));
4105 return SWIG_Py_Void();
4109 SWIGINTERN PyObject *LaeWdCmdIdTest_swigconstant(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
4112 if (!PyArg_ParseTuple(args,(
char*)
"O:swigconstant", &module))
return NULL;
4113 d = PyModule_GetDict(module);
4114 if (!d)
return NULL;
4115 SWIG_Python_SetConstant(d,
"LaeWdCmdIdTest",SWIG_From_unsigned_SS_char((
unsigned char)(15)));
4116 return SWIG_Py_Void();
4120 SWIGINTERN PyObject *LaeWdCmdLenTest_swigconstant(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
4123 if (!PyArg_ParseTuple(args,(
char*)
"O:swigconstant", &module))
return NULL;
4124 d = PyModule_GetDict(module);
4125 if (!d)
return NULL;
4126 SWIG_Python_SetConstant(d,
"LaeWdCmdLenTest",SWIG_From_unsigned_SS_char((
unsigned char)(1)));
4127 return SWIG_Py_Void();
4131 SWIGINTERN PyObject *LaeWdRspLenTest_swigconstant(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
4134 if (!PyArg_ParseTuple(args,(
char*)
"O:swigconstant", &module))
return NULL;
4135 d = PyModule_GetDict(module);
4136 if (!d)
return NULL;
4137 SWIG_Python_SetConstant(d,
"LaeWdRspLenTest",SWIG_From_unsigned_SS_char((
unsigned char)(5)));
4138 return SWIG_Py_Void();
4142 SWIGINTERN PyObject *LaeWdCmdIdConfigFw_swigconstant(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
4145 if (!PyArg_ParseTuple(args,(
char*)
"O:swigconstant", &module))
return NULL;
4146 d = PyModule_GetDict(module);
4147 if (!d)
return NULL;
4148 SWIG_Python_SetConstant(d,
"LaeWdCmdIdConfigFw",SWIG_From_unsigned_SS_char((
unsigned char)(16)));
4149 return SWIG_Py_Void();
4153 SWIGINTERN PyObject *LaeWdCmdLenConfigFw_swigconstant(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
4156 if (!PyArg_ParseTuple(args,(
char*)
"O:swigconstant", &module))
return NULL;
4157 d = PyModule_GetDict(module);
4158 if (!d)
return NULL;
4159 SWIG_Python_SetConstant(d,
"LaeWdCmdLenConfigFw",SWIG_From_unsigned_SS_char((
unsigned char)(3)));
4160 return SWIG_Py_Void();
4164 SWIGINTERN PyObject *LaeWdRspLenConfigFw_swigconstant(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
4167 if (!PyArg_ParseTuple(args,(
char*)
"O:swigconstant", &module))
return NULL;
4168 d = PyModule_GetDict(module);
4169 if (!d)
return NULL;
4170 SWIG_Python_SetConstant(d,
"LaeWdRspLenConfigFw",SWIG_From_unsigned_SS_char((
unsigned char)(0)));
4171 return SWIG_Py_Void();
4175 SWIGINTERN PyObject *LaeWdSerMaxCmdLen_swigconstant(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
4178 if (!PyArg_ParseTuple(args,(
char*)
"O:swigconstant", &module))
return NULL;
4179 d = PyModule_GetDict(module);
4180 if (!d)
return NULL;
4181 SWIG_Python_SetConstant(d,
"LaeWdSerMaxCmdLen",SWIG_From_unsigned_SS_char((
unsigned char)(80)));
4182 return SWIG_Py_Void();
4186 SWIGINTERN PyObject *LaeWdSerMaxCmdArgc_swigconstant(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
4189 if (!PyArg_ParseTuple(args,(
char*)
"O:swigconstant", &module))
return NULL;
4190 d = PyModule_GetDict(module);
4191 if (!d)
return NULL;
4192 SWIG_Python_SetConstant(d,
"LaeWdSerMaxCmdArgc",SWIG_From_unsigned_SS_char((
unsigned char)(8)));
4193 return SWIG_Py_Void();
4197 SWIGINTERN PyObject *LaeWdSerMaxCmdArgLen_swigconstant(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
4200 if (!PyArg_ParseTuple(args,(
char*)
"O:swigconstant", &module))
return NULL;
4201 d = PyModule_GetDict(module);
4202 if (!d)
return NULL;
4203 SWIG_Python_SetConstant(d,
"LaeWdSerMaxCmdArgLen",SWIG_From_unsigned_SS_char((
unsigned char)(8)));
4204 return SWIG_Py_Void();
4208 SWIGINTERN PyObject *LaeWdSerMaxRspLen_swigconstant(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
4211 if (!PyArg_ParseTuple(args,(
char*)
"O:swigconstant", &module))
return NULL;
4212 d = PyModule_GetDict(module);
4213 if (!d)
return NULL;
4214 SWIG_Python_SetConstant(d,
"LaeWdSerMaxRspLen",SWIG_From_unsigned_SS_char((
unsigned char)(80)));
4215 return SWIG_Py_Void();
4219 SWIGINTERN PyObject *LaeWdSerMaxRspArgc_swigconstant(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
4222 if (!PyArg_ParseTuple(args,(
char*)
"O:swigconstant", &module))
return NULL;
4223 d = PyModule_GetDict(module);
4224 if (!d)
return NULL;
4225 SWIG_Python_SetConstant(d,
"LaeWdSerMaxRspArgc",SWIG_From_unsigned_SS_char((
unsigned char)(8)));
4226 return SWIG_Py_Void();
4230 SWIGINTERN PyObject *LaeWdSerMaxRspArgLen_swigconstant(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
4233 if (!PyArg_ParseTuple(args,(
char*)
"O:swigconstant", &module))
return NULL;
4234 d = PyModule_GetDict(module);
4235 if (!d)
return NULL;
4236 SWIG_Python_SetConstant(d,
"LaeWdSerMaxRspArgLen",SWIG_From_unsigned_SS_char((
unsigned char)(16)));
4237 return SWIG_Py_Void();
4241 SWIGINTERN PyObject *LaeWdSerEoC_swigconstant(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
4244 if (!PyArg_ParseTuple(args,(
char*)
"O:swigconstant", &module))
return NULL;
4245 d = PyModule_GetDict(module);
4246 if (!d)
return NULL;
4247 SWIG_Python_SetConstant(d,
"LaeWdSerEoC",SWIG_From_char((
char)(
'\n')));
4248 return SWIG_Py_Void();
4252 SWIGINTERN PyObject *LaeWdSerEoR_swigconstant(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
4255 if (!PyArg_ParseTuple(args,(
char*)
"O:swigconstant", &module))
return NULL;
4256 d = PyModule_GetDict(module);
4257 if (!d)
return NULL;
4258 SWIG_Python_SetConstant(d,
"LaeWdSerEoR",SWIG_From_char((
char)(
'\n')));
4259 return SWIG_Py_Void();
4263 SWIGINTERN PyObject *LaeWdSerSep_swigconstant(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
4266 if (!PyArg_ParseTuple(args,(
char*)
"O:swigconstant", &module))
return NULL;
4267 d = PyModule_GetDict(module);
4268 if (!d)
return NULL;
4269 SWIG_Python_SetConstant(d,
"LaeWdSerSep",SWIG_From_char((
char)(
' ')));
4270 return SWIG_Py_Void();
4274 SWIGINTERN PyObject *LaeWdSerArgOff_swigconstant(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
4277 if (!PyArg_ParseTuple(args,(
char*)
"O:swigconstant", &module))
return NULL;
4278 d = PyModule_GetDict(module);
4279 if (!d)
return NULL;
4280 SWIG_Python_SetConstant(d,
"LaeWdSerArgOff",SWIG_FromCharPtr(
"0"));
4281 return SWIG_Py_Void();
4285 SWIGINTERN PyObject *LaeWdSerArgOn_swigconstant(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
4288 if (!PyArg_ParseTuple(args,(
char*)
"O:swigconstant", &module))
return NULL;
4289 d = PyModule_GetDict(module);
4290 if (!d)
return NULL;
4291 SWIG_Python_SetConstant(d,
"LaeWdSerArgOn",SWIG_FromCharPtr(
"1"));
4292 return SWIG_Py_Void();
4296 SWIGINTERN PyObject *LaeWdSerArgGet_swigconstant(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
4299 if (!PyArg_ParseTuple(args,(
char*)
"O:swigconstant", &module))
return NULL;
4300 d = PyModule_GetDict(module);
4301 if (!d)
return NULL;
4302 SWIG_Python_SetConstant(d,
"LaeWdSerArgGet",SWIG_FromCharPtr(
"g"));
4303 return SWIG_Py_Void();
4307 SWIGINTERN PyObject *LaeWdSerArgSet_swigconstant(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
4310 if (!PyArg_ParseTuple(args,(
char*)
"O:swigconstant", &module))
return NULL;
4311 d = PyModule_GetDict(module);
4312 if (!d)
return NULL;
4313 SWIG_Python_SetConstant(d,
"LaeWdSerArgSet",SWIG_FromCharPtr(
"s"));
4314 return SWIG_Py_Void();
4318 SWIGINTERN PyObject *LaeWdSerArgReset_swigconstant(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
4321 if (!PyArg_ParseTuple(args,(
char*)
"O:swigconstant", &module))
return NULL;
4322 d = PyModule_GetDict(module);
4323 if (!d)
return NULL;
4324 SWIG_Python_SetConstant(d,
"LaeWdSerArgReset",SWIG_FromCharPtr(
"r"));
4325 return SWIG_Py_Void();
4329 SWIGINTERN PyObject *LaeWdSerArgStet_swigconstant(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
4332 if (!PyArg_ParseTuple(args,(
char*)
"O:swigconstant", &module))
return NULL;
4333 d = PyModule_GetDict(module);
4334 if (!d)
return NULL;
4335 SWIG_Python_SetConstant(d,
"LaeWdSerArgStet",SWIG_FromCharPtr(
"-"));
4336 return SWIG_Py_Void();
4340 SWIGINTERN PyObject *LaeWdSerArgErrRsp_swigconstant(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
4343 if (!PyArg_ParseTuple(args,(
char*)
"O:swigconstant", &module))
return NULL;
4344 d = PyModule_GetDict(module);
4345 if (!d)
return NULL;
4346 SWIG_Python_SetConstant(d,
"LaeWdSerArgErrRsp",SWIG_FromCharPtr(
"E"));
4347 return SWIG_Py_Void();
4351 SWIGINTERN PyObject *LaeWdSerOpGet_swigconstant(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
4354 if (!PyArg_ParseTuple(args,(
char*)
"O:swigconstant", &module))
return NULL;
4355 d = PyModule_GetDict(module);
4356 if (!d)
return NULL;
4357 SWIG_Python_SetConstant(d,
"LaeWdSerOpGet",SWIG_From_char((
char)(
'g')));
4358 return SWIG_Py_Void();
4362 SWIGINTERN PyObject *LaeWdSerOpSet_swigconstant(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
4365 if (!PyArg_ParseTuple(args,(
char*)
"O:swigconstant", &module))
return NULL;
4366 d = PyModule_GetDict(module);
4367 if (!d)
return NULL;
4368 SWIG_Python_SetConstant(d,
"LaeWdSerOpSet",SWIG_From_char((
char)(
's')));
4369 return SWIG_Py_Void();
4373 SWIGINTERN PyObject *LaeWdSerOpReset_swigconstant(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
4376 if (!PyArg_ParseTuple(args,(
char*)
"O:swigconstant", &module))
return NULL;
4377 d = PyModule_GetDict(module);
4378 if (!d)
return NULL;
4379 SWIG_Python_SetConstant(d,
"LaeWdSerOpReset",SWIG_From_char((
char)(
'r')));
4380 return SWIG_Py_Void();
4384 SWIGINTERN PyObject *LaeWdSerOpBad_swigconstant(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
4387 if (!PyArg_ParseTuple(args,(
char*)
"O:swigconstant", &module))
return NULL;
4388 d = PyModule_GetDict(module);
4389 if (!d)
return NULL;
4390 SWIG_Python_SetConstant(d,
"LaeWdSerOpBad",SWIG_From_char((
char)(
'?')));
4391 return SWIG_Py_Void();
4395 SWIGINTERN PyObject *LaeWdSerCmdIdHelp_swigconstant(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
4398 if (!PyArg_ParseTuple(args,(
char*)
"O:swigconstant", &module))
return NULL;
4399 d = PyModule_GetDict(module);
4400 if (!d)
return NULL;
4401 SWIG_Python_SetConstant(d,
"LaeWdSerCmdIdHelp",SWIG_From_char((
char)(
'h')));
4402 return SWIG_Py_Void();
4406 SWIGINTERN PyObject *LaeWdSerCmdIdGetVersion_swigconstant(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
4409 if (!PyArg_ParseTuple(args,(
char*)
"O:swigconstant", &module))
return NULL;
4410 d = PyModule_GetDict(module);
4411 if (!d)
return NULL;
4412 SWIG_Python_SetConstant(d,
"LaeWdSerCmdIdGetVersion",SWIG_From_char((
char)(
'v')));
4413 return SWIG_Py_Void();
4417 SWIGINTERN PyObject *LaeWdSerCmdArgcGetVersion_swigconstant(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
4420 if (!PyArg_ParseTuple(args,(
char*)
"O:swigconstant", &module))
return NULL;
4421 d = PyModule_GetDict(module);
4422 if (!d)
return NULL;
4423 SWIG_Python_SetConstant(d,
"LaeWdSerCmdArgcGetVersion",SWIG_From_unsigned_SS_char((
unsigned char)(1)));
4424 return SWIG_Py_Void();
4428 SWIGINTERN PyObject *LaeWdSerRspArgcGetVersion_swigconstant(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
4431 if (!PyArg_ParseTuple(args,(
char*)
"O:swigconstant", &module))
return NULL;
4432 d = PyModule_GetDict(module);
4433 if (!d)
return NULL;
4434 SWIG_Python_SetConstant(d,
"LaeWdSerRspArgcGetVersion",SWIG_From_unsigned_SS_char((
unsigned char)(4)));
4435 return SWIG_Py_Void();
4439 SWIGINTERN PyObject *LaeWdSerCmdIdPetTheDog_swigconstant(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
4442 if (!PyArg_ParseTuple(args,(
char*)
"O:swigconstant", &module))
return NULL;
4443 d = PyModule_GetDict(module);
4444 if (!d)
return NULL;
4445 SWIG_Python_SetConstant(d,
"LaeWdSerCmdIdPetTheDog",SWIG_From_char((
char)(
'p')));
4446 return SWIG_Py_Void();
4450 SWIGINTERN PyObject *LaeWdSerCmdArgcPetTheDog_swigconstant(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
4453 if (!PyArg_ParseTuple(args,(
char*)
"O:swigconstant", &module))
return NULL;
4454 d = PyModule_GetDict(module);
4455 if (!d)
return NULL;
4456 SWIG_Python_SetConstant(d,
"LaeWdSerCmdArgcPetTheDog",SWIG_From_unsigned_SS_char((
unsigned char)(1)));
4457 return SWIG_Py_Void();
4461 SWIGINTERN PyObject *LaeWdSerRspArgcPetTheDog_swigconstant(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
4464 if (!PyArg_ParseTuple(args,(
char*)
"O:swigconstant", &module))
return NULL;
4465 d = PyModule_GetDict(module);
4466 if (!d)
return NULL;
4467 SWIG_Python_SetConstant(d,
"LaeWdSerRspArgcPetTheDog",SWIG_From_unsigned_SS_char((
unsigned char)(2)));
4468 return SWIG_Py_Void();
4472 SWIGINTERN PyObject *LaeWdSerCmdIdOpConfig_swigconstant(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
4475 if (!PyArg_ParseTuple(args,(
char*)
"O:swigconstant", &module))
return NULL;
4476 d = PyModule_GetDict(module);
4477 if (!d)
return NULL;
4478 SWIG_Python_SetConstant(d,
"LaeWdSerCmdIdOpConfig",SWIG_From_char((
char)(
'c')));
4479 return SWIG_Py_Void();
4483 SWIGINTERN PyObject *LaeWdSerCmdArgcGetConfig_swigconstant(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
4486 if (!PyArg_ParseTuple(args,(
char*)
"O:swigconstant", &module))
return NULL;
4487 d = PyModule_GetDict(module);
4488 if (!d)
return NULL;
4489 SWIG_Python_SetConstant(d,
"LaeWdSerCmdArgcGetConfig",SWIG_From_unsigned_SS_char((
unsigned char)(2)));
4490 return SWIG_Py_Void();
4494 SWIGINTERN PyObject *LaeWdSerCmdArgcSetConfig_swigconstant(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
4497 if (!PyArg_ParseTuple(args,(
char*)
"O:swigconstant", &module))
return NULL;
4498 d = PyModule_GetDict(module);
4499 if (!d)
return NULL;
4500 SWIG_Python_SetConstant(d,
"LaeWdSerCmdArgcSetConfig",SWIG_From_unsigned_SS_char((
unsigned char)(3)));
4501 return SWIG_Py_Void();
4505 SWIGINTERN PyObject *LaeWdSerRspArgcOpConfig_swigconstant(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
4508 if (!PyArg_ParseTuple(args,(
char*)
"O:swigconstant", &module))
return NULL;
4509 d = PyModule_GetDict(module);
4510 if (!d)
return NULL;
4511 SWIG_Python_SetConstant(d,
"LaeWdSerRspArgcOpConfig",SWIG_From_unsigned_SS_char((
unsigned char)(2)));
4512 return SWIG_Py_Void();
4516 SWIGINTERN PyObject *LaeWdSerCmdIdOpBattSoC_swigconstant(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
4519 if (!PyArg_ParseTuple(args,(
char*)
"O:swigconstant", &module))
return NULL;
4520 d = PyModule_GetDict(module);
4521 if (!d)
return NULL;
4522 SWIG_Python_SetConstant(d,
"LaeWdSerCmdIdOpBattSoC",SWIG_From_char((
char)(
'b')));
4523 return SWIG_Py_Void();
4527 SWIGINTERN PyObject *LaeWdSerCmdArgcGetBattSoC_swigconstant(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
4530 if (!PyArg_ParseTuple(args,(
char*)
"O:swigconstant", &module))
return NULL;
4531 d = PyModule_GetDict(module);
4532 if (!d)
return NULL;
4533 SWIG_Python_SetConstant(d,
"LaeWdSerCmdArgcGetBattSoC",SWIG_From_unsigned_SS_char((
unsigned char)(2)));
4534 return SWIG_Py_Void();
4538 SWIGINTERN PyObject *LaeWdSerCmdArgcSetBattSoC_swigconstant(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
4541 if (!PyArg_ParseTuple(args,(
char*)
"O:swigconstant", &module))
return NULL;
4542 d = PyModule_GetDict(module);
4543 if (!d)
return NULL;
4544 SWIG_Python_SetConstant(d,
"LaeWdSerCmdArgcSetBattSoC",SWIG_From_unsigned_SS_char((
unsigned char)(3)));
4545 return SWIG_Py_Void();
4549 SWIGINTERN PyObject *LaeWdSerRspArgcOpBattSoC_swigconstant(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
4552 if (!PyArg_ParseTuple(args,(
char*)
"O:swigconstant", &module))
return NULL;
4553 d = PyModule_GetDict(module);
4554 if (!d)
return NULL;
4555 SWIG_Python_SetConstant(d,
"LaeWdSerRspArgcOpBattSoC",SWIG_From_unsigned_SS_char((
unsigned char)(2)));
4556 return SWIG_Py_Void();
4560 SWIGINTERN PyObject *LaeWdSerCmdIdOpAlarms_swigconstant(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
4563 if (!PyArg_ParseTuple(args,(
char*)
"O:swigconstant", &module))
return NULL;
4564 d = PyModule_GetDict(module);
4565 if (!d)
return NULL;
4566 SWIG_Python_SetConstant(d,
"LaeWdSerCmdIdOpAlarms",SWIG_From_char((
char)(
'a')));
4567 return SWIG_Py_Void();
4571 SWIGINTERN PyObject *LaeWdSerCmdArgcGetAlarms_swigconstant(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
4574 if (!PyArg_ParseTuple(args,(
char*)
"O:swigconstant", &module))
return NULL;
4575 d = PyModule_GetDict(module);
4576 if (!d)
return NULL;
4577 SWIG_Python_SetConstant(d,
"LaeWdSerCmdArgcGetAlarms",SWIG_From_unsigned_SS_char((
unsigned char)(2)));
4578 return SWIG_Py_Void();
4582 SWIGINTERN PyObject *LaeWdSerCmdArgcSetAlarms_swigconstant(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
4585 if (!PyArg_ParseTuple(args,(
char*)
"O:swigconstant", &module))
return NULL;
4586 d = PyModule_GetDict(module);
4587 if (!d)
return NULL;
4588 SWIG_Python_SetConstant(d,
"LaeWdSerCmdArgcSetAlarms",SWIG_From_unsigned_SS_char((
unsigned char)(3)));
4589 return SWIG_Py_Void();
4593 SWIGINTERN PyObject *LaeWdSerRspArgcOpAlarms_swigconstant(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
4596 if (!PyArg_ParseTuple(args,(
char*)
"O:swigconstant", &module))
return NULL;
4597 d = PyModule_GetDict(module);
4598 if (!d)
return NULL;
4599 SWIG_Python_SetConstant(d,
"LaeWdSerRspArgcOpAlarms",SWIG_From_unsigned_SS_char((
unsigned char)(2)));
4600 return SWIG_Py_Void();
4604 SWIGINTERN PyObject *LaeWdSerCmdIdOpLed_swigconstant(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
4607 if (!PyArg_ParseTuple(args,(
char*)
"O:swigconstant", &module))
return NULL;
4608 d = PyModule_GetDict(module);
4609 if (!d)
return NULL;
4610 SWIG_Python_SetConstant(d,
"LaeWdSerCmdIdOpLed",SWIG_From_char((
char)(
'l')));
4611 return SWIG_Py_Void();
4615 SWIGINTERN PyObject *LaeWdSerCmdArgcGetLed_swigconstant(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
4618 if (!PyArg_ParseTuple(args,(
char*)
"O:swigconstant", &module))
return NULL;
4619 d = PyModule_GetDict(module);
4620 if (!d)
return NULL;
4621 SWIG_Python_SetConstant(d,
"LaeWdSerCmdArgcGetLed",SWIG_From_unsigned_SS_char((
unsigned char)(2)));
4622 return SWIG_Py_Void();
4626 SWIGINTERN PyObject *LaeWdSerCmdArgcSetLed_swigconstant(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
4629 if (!PyArg_ParseTuple(args,(
char*)
"O:swigconstant", &module))
return NULL;
4630 d = PyModule_GetDict(module);
4631 if (!d)
return NULL;
4632 SWIG_Python_SetConstant(d,
"LaeWdSerCmdArgcSetLed",SWIG_From_unsigned_SS_char((
unsigned char)(5)));
4633 return SWIG_Py_Void();
4637 SWIGINTERN PyObject *LaeWdSerCmdArgcResetLed_swigconstant(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
4640 if (!PyArg_ParseTuple(args,(
char*)
"O:swigconstant", &module))
return NULL;
4641 d = PyModule_GetDict(module);
4642 if (!d)
return NULL;
4643 SWIG_Python_SetConstant(d,
"LaeWdSerCmdArgcResetLed",SWIG_From_unsigned_SS_char((
unsigned char)(2)));
4644 return SWIG_Py_Void();
4648 SWIGINTERN PyObject *LaeWdSerRspArgcOpLed_swigconstant(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
4651 if (!PyArg_ParseTuple(args,(
char*)
"O:swigconstant", &module))
return NULL;
4652 d = PyModule_GetDict(module);
4653 if (!d)
return NULL;
4654 SWIG_Python_SetConstant(d,
"LaeWdSerRspArgcOpLed",SWIG_From_unsigned_SS_char((
unsigned char)(4)));
4655 return SWIG_Py_Void();
4659 SWIGINTERN PyObject *LaeWdSerCmdIdOpEnMotorCtlrs_swigconstant(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
4662 if (!PyArg_ParseTuple(args,(
char*)
"O:swigconstant", &module))
return NULL;
4663 d = PyModule_GetDict(module);
4664 if (!d)
return NULL;
4665 SWIG_Python_SetConstant(d,
"LaeWdSerCmdIdOpEnMotorCtlrs",SWIG_From_char((
char)(
'm')));
4666 return SWIG_Py_Void();
4670 SWIGINTERN PyObject *LaeWdSerCmdArgcGetEnMotorCtlrs_swigconstant(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
4673 if (!PyArg_ParseTuple(args,(
char*)
"O:swigconstant", &module))
return NULL;
4674 d = PyModule_GetDict(module);
4675 if (!d)
return NULL;
4676 SWIG_Python_SetConstant(d,
"LaeWdSerCmdArgcGetEnMotorCtlrs",SWIG_From_unsigned_SS_char((
unsigned char)(2)));
4677 return SWIG_Py_Void();
4681 SWIGINTERN PyObject *LaeWdSerCmdArgcSetEnMotorCtlrs_swigconstant(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
4684 if (!PyArg_ParseTuple(args,(
char*)
"O:swigconstant", &module))
return NULL;
4685 d = PyModule_GetDict(module);
4686 if (!d)
return NULL;
4687 SWIG_Python_SetConstant(d,
"LaeWdSerCmdArgcSetEnMotorCtlrs",SWIG_From_unsigned_SS_char((
unsigned char)(3)));
4688 return SWIG_Py_Void();
4692 SWIGINTERN PyObject *LaeWdSerRspArgcOpEnMotorCtlrs_swigconstant(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
4695 if (!PyArg_ParseTuple(args,(
char*)
"O:swigconstant", &module))
return NULL;
4696 d = PyModule_GetDict(module);
4697 if (!d)
return NULL;
4698 SWIG_Python_SetConstant(d,
"LaeWdSerRspArgcOpEnMotorCtlrs",SWIG_From_unsigned_SS_char((
unsigned char)(2)));
4699 return SWIG_Py_Void();
4703 SWIGINTERN PyObject *LaeWdSerCmdIdOpEnAuxPorts_swigconstant(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
4706 if (!PyArg_ParseTuple(args,(
char*)
"O:swigconstant", &module))
return NULL;
4707 d = PyModule_GetDict(module);
4708 if (!d)
return NULL;
4709 SWIG_Python_SetConstant(d,
"LaeWdSerCmdIdOpEnAuxPorts",SWIG_From_char((
char)(
'x')));
4710 return SWIG_Py_Void();
4714 SWIGINTERN PyObject *LaeWdSerCmdArgcGetEnAuxPorts_swigconstant(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
4717 if (!PyArg_ParseTuple(args,(
char*)
"O:swigconstant", &module))
return NULL;
4718 d = PyModule_GetDict(module);
4719 if (!d)
return NULL;
4720 SWIG_Python_SetConstant(d,
"LaeWdSerCmdArgcGetEnAuxPorts",SWIG_From_unsigned_SS_char((
unsigned char)(2)));
4721 return SWIG_Py_Void();
4725 SWIGINTERN PyObject *LaeWdSerCmdArgcSetEnAuxPorts_swigconstant(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
4728 if (!PyArg_ParseTuple(args,(
char*)
"O:swigconstant", &module))
return NULL;
4729 d = PyModule_GetDict(module);
4730 if (!d)
return NULL;
4731 SWIG_Python_SetConstant(d,
"LaeWdSerCmdArgcSetEnAuxPorts",SWIG_From_unsigned_SS_char((
unsigned char)(4)));
4732 return SWIG_Py_Void();
4736 SWIGINTERN PyObject *LaeWdSerRspArgcOpEnAuxPorts_swigconstant(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
4739 if (!PyArg_ParseTuple(args,(
char*)
"O:swigconstant", &module))
return NULL;
4740 d = PyModule_GetDict(module);
4741 if (!d)
return NULL;
4742 SWIG_Python_SetConstant(d,
"LaeWdSerRspArgcOpEnAuxPorts",SWIG_From_unsigned_SS_char((
unsigned char)(3)));
4743 return SWIG_Py_Void();
4747 SWIGINTERN PyObject *LaeWdSerCmdIdReadVolts_swigconstant(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
4750 if (!PyArg_ParseTuple(args,(
char*)
"O:swigconstant", &module))
return NULL;
4751 d = PyModule_GetDict(module);
4752 if (!d)
return NULL;
4753 SWIG_Python_SetConstant(d,
"LaeWdSerCmdIdReadVolts",SWIG_From_unsigned_SS_char((
unsigned char)(
'r')));
4754 return SWIG_Py_Void();
4758 SWIGINTERN PyObject *LaeWdSerCmdArgcReadVolts_swigconstant(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
4761 if (!PyArg_ParseTuple(args,(
char*)
"O:swigconstant", &module))
return NULL;
4762 d = PyModule_GetDict(module);
4763 if (!d)
return NULL;
4764 SWIG_Python_SetConstant(d,
"LaeWdSerCmdArgcReadVolts",SWIG_From_unsigned_SS_char((
unsigned char)(1)));
4765 return SWIG_Py_Void();
4769 SWIGINTERN PyObject *LaeWdSerRspArgcReadVolts_swigconstant(PyObject *SWIGUNUSEDPARM(
self), PyObject *args) {
4772 if (!PyArg_ParseTuple(args,(
char*)
"O:swigconstant", &module))
return NULL;
4773 d = PyModule_GetDict(module);
4774 if (!d)
return NULL;
4775 SWIG_Python_SetConstant(d,
"LaeWdSerRspArgcReadVolts",SWIG_From_unsigned_SS_char((
unsigned char)(3)));
4776 return SWIG_Py_Void();
4780 static PyMethodDef SwigMethods[] = {
4781 { (
char *)
"SWIG_PyInstanceMethod_New", (PyCFunction)SWIG_PyInstanceMethod_New, METH_O, NULL},
4782 { (
char *)
"LAE_WD_VERSION_swigconstant", LAE_WD_VERSION_swigconstant, METH_VARARGS, NULL},
4783 { (
char *)
"LaeWdArgFail_swigconstant", LaeWdArgFail_swigconstant, METH_VARARGS, NULL},
4784 { (
char *)
"LaeWdArgPass_swigconstant", LaeWdArgPass_swigconstant, METH_VARARGS, NULL},
4785 { (
char *)
"LaeWdTimeoutDft_swigconstant", LaeWdTimeoutDft_swigconstant, METH_VARARGS, NULL},
4786 { (
char *)
"LaeWdTimeoutMin_swigconstant", LaeWdTimeoutMin_swigconstant, METH_VARARGS, NULL},
4787 { (
char *)
"LaeWdTimeoutMax_swigconstant", LaeWdTimeoutMax_swigconstant, METH_VARARGS, NULL},
4788 { (
char *)
"LaeWdArgBattSoCMin_swigconstant", LaeWdArgBattSoCMin_swigconstant, METH_VARARGS, NULL},
4789 { (
char *)
"LaeWdArgBattSoCMax_swigconstant", LaeWdArgBattSoCMax_swigconstant, METH_VARARGS, NULL},
4790 { (
char *)
"LaeWdArgAlarmNone_swigconstant", LaeWdArgAlarmNone_swigconstant, METH_VARARGS, NULL},
4791 { (
char *)
"LaeWdArgAlarmGen_swigconstant", LaeWdArgAlarmGen_swigconstant, METH_VARARGS, NULL},
4792 { (
char *)
"LaeWdArgAlarmBatt_swigconstant", LaeWdArgAlarmBatt_swigconstant, METH_VARARGS, NULL},
4793 { (
char *)
"LaeWdArgAlarmTemp_swigconstant", LaeWdArgAlarmTemp_swigconstant, METH_VARARGS, NULL},
4794 { (
char *)
"LaeWdArgAlarmEStop_swigconstant", LaeWdArgAlarmEStop_swigconstant, METH_VARARGS, NULL},
4795 { (
char *)
"LaeWdArgAlarmBattCrit_swigconstant", LaeWdArgAlarmBattCrit_swigconstant, METH_VARARGS, NULL},
4796 { (
char *)
"LaeWdArgAlarmCrit_swigconstant", LaeWdArgAlarmCrit_swigconstant, METH_VARARGS, NULL},
4797 { (
char *)
"LaeWdArgAlarmTypeMask_swigconstant", LaeWdArgAlarmTypeMask_swigconstant, METH_VARARGS, NULL},
4798 { (
char *)
"LaeWdArgAlarmMask_swigconstant", LaeWdArgAlarmMask_swigconstant, METH_VARARGS, NULL},
4799 { (
char *)
"LaeWdArgRgbLedMin_swigconstant", LaeWdArgRgbLedMin_swigconstant, METH_VARARGS, NULL},
4800 { (
char *)
"LaeWdArgRgbLedMax_swigconstant", LaeWdArgRgbLedMax_swigconstant, METH_VARARGS, NULL},
4801 { (
char *)
"LaeWdArgDPinNumMin_swigconstant", LaeWdArgDPinNumMin_swigconstant, METH_VARARGS, NULL},
4802 { (
char *)
"LaeWdArgDPinNumWMin_swigconstant", LaeWdArgDPinNumWMin_swigconstant, METH_VARARGS, NULL},
4803 { (
char *)
"LaeWdArgDPinNumWMax_swigconstant", LaeWdArgDPinNumWMax_swigconstant, METH_VARARGS, NULL},
4804 { (
char *)
"LaeWdArgDPinNumMax_swigconstant", LaeWdArgDPinNumMax_swigconstant, METH_VARARGS, NULL},
4805 { (
char *)
"LaeWdArgDPinDirIn_swigconstant", LaeWdArgDPinDirIn_swigconstant, METH_VARARGS, NULL},
4806 { (
char *)
"LaeWdArgDPinDirOut_swigconstant", LaeWdArgDPinDirOut_swigconstant, METH_VARARGS, NULL},
4807 { (
char *)
"LaeWdArgDPinValLow_swigconstant", LaeWdArgDPinValLow_swigconstant, METH_VARARGS, NULL},
4808 { (
char *)
"LaeWdArgDPinValHigh_swigconstant", LaeWdArgDPinValHigh_swigconstant, METH_VARARGS, NULL},
4809 { (
char *)
"LaeWdArgAInPinNumMin_swigconstant", LaeWdArgAInPinNumMin_swigconstant, METH_VARARGS, NULL},
4810 { (
char *)
"LaeWdArgAInPinNumMax_swigconstant", LaeWdArgAInPinNumMax_swigconstant, METH_VARARGS, NULL},
4811 { (
char *)
"LaeWdArgAInPinValMin_swigconstant", LaeWdArgAInPinValMin_swigconstant, METH_VARARGS, NULL},
4812 { (
char *)
"LaeWdArgAInPinValMax_swigconstant", LaeWdArgAInPinValMax_swigconstant, METH_VARARGS, NULL},
4813 { (
char *)
"LaeWdArgAOutPinNumMin_swigconstant", LaeWdArgAOutPinNumMin_swigconstant, METH_VARARGS, NULL},
4814 { (
char *)
"LaeWdArgAOutPinNumMax_swigconstant", LaeWdArgAOutPinNumMax_swigconstant, METH_VARARGS, NULL},
4815 { (
char *)
"LaeWdArgAOutPinValMin_swigconstant", LaeWdArgAOutPinValMin_swigconstant, METH_VARARGS, NULL},
4816 { (
char *)
"LaeWdArgAOutPinValMax_swigconstant", LaeWdArgAOutPinValMax_swigconstant, METH_VARARGS, NULL},
4817 { (
char *)
"LaeI2CAddrArduino_swigconstant", LaeI2CAddrArduino_swigconstant, METH_VARARGS, NULL},
4818 { (
char *)
"LaeI2CAddrWd_swigconstant", LaeI2CAddrWd_swigconstant, METH_VARARGS, NULL},
4819 { (
char *)
"LaeWdMaxCmdLen_swigconstant", LaeWdMaxCmdLen_swigconstant, METH_VARARGS, NULL},
4820 { (
char *)
"LaeWdMaxRspLen_swigconstant", LaeWdMaxRspLen_swigconstant, METH_VARARGS, NULL},
4821 { (
char *)
"LaeWdCmdIdPetDog_swigconstant", LaeWdCmdIdPetDog_swigconstant, METH_VARARGS, NULL},
4822 { (
char *)
"LaeWdCmdLenPetDog_swigconstant", LaeWdCmdLenPetDog_swigconstant, METH_VARARGS, NULL},
4823 { (
char *)
"LaeWdRspLenPetDog_swigconstant", LaeWdRspLenPetDog_swigconstant, METH_VARARGS, NULL},
4824 { (
char *)
"LaeWdRspLenPetDog_2_swigconstant", LaeWdRspLenPetDog_2_swigconstant, METH_VARARGS, NULL},
4825 { (
char *)
"LaeWdCmdIdGetVersion_swigconstant", LaeWdCmdIdGetVersion_swigconstant, METH_VARARGS, NULL},
4826 { (
char *)
"LaeWdCmdLenGetVersion_swigconstant", LaeWdCmdLenGetVersion_swigconstant, METH_VARARGS, NULL},
4827 { (
char *)
"LaeWdRspLenGetVersion_swigconstant", LaeWdRspLenGetVersion_swigconstant, METH_VARARGS, NULL},
4828 { (
char *)
"LaeWdCmdIdSetBattCharge_swigconstant", LaeWdCmdIdSetBattCharge_swigconstant, METH_VARARGS, NULL},
4829 { (
char *)
"LaeWdCmdLenSetBattCharge_swigconstant", LaeWdCmdLenSetBattCharge_swigconstant, METH_VARARGS, NULL},
4830 { (
char *)
"LaeWdRspLenSetBattCharge_swigconstant", LaeWdRspLenSetBattCharge_swigconstant, METH_VARARGS, NULL},
4831 { (
char *)
"LaeWdCmdIdSetAlarms_swigconstant", LaeWdCmdIdSetAlarms_swigconstant, METH_VARARGS, NULL},
4832 { (
char *)
"LaeWdCmdLenSetAlarms_swigconstant", LaeWdCmdLenSetAlarms_swigconstant, METH_VARARGS, NULL},
4833 { (
char *)
"LaeWdRspLenSetAlarms_swigconstant", LaeWdRspLenSetAlarms_swigconstant, METH_VARARGS, NULL},
4834 { (
char *)
"LaeWdCmdIdSetRgbLed_swigconstant", LaeWdCmdIdSetRgbLed_swigconstant, METH_VARARGS, NULL},
4835 { (
char *)
"LaeWdCmdLenSetRgbLed_swigconstant", LaeWdCmdLenSetRgbLed_swigconstant, METH_VARARGS, NULL},
4836 { (
char *)
"LaeWdRspLenSetRgbLed_swigconstant", LaeWdRspLenSetRgbLed_swigconstant, METH_VARARGS, NULL},
4837 { (
char *)
"LaeWdCmdIdResetRgbLed_swigconstant", LaeWdCmdIdResetRgbLed_swigconstant, METH_VARARGS, NULL},
4838 { (
char *)
"LaeWdCmdLenResetRgbLed_swigconstant", LaeWdCmdLenResetRgbLed_swigconstant, METH_VARARGS, NULL},
4839 { (
char *)
"LaeWdRspLenResetRgbLed_swigconstant", LaeWdRspLenResetRgbLed_swigconstant, METH_VARARGS, NULL},
4840 { (
char *)
"LaeWdCmdIdConfigDPin_swigconstant", LaeWdCmdIdConfigDPin_swigconstant, METH_VARARGS, NULL},
4841 { (
char *)
"LaeWdCmdLenConfigDPin_swigconstant", LaeWdCmdLenConfigDPin_swigconstant, METH_VARARGS, NULL},
4842 { (
char *)
"LaeWdRspLenConfigDPin_swigconstant", LaeWdRspLenConfigDPin_swigconstant, METH_VARARGS, NULL},
4843 { (
char *)
"LaeWdCmdIdReadDPin_swigconstant", LaeWdCmdIdReadDPin_swigconstant, METH_VARARGS, NULL},
4844 { (
char *)
"LaeWdCmdLenReadDPin_swigconstant", LaeWdCmdLenReadDPin_swigconstant, METH_VARARGS, NULL},
4845 { (
char *)
"LaeWdRspLenReadDPin_swigconstant", LaeWdRspLenReadDPin_swigconstant, METH_VARARGS, NULL},
4846 { (
char *)
"LaeWdCmdIdWriteDPin_swigconstant", LaeWdCmdIdWriteDPin_swigconstant, METH_VARARGS, NULL},
4847 { (
char *)
"LaeWdCmdLenWriteDPin_swigconstant", LaeWdCmdLenWriteDPin_swigconstant, METH_VARARGS, NULL},
4848 { (
char *)
"LaeWdRspLenWriteDPin_swigconstant", LaeWdRspLenWriteDPin_swigconstant, METH_VARARGS, NULL},
4849 { (
char *)
"LaeWdCmdIdReadAPin_swigconstant", LaeWdCmdIdReadAPin_swigconstant, METH_VARARGS, NULL},
4850 { (
char *)
"LaeWdCmdLenReadAPin_swigconstant", LaeWdCmdLenReadAPin_swigconstant, METH_VARARGS, NULL},
4851 { (
char *)
"LaeWdRspLenReadAPin_swigconstant", LaeWdRspLenReadAPin_swigconstant, METH_VARARGS, NULL},
4852 { (
char *)
"LaeWdCmdIdWriteAPin_swigconstant", LaeWdCmdIdWriteAPin_swigconstant, METH_VARARGS, NULL},
4853 { (
char *)
"LaeWdCmdLenWriteAPin_swigconstant", LaeWdCmdLenWriteAPin_swigconstant, METH_VARARGS, NULL},
4854 { (
char *)
"LaeWdRspLenWriteAPin_swigconstant", LaeWdRspLenWriteAPin_swigconstant, METH_VARARGS, NULL},
4855 { (
char *)
"LaeWdCmdIdEnableMotorCtlrs_swigconstant", LaeWdCmdIdEnableMotorCtlrs_swigconstant, METH_VARARGS, NULL},
4856 { (
char *)
"LaeWdCmdLenEnableMotorCtlrs_swigconstant", LaeWdCmdLenEnableMotorCtlrs_swigconstant, METH_VARARGS, NULL},
4857 { (
char *)
"LaeWdRspLenEnableMotorCtlrs_swigconstant", LaeWdRspLenEnableMotorCtlrs_swigconstant, METH_VARARGS, NULL},
4858 { (
char *)
"LaeWdCmdIdEnableAuxPort_swigconstant", LaeWdCmdIdEnableAuxPort_swigconstant, METH_VARARGS, NULL},
4859 { (
char *)
"LaeWdCmdLenEnableAuxPort_swigconstant", LaeWdCmdLenEnableAuxPort_swigconstant, METH_VARARGS, NULL},
4860 { (
char *)
"LaeWdRspLenEnableAuxPort_swigconstant", LaeWdRspLenEnableAuxPort_swigconstant, METH_VARARGS, NULL},
4861 { (
char *)
"LaeWdArgAuxPortBatt_swigconstant", LaeWdArgAuxPortBatt_swigconstant, METH_VARARGS, NULL},
4862 { (
char *)
"LaeWdArgAuxPort5V_swigconstant", LaeWdArgAuxPort5V_swigconstant, METH_VARARGS, NULL},
4863 { (
char *)
"LaeWdCmdIdReadEnables_swigconstant", LaeWdCmdIdReadEnables_swigconstant, METH_VARARGS, NULL},
4864 { (
char *)
"LaeWdCmdLenReadEnables_swigconstant", LaeWdCmdLenReadEnables_swigconstant, METH_VARARGS, NULL},
4865 { (
char *)
"LaeWdRspLenReadEnables_swigconstant", LaeWdRspLenReadEnables_swigconstant, METH_VARARGS, NULL},
4866 { (
char *)
"LaeWdCmdIdReadVolts_swigconstant", LaeWdCmdIdReadVolts_swigconstant, METH_VARARGS, NULL},
4867 { (
char *)
"LaeWdCmdLenReadVolts_swigconstant", LaeWdCmdLenReadVolts_swigconstant, METH_VARARGS, NULL},
4868 { (
char *)
"LaeWdRspLenReadVolts_swigconstant", LaeWdRspLenReadVolts_swigconstant, METH_VARARGS, NULL},
4869 { (
char *)
"LaeWdArgVMult_swigconstant", LaeWdArgVMult_swigconstant, METH_VARARGS, NULL},
4870 { (
char *)
"LaeWdArgVScale_swigconstant", LaeWdArgVScale_swigconstant, METH_VARARGS, NULL},
4871 { (
char *)
"LaeWdCmdIdTest_swigconstant", LaeWdCmdIdTest_swigconstant, METH_VARARGS, NULL},
4872 { (
char *)
"LaeWdCmdLenTest_swigconstant", LaeWdCmdLenTest_swigconstant, METH_VARARGS, NULL},
4873 { (
char *)
"LaeWdRspLenTest_swigconstant", LaeWdRspLenTest_swigconstant, METH_VARARGS, NULL},
4874 { (
char *)
"LaeWdCmdIdConfigFw_swigconstant", LaeWdCmdIdConfigFw_swigconstant, METH_VARARGS, NULL},
4875 { (
char *)
"LaeWdCmdLenConfigFw_swigconstant", LaeWdCmdLenConfigFw_swigconstant, METH_VARARGS, NULL},
4876 { (
char *)
"LaeWdRspLenConfigFw_swigconstant", LaeWdRspLenConfigFw_swigconstant, METH_VARARGS, NULL},
4877 { (
char *)
"LaeWdSerMaxCmdLen_swigconstant", LaeWdSerMaxCmdLen_swigconstant, METH_VARARGS, NULL},
4878 { (
char *)
"LaeWdSerMaxCmdArgc_swigconstant", LaeWdSerMaxCmdArgc_swigconstant, METH_VARARGS, NULL},
4879 { (
char *)
"LaeWdSerMaxCmdArgLen_swigconstant", LaeWdSerMaxCmdArgLen_swigconstant, METH_VARARGS, NULL},
4880 { (
char *)
"LaeWdSerMaxRspLen_swigconstant", LaeWdSerMaxRspLen_swigconstant, METH_VARARGS, NULL},
4881 { (
char *)
"LaeWdSerMaxRspArgc_swigconstant", LaeWdSerMaxRspArgc_swigconstant, METH_VARARGS, NULL},
4882 { (
char *)
"LaeWdSerMaxRspArgLen_swigconstant", LaeWdSerMaxRspArgLen_swigconstant, METH_VARARGS, NULL},
4883 { (
char *)
"LaeWdSerEoC_swigconstant", LaeWdSerEoC_swigconstant, METH_VARARGS, NULL},
4884 { (
char *)
"LaeWdSerEoR_swigconstant", LaeWdSerEoR_swigconstant, METH_VARARGS, NULL},
4885 { (
char *)
"LaeWdSerSep_swigconstant", LaeWdSerSep_swigconstant, METH_VARARGS, NULL},
4886 { (
char *)
"LaeWdSerArgOff_swigconstant", LaeWdSerArgOff_swigconstant, METH_VARARGS, NULL},
4887 { (
char *)
"LaeWdSerArgOn_swigconstant", LaeWdSerArgOn_swigconstant, METH_VARARGS, NULL},
4888 { (
char *)
"LaeWdSerArgGet_swigconstant", LaeWdSerArgGet_swigconstant, METH_VARARGS, NULL},
4889 { (
char *)
"LaeWdSerArgSet_swigconstant", LaeWdSerArgSet_swigconstant, METH_VARARGS, NULL},
4890 { (
char *)
"LaeWdSerArgReset_swigconstant", LaeWdSerArgReset_swigconstant, METH_VARARGS, NULL},
4891 { (
char *)
"LaeWdSerArgStet_swigconstant", LaeWdSerArgStet_swigconstant, METH_VARARGS, NULL},
4892 { (
char *)
"LaeWdSerArgErrRsp_swigconstant", LaeWdSerArgErrRsp_swigconstant, METH_VARARGS, NULL},
4893 { (
char *)
"LaeWdSerOpGet_swigconstant", LaeWdSerOpGet_swigconstant, METH_VARARGS, NULL},
4894 { (
char *)
"LaeWdSerOpSet_swigconstant", LaeWdSerOpSet_swigconstant, METH_VARARGS, NULL},
4895 { (
char *)
"LaeWdSerOpReset_swigconstant", LaeWdSerOpReset_swigconstant, METH_VARARGS, NULL},
4896 { (
char *)
"LaeWdSerOpBad_swigconstant", LaeWdSerOpBad_swigconstant, METH_VARARGS, NULL},
4897 { (
char *)
"LaeWdSerCmdIdHelp_swigconstant", LaeWdSerCmdIdHelp_swigconstant, METH_VARARGS, NULL},
4898 { (
char *)
"LaeWdSerCmdIdGetVersion_swigconstant", LaeWdSerCmdIdGetVersion_swigconstant, METH_VARARGS, NULL},
4899 { (
char *)
"LaeWdSerCmdArgcGetVersion_swigconstant", LaeWdSerCmdArgcGetVersion_swigconstant, METH_VARARGS, NULL},
4900 { (
char *)
"LaeWdSerRspArgcGetVersion_swigconstant", LaeWdSerRspArgcGetVersion_swigconstant, METH_VARARGS, NULL},
4901 { (
char *)
"LaeWdSerCmdIdPetTheDog_swigconstant", LaeWdSerCmdIdPetTheDog_swigconstant, METH_VARARGS, NULL},
4902 { (
char *)
"LaeWdSerCmdArgcPetTheDog_swigconstant", LaeWdSerCmdArgcPetTheDog_swigconstant, METH_VARARGS, NULL},
4903 { (
char *)
"LaeWdSerRspArgcPetTheDog_swigconstant", LaeWdSerRspArgcPetTheDog_swigconstant, METH_VARARGS, NULL},
4904 { (
char *)
"LaeWdSerCmdIdOpConfig_swigconstant", LaeWdSerCmdIdOpConfig_swigconstant, METH_VARARGS, NULL},
4905 { (
char *)
"LaeWdSerCmdArgcGetConfig_swigconstant", LaeWdSerCmdArgcGetConfig_swigconstant, METH_VARARGS, NULL},
4906 { (
char *)
"LaeWdSerCmdArgcSetConfig_swigconstant", LaeWdSerCmdArgcSetConfig_swigconstant, METH_VARARGS, NULL},
4907 { (
char *)
"LaeWdSerRspArgcOpConfig_swigconstant", LaeWdSerRspArgcOpConfig_swigconstant, METH_VARARGS, NULL},
4908 { (
char *)
"LaeWdSerCmdIdOpBattSoC_swigconstant", LaeWdSerCmdIdOpBattSoC_swigconstant, METH_VARARGS, NULL},
4909 { (
char *)
"LaeWdSerCmdArgcGetBattSoC_swigconstant", LaeWdSerCmdArgcGetBattSoC_swigconstant, METH_VARARGS, NULL},
4910 { (
char *)
"LaeWdSerCmdArgcSetBattSoC_swigconstant", LaeWdSerCmdArgcSetBattSoC_swigconstant, METH_VARARGS, NULL},
4911 { (
char *)
"LaeWdSerRspArgcOpBattSoC_swigconstant", LaeWdSerRspArgcOpBattSoC_swigconstant, METH_VARARGS, NULL},
4912 { (
char *)
"LaeWdSerCmdIdOpAlarms_swigconstant", LaeWdSerCmdIdOpAlarms_swigconstant, METH_VARARGS, NULL},
4913 { (
char *)
"LaeWdSerCmdArgcGetAlarms_swigconstant", LaeWdSerCmdArgcGetAlarms_swigconstant, METH_VARARGS, NULL},
4914 { (
char *)
"LaeWdSerCmdArgcSetAlarms_swigconstant", LaeWdSerCmdArgcSetAlarms_swigconstant, METH_VARARGS, NULL},
4915 { (
char *)
"LaeWdSerRspArgcOpAlarms_swigconstant", LaeWdSerRspArgcOpAlarms_swigconstant, METH_VARARGS, NULL},
4916 { (
char *)
"LaeWdSerCmdIdOpLed_swigconstant", LaeWdSerCmdIdOpLed_swigconstant, METH_VARARGS, NULL},
4917 { (
char *)
"LaeWdSerCmdArgcGetLed_swigconstant", LaeWdSerCmdArgcGetLed_swigconstant, METH_VARARGS, NULL},
4918 { (
char *)
"LaeWdSerCmdArgcSetLed_swigconstant", LaeWdSerCmdArgcSetLed_swigconstant, METH_VARARGS, NULL},
4919 { (
char *)
"LaeWdSerCmdArgcResetLed_swigconstant", LaeWdSerCmdArgcResetLed_swigconstant, METH_VARARGS, NULL},
4920 { (
char *)
"LaeWdSerRspArgcOpLed_swigconstant", LaeWdSerRspArgcOpLed_swigconstant, METH_VARARGS, NULL},
4921 { (
char *)
"LaeWdSerCmdIdOpEnMotorCtlrs_swigconstant", LaeWdSerCmdIdOpEnMotorCtlrs_swigconstant, METH_VARARGS, NULL},
4922 { (
char *)
"LaeWdSerCmdArgcGetEnMotorCtlrs_swigconstant", LaeWdSerCmdArgcGetEnMotorCtlrs_swigconstant, METH_VARARGS, NULL},
4923 { (
char *)
"LaeWdSerCmdArgcSetEnMotorCtlrs_swigconstant", LaeWdSerCmdArgcSetEnMotorCtlrs_swigconstant, METH_VARARGS, NULL},
4924 { (
char *)
"LaeWdSerRspArgcOpEnMotorCtlrs_swigconstant", LaeWdSerRspArgcOpEnMotorCtlrs_swigconstant, METH_VARARGS, NULL},
4925 { (
char *)
"LaeWdSerCmdIdOpEnAuxPorts_swigconstant", LaeWdSerCmdIdOpEnAuxPorts_swigconstant, METH_VARARGS, NULL},
4926 { (
char *)
"LaeWdSerCmdArgcGetEnAuxPorts_swigconstant", LaeWdSerCmdArgcGetEnAuxPorts_swigconstant, METH_VARARGS, NULL},
4927 { (
char *)
"LaeWdSerCmdArgcSetEnAuxPorts_swigconstant", LaeWdSerCmdArgcSetEnAuxPorts_swigconstant, METH_VARARGS, NULL},
4928 { (
char *)
"LaeWdSerRspArgcOpEnAuxPorts_swigconstant", LaeWdSerRspArgcOpEnAuxPorts_swigconstant, METH_VARARGS, NULL},
4929 { (
char *)
"LaeWdSerCmdIdReadVolts_swigconstant", LaeWdSerCmdIdReadVolts_swigconstant, METH_VARARGS, NULL},
4930 { (
char *)
"LaeWdSerCmdArgcReadVolts_swigconstant", LaeWdSerCmdArgcReadVolts_swigconstant, METH_VARARGS, NULL},
4931 { (
char *)
"LaeWdSerRspArgcReadVolts_swigconstant", LaeWdSerRspArgcReadVolts_swigconstant, METH_VARARGS, NULL},
4932 { NULL, NULL, 0, NULL }
4938 static swig_type_info _swigt__p_char = {
"_p_char",
"char *", 0, 0, (
void*)0, 0};
4939 static swig_type_info _swigt__p_int = {
"_p_int",
"bool_t *|int *", 0, 0, (
void*)0, 0};
4940 static swig_type_info _swigt__p_unsigned_char = {
"_p_unsigned_char",
"unsigned char *|byte_t *", 0, 0, (
void*)0, 0};
4941 static swig_type_info _swigt__p_unsigned_int = {
"_p_unsigned_int",
"unsigned int *|uint_t *", 0, 0, (
void*)0, 0};
4942 static swig_type_info _swigt__p_unsigned_long = {
"_p_unsigned_long",
"unsigned long *|ulong_t *", 0, 0, (
void*)0, 0};
4943 static swig_type_info _swigt__p_unsigned_short = {
"_p_unsigned_short",
"unsigned short *|ushort_t *", 0, 0, (
void*)0, 0};
4948 &_swigt__p_unsigned_char,
4949 &_swigt__p_unsigned_int,
4950 &_swigt__p_unsigned_long,
4951 &_swigt__p_unsigned_short,
4954 static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
4955 static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
4956 static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}};
4957 static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
4958 static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}};
4959 static swig_cast_info _swigc__p_unsigned_short[] = { {&_swigt__p_unsigned_short, 0, 0, 0},{0, 0, 0, 0}};
4964 _swigc__p_unsigned_char,
4965 _swigc__p_unsigned_int,
4966 _swigc__p_unsigned_long,
4967 _swigc__p_unsigned_short,
4974 {0, 0, 0, 0.0, 0, 0}};
5028 #define SWIGRUNTIME_DEBUG 5033 SWIG_InitializeModule(
void *clientdata) {
5039 if (swig_module.next==0) {
5041 swig_module.type_initial = swig_type_initial;
5042 swig_module.cast_initial = swig_cast_initial;
5043 swig_module.next = &swig_module;
5050 module_head = SWIG_GetModule(clientdata);
5054 SWIG_SetModule(clientdata, &swig_module);
5059 if (iter==&swig_module) {
5064 }
while (iter!= module_head);
5067 swig_module.next = module_head->next;
5068 module_head->next = &swig_module;
5075 if (init == 0)
return;
5078 #ifdef SWIGRUNTIME_DEBUG 5079 printf(
"SWIG_InitializeModule: size %d\n", swig_module.size);
5081 for (i = 0; i < swig_module.size; ++i) {
5086 #ifdef SWIGRUNTIME_DEBUG 5087 printf(
"SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
5091 if (swig_module.next != &swig_module) {
5092 type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
5096 #ifdef SWIGRUNTIME_DEBUG 5097 printf(
"SWIG_InitializeModule: found type %s\n", type->name);
5099 if (swig_module.type_initial[i]->clientdata) {
5100 type->clientdata = swig_module.type_initial[i]->clientdata;
5101 #ifdef SWIGRUNTIME_DEBUG 5102 printf(
"SWIG_InitializeModule: found and overwrite type %s \n", type->name);
5106 type = swig_module.type_initial[i];
5110 cast = swig_module.cast_initial[i];
5111 while (cast->type) {
5114 #ifdef SWIGRUNTIME_DEBUG 5115 printf(
"SWIG_InitializeModule: look cast %s\n", cast->type->name);
5117 if (swig_module.next != &swig_module) {
5118 ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
5119 #ifdef SWIGRUNTIME_DEBUG 5120 if (ret) printf(
"SWIG_InitializeModule: found cast %s\n", ret->name);
5124 if (type == swig_module.type_initial[i]) {
5125 #ifdef SWIGRUNTIME_DEBUG 5126 printf(
"SWIG_InitializeModule: skip old type %s\n", ret->name);
5133 #ifdef SWIGRUNTIME_DEBUG 5134 if (ocast) printf(
"SWIG_InitializeModule: skip old cast %s\n", ret->name);
5136 if (!ocast) ret = 0;
5141 #ifdef SWIGRUNTIME_DEBUG 5142 printf(
"SWIG_InitializeModule: adding cast %s\n", cast->type->name);
5145 type->cast->prev = cast;
5146 cast->next = type->cast;
5153 swig_module.types[i] = type;
5155 swig_module.types[i] = 0;
5157 #ifdef SWIGRUNTIME_DEBUG 5158 printf(
"**** SWIG_InitializeModule: Cast List ******\n");
5159 for (i = 0; i < swig_module.size; ++i) {
5162 printf(
"SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
5163 while (cast->type) {
5164 printf(
"SWIG_InitializeModule: cast type %s\n", cast->type->name);
5168 printf(
"---- Total casts: %d\n",j);
5170 printf(
"**** SWIG_InitializeModule: Cast List ******\n");
5180 SWIG_PropagateClientData(
void) {
5183 static int init_run = 0;
5185 if (init_run)
return;
5188 for (i = 0; i < swig_module.size; i++) {
5189 if (swig_module.types[i]->clientdata) {
5190 equiv = swig_module.types[i]->cast;
5192 if (!equiv->converter) {
5193 if (equiv->type && !equiv->type->clientdata)
5194 SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
5196 equiv = equiv->next;
5217 #define SWIG_newvarlink() SWIG_Python_newvarlink() 5218 #define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr) 5219 #define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants) 5227 PyObject *(*get_attr)(void);
5228 int (*set_attr)(PyObject *);
5237 SWIGINTERN PyObject *
5239 #if PY_VERSION_HEX >= 0x03000000 5240 return PyUnicode_InternFromString(
"<Swig global variables>");
5242 return PyString_FromString(
"<Swig global variables>");
5246 SWIGINTERN PyObject *
5248 #if PY_VERSION_HEX >= 0x03000000 5249 PyObject *str = PyUnicode_InternFromString(
"(");
5253 for (var = v->vars; var; var=var->next) {
5254 tail = PyUnicode_FromString(var->name);
5255 joined = PyUnicode_Concat(str, tail);
5260 tail = PyUnicode_InternFromString(
", ");
5261 joined = PyUnicode_Concat(str, tail);
5267 tail = PyUnicode_InternFromString(
")");
5268 joined = PyUnicode_Concat(str, tail);
5273 PyObject *str = PyString_FromString(
"(");
5275 for (var = v->vars; var; var=var->next) {
5276 PyString_ConcatAndDel(&str,PyString_FromString(var->name));
5277 if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(
", "));
5279 PyString_ConcatAndDel(&str,PyString_FromString(
")"));
5287 PyObject *str = swig_varlink_str(v);
5288 fprintf(fp,
"Swig global variables ");
5289 fprintf(fp,
"%s\n", tmp = SWIG_Python_str_AsChar(str));
5290 SWIG_Python_str_DelForPy3(tmp);
5306 SWIGINTERN PyObject *
5308 PyObject *res = NULL;
5311 if (strcmp(var->name,n) == 0) {
5312 res = (*var->get_attr)();
5317 if (res == NULL && !PyErr_Occurred()) {
5318 PyErr_Format(PyExc_AttributeError,
"Unknown C global variable '%s'", n);
5328 if (strcmp(var->name,n) == 0) {
5329 res = (*var->set_attr)(p);
5334 if (res == 1 && !PyErr_Occurred()) {
5335 PyErr_Format(PyExc_AttributeError,
"Unknown C global variable '%s'", n);
5340 SWIGINTERN PyTypeObject*
5341 swig_varlink_type(
void) {
5342 static char varlink__doc__[] =
"Swig var link object";
5343 static PyTypeObject varlink_type;
5344 static int type_init = 0;
5346 const PyTypeObject tmp = {
5348 #if PY_VERSION_HEX >= 0x03000000 5349 PyVarObject_HEAD_INIT(NULL, 0)
5351 PyObject_HEAD_INIT(NULL)
5354 (
char *)
"swigvarlink",
5357 (destructor) swig_varlink_dealloc,
5358 (printfunc) swig_varlink_print,
5359 (getattrfunc) swig_varlink_getattr,
5360 (setattrfunc) swig_varlink_setattr,
5362 (reprfunc) swig_varlink_repr,
5368 (reprfunc) swig_varlink_str,
5378 #if PY_VERSION_HEX >= 0x02020000 5379 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
5381 #if PY_VERSION_HEX >= 0x02030000 5384 #if PY_VERSION_HEX >= 0x02060000 5387 #if PY_VERSION_HEX >= 0x03040000 5394 #if PY_VERSION_HEX >= 0x02050000 5402 #if PY_VERSION_HEX < 0x02020000 5403 varlink_type.ob_type = &PyType_Type;
5405 if (PyType_Ready(&varlink_type) < 0)
5409 return &varlink_type;
5413 SWIGINTERN PyObject *
5414 SWIG_Python_newvarlink(
void) {
5419 return ((PyObject*) result);
5423 SWIG_Python_addvarlink(PyObject *p,
char *name, PyObject *(*get_attr)(
void),
int (*set_attr)(PyObject *p)) {
5427 size_t size = strlen(name)+1;
5428 gv->name = (
char *)malloc(size);
5430 strncpy(gv->name,name,size);
5431 gv->get_attr = get_attr;
5432 gv->set_attr = set_attr;
5439 SWIGINTERN PyObject *
5440 SWIG_globals(
void) {
5441 static PyObject *_SWIG_globals = 0;
5442 if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink();
5443 return _SWIG_globals;
5452 SWIG_Python_InstallConstants(PyObject *d,
swig_const_info constants[]) {
5455 for (i = 0; constants[i].type; ++i) {
5456 switch(constants[i].type) {
5457 case SWIG_PY_POINTER:
5458 obj = SWIG_InternalNewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
5460 case SWIG_PY_BINARY:
5461 obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
5468 PyDict_SetItemString(d, constants[i].name, obj);
5479 SWIG_Python_FixMethods(PyMethodDef *methods,
5484 for (i = 0; methods[i].ml_name; ++i) {
5485 const char *c = methods[i].ml_doc;
5487 c = strstr(c,
"swig_ptr: ");
5491 const char *name = c + 10;
5492 for (j = 0; const_table[j].type; ++j) {
5493 if (strncmp(const_table[j].name, name,
5494 strlen(const_table[j].name)) == 0) {
5495 ci = &(const_table[j]);
5500 void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0;
5502 size_t shift = (ci->ptype) - types;
5504 size_t ldoc = (c - methods[i].ml_doc);
5505 size_t lptr = strlen(ty->name)+2*
sizeof(
void*)+2;
5506 char *ndoc = (
char*)malloc(ldoc + lptr + 10);
5509 strncpy(buff, methods[i].ml_doc, ldoc);
5511 strncpy(buff,
"swig_ptr: ", 10);
5513 SWIG_PackVoidPtr(buff, ptr, ty->name, lptr);
5514 methods[i].ml_doc = ndoc;
5535 #if PY_VERSION_HEX >= 0x03000000 5541 PyObject *m, *d, *md;
5542 #if PY_VERSION_HEX >= 0x03000000 5543 static struct PyModuleDef SWIG_module = {
5544 # if PY_VERSION_HEX >= 0x03020000 5545 PyModuleDef_HEAD_INIT,
5548 PyObject_HEAD_INIT(NULL)
5565 #if defined(SWIGPYTHON_BUILTIN) 5569 static PyGetSetDef this_getset_def = {
5570 (
char *)
"this", &SwigPyBuiltin_ThisClosure, NULL, NULL, NULL
5572 static SwigPyGetSet thisown_getset_closure = {
5573 (PyCFunction) SwigPyObject_own,
5574 (PyCFunction) SwigPyObject_own
5576 static PyGetSetDef thisown_getset_def = {
5577 (
char *)
"thisown", SwigPyBuiltin_GetterClosure, SwigPyBuiltin_SetterClosure, NULL, &thisown_getset_closure
5579 PyObject *metatype_args;
5580 PyTypeObject *builtin_pytype;
5581 int builtin_base_count;
5584 PyGetSetDescrObject *static_getset;
5585 PyTypeObject *metatype;
5587 PyObject *public_interface, *public_symbol;
5588 PyObject *this_descr;
5589 PyObject *thisown_descr;
5593 (void)builtin_pytype;
5594 (void)builtin_base_count;
5595 (void)builtin_basetype;
5597 (void)static_getset;
5601 metatype_args = Py_BuildValue(
"(s(O){})",
"SwigPyObjectType", &PyType_Type);
5602 assert(metatype_args);
5603 metatype = (PyTypeObject *) PyType_Type.tp_call((PyObject *) &PyType_Type, metatype_args, NULL);
5605 Py_DECREF(metatype_args);
5606 metatype->tp_setattro = (setattrofunc) &SwigPyObjectType_setattro;
5607 assert(PyType_Ready(metatype) >= 0);
5611 SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial);
5613 #if PY_VERSION_HEX >= 0x03000000 5614 m = PyModule_Create(&SWIG_module);
5616 m = Py_InitModule((
char *) SWIG_name, SwigMethods);
5619 md = d = PyModule_GetDict(m);
5622 SWIG_InitializeModule(0);
5624 #ifdef SWIGPYTHON_BUILTIN 5625 SwigPyObject_stype = SWIG_MangledTypeQuery(
"_p_SwigPyObject");
5626 assert(SwigPyObject_stype);
5629 SwigPyObject_stype->clientdata = &SwigPyObject_clientdata;
5630 SwigPyObject_clientdata.pytype = SwigPyObject_TypeOnce();
5631 }
else if (SwigPyObject_TypeOnce()->tp_basicsize != cd->pytype->tp_basicsize) {
5632 PyErr_SetString(PyExc_RuntimeError,
"Import error: attempted to load two incompatible swig-generated modules.");
5633 # if PY_VERSION_HEX >= 0x03000000 5641 this_descr = PyDescr_NewGetSet(SwigPyObject_type(), &this_getset_def);
5645 thisown_descr = PyDescr_NewGetSet(SwigPyObject_type(), &thisown_getset_def);
5646 (void)thisown_descr;
5648 public_interface = PyList_New(0);
5650 (void)public_symbol;
5652 PyDict_SetItemString(md,
"__all__", public_interface);
5653 Py_DECREF(public_interface);
5654 for (i = 0; SwigMethods[i].ml_name != NULL; ++i)
5655 SwigPyBuiltin_AddPublicSymbol(public_interface, SwigMethods[i].ml_name);
5656 for (i = 0; swig_const_table[i].name != 0; ++i)
5657 SwigPyBuiltin_AddPublicSymbol(public_interface, swig_const_table[i].name);
5660 SWIG_InstallConstants(d,swig_const_table);
5662 #if PY_VERSION_HEX >= 0x03000000