visa-api-rs 0.4.2

VISA (VPP-4.3) visa.h type aliases and constants, with no implementation.
Documentation
  • Coverage
  • 0.72%
    1 out of 138 items documented0 out of 0 items with examples
  • Size
  • Source code size: 21.3 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 523.7 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 2s Average build duration of successful builds.
  • all releases: 2s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Repository
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • alxhill

visa-api-rs

The visa.h vocabulary from VPP-4.3: the C-ABI type aliases (ViStatus, ViSession, ViAttr, …) and VI_* constants under their visa.h names. No dependencies, no behaviour and #![no_std], so a crate that loads a vendor VISA library at runtime can use it without linking any VISA implementation.

It is part of rsvisa-rs, which takes its constant values from here.

Each constant has the Rust type of the place it is used:

Group Type
Completion and error codes (VI_SUCCESS*, VI_WARN_*, VI_ERROR_*) ViStatus
Attribute ids (VI_ATTR_*) ViAttr
Attribute values (VI_ASRL_*, VI_INTF_*, VI_STATE_*, VI_TMO_*) the attribute's value type (ViUInt16, ViInt16, ViUInt32)
Lock types (VI_NO_LOCK, VI_EXCLUSIVE_LOCK, VI_SHARED_LOCK) ViAccessMode
viFlush masks (VI_READ_BUF, VI_IO_IN_BUF, …) ViUInt16
viAssertTrigger protocols (VI_TRIG_PROT_*) ViUInt16
VI_TRUE, VI_FALSE ViBoolean
VI_NULL ViObject
VI_FIND_BUFLEN usize

Widen an attribute value to ViAttrState with .into() to pass it to viSetAttribute.