Expand description
§plctag-sys
native libplctag binding
§Build
You can build from source or use pre-built binaries. It depends on how you set ENV variables.
- Use pre-built binaries
- Build from external source
- Build from embedded source
§Use pre-built binaries
Download latest binary release of libplctag and extract it to somewhere of your computer.
Set environment variable LIBPLCTAG_PATH to the directory of extracted binaries.
§Build from git submodules
If environment variable LIBPLCTAG_PATH does not present, will build from git submodules libplctag.
§Static build
env PLCTAG_STATIC: use static build, true if the value is one of 1, true, on, yes
env PLCTAG_DYNAMIC: use dynamic build, true if the value is one of 1, true, on, yes
Will check if static build in the order of:
PLCTAG_STATIC, PLCTAG_DYNAMIC, rustflags: +crt-static
Constants§
- PLCTAG_
DEBUG_ DETAIL - PLCTAG_
DEBUG_ ERROR - PLCTAG_
DEBUG_ INFO - PLCTAG_
DEBUG_ NONE - PLCTAG_
DEBUG_ SPEW - PLCTAG_
DEBUG_ WARN - PLCTAG_
ERR_ ABORT - PLCTAG_
ERR_ BAD_ CONFIG - PLCTAG_
ERR_ BAD_ CONNECTION - PLCTAG_
ERR_ BAD_ DATA - PLCTAG_
ERR_ BAD_ DEVICE - PLCTAG_
ERR_ BAD_ GATEWAY - PLCTAG_
ERR_ BAD_ PARAM - PLCTAG_
ERR_ BAD_ REPLY - PLCTAG_
ERR_ BAD_ STATUS - PLCTAG_
ERR_ BUSY - PLCTAG_
ERR_ CLOSE - PLCTAG_
ERR_ CREATE - PLCTAG_
ERR_ DUPLICATE - PLCTAG_
ERR_ ENCODE - PLCTAG_
ERR_ MUTEX_ DESTROY - PLCTAG_
ERR_ MUTEX_ INIT - PLCTAG_
ERR_ MUTEX_ LOCK - PLCTAG_
ERR_ MUTEX_ UNLOCK - PLCTAG_
ERR_ NOT_ ALLOWED - PLCTAG_
ERR_ NOT_ FOUND - PLCTAG_
ERR_ NOT_ IMPLEMENTED - PLCTAG_
ERR_ NO_ DATA - PLCTAG_
ERR_ NO_ MATCH - PLCTAG_
ERR_ NO_ MEM - PLCTAG_
ERR_ NO_ RESOURCES - PLCTAG_
ERR_ NULL_ PTR - PLCTAG_
ERR_ OPEN - PLCTAG_
ERR_ OUT_ OF_ BOUNDS - PLCTAG_
ERR_ PARTIAL - PLCTAG_
ERR_ READ - PLCTAG_
ERR_ REMOTE_ ERR - PLCTAG_
ERR_ THREAD_ CREATE - PLCTAG_
ERR_ THREAD_ JOIN - PLCTAG_
ERR_ TIMEOUT - PLCTAG_
ERR_ TOO_ LARGE - PLCTAG_
ERR_ TOO_ SMALL - PLCTAG_
ERR_ UNSUPPORTED - PLCTAG_
ERR_ WINSOCK - PLCTAG_
ERR_ WRITE - PLCTAG_
EVENT_ ABORTED - PLCTAG_
EVENT_ CREATED - PLCTAG_
EVENT_ DESTROYED - PLCTAG_
EVENT_ MAX - PLCTAG_
EVENT_ READ_ COMPLETED - PLCTAG_
EVENT_ READ_ STARTED - PLCTAG_
EVENT_ WRITE_ COMPLETED - PLCTAG_
EVENT_ WRITE_ STARTED - PLCTAG_
STATUS_ OK - PLCTAG_
STATUS_ PENDING
Functions§
- plc_
tag_ ⚠abort - plc_
tag_ ⚠check_ lib_ version - plc_
tag_ ⚠create - plc_
tag_ ⚠create_ ex - plc_
tag_ ⚠decode_ error - plc_
tag_ ⚠destroy - plc_
tag_ ⚠get_ bit - plc_
tag_ ⚠get_ byte_ array_ attribute - plc_
tag_ ⚠get_ float32 - plc_
tag_ ⚠get_ float64 - plc_
tag_ ⚠get_ int8 - plc_
tag_ ⚠get_ int16 - plc_
tag_ ⚠get_ int32 - plc_
tag_ ⚠get_ int64 - plc_
tag_ ⚠get_ int_ attribute - plc_
tag_ ⚠get_ raw_ bytes - plc_
tag_ ⚠get_ size - plc_
tag_ ⚠get_ string - plc_
tag_ ⚠get_ string_ capacity - plc_
tag_ ⚠get_ string_ length - plc_
tag_ ⚠get_ string_ total_ length - plc_
tag_ ⚠get_ uint8 - plc_
tag_ ⚠get_ uint16 - plc_
tag_ ⚠get_ uint32 - plc_
tag_ ⚠get_ uint64 - plc_
tag_ ⚠lock - plc_
tag_ ⚠read - plc_
tag_ ⚠register_ callback - plc_
tag_ ⚠register_ callback_ ex - plc_
tag_ ⚠register_ logger - plc_
tag_ ⚠set_ bit - plc_
tag_ ⚠set_ debug_ level - plc_
tag_ ⚠set_ float32 - plc_
tag_ ⚠set_ float64 - plc_
tag_ ⚠set_ int8 - plc_
tag_ ⚠set_ int16 - plc_
tag_ ⚠set_ int32 - plc_
tag_ ⚠set_ int64 - plc_
tag_ ⚠set_ int_ attribute - plc_
tag_ ⚠set_ raw_ bytes - plc_
tag_ ⚠set_ size - plc_
tag_ ⚠set_ string - plc_
tag_ ⚠set_ uint8 - plc_
tag_ ⚠set_ uint16 - plc_
tag_ ⚠set_ uint32 - plc_
tag_ ⚠set_ uint64 - plc_
tag_ ⚠shutdown - plc_
tag_ ⚠status - plc_
tag_ ⚠unlock - plc_
tag_ ⚠unregister_ callback - plc_
tag_ ⚠unregister_ logger - plc_
tag_ ⚠write