Crate plctag_sys

Crate plctag_sys 

Source
Expand description

§plctag-sys

native libplctag binding

crates.io docs build license

§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