Releases: fpagliughi/phidget-rs
Release list
Version 0.4.0
- Attach & Detach callbacks are now device-specific for all the devices
- Callbacks get a mutable reference to the specific device, not to a
PhidgetRef
- Callbacks get a mutable reference to the specific device, not to a
- Added support for Pressure Sensors
- Added examples for digital and voltage (analog) outputs
- Fixed serde deserialization of
PhidgetInfo PhidgetInfo::device_labelchanged to aStringfromOption<String>- Bumped -sys crate's MSRV to v1.73.0
- Bumped
clapdependency to v4.4 for utils and examples - #14 Added thermocouple-type parameter to temperature sensor example.
Version 0.3.1
- Added
TryFrom<&PhidgetRef>forGenericPhidget - Re-exported
GenericPhidgetto the top-level module.
Version 0.3.0
-
[Breaking] Changes to the
Phidgettrait and non-owning containers.GenericPhidgetis now an owning wrapper.PhidgetRefis now the non-owning reference to a genericPhidgetHandle- Callbacks now get a
PhidgetRef, which is also!Sendand!Sync. Thus, they can not "escape" from the callback thread. - The
GenericPhidgetcan currently only be created from aPhidgetRef, and implementsSend.- It manages the lifetime of the handle with
ffi::Phidget_retain()andffi::Phidget_release().
- It manages the lifetime of the handle with
- To keep a Phidget from a hotplug add event, convert the
PhidgetRefto aGenericPhidgetand send it out of the callback.
-
The
Phidgettrait no longer requires theSendtrait, though most device types should manually implementSendto be useful. -
The
Phidgettrait supports reading and writing device labels to Flash -
Added DeviceId type and Phidget::device_id() query
-
Themperature senor has getters and setters for
RtdType,RtdWireSetup, andThermocoupleType. -
Added serde build feature to support serializing data type like
PhidgetInfo, etc -
Base types moved to a new types module
-
The -sys crate uses the default installer location for phidget22.lib on Windows by default.
-
#13 Implemented Fidget Manager
- The
Phidgettrait now requires:fn as_mut_handle(&mut self) -> PhidgetHandle;
- The
-
Added an example for hotplug events
-
The CLI utils build feaure no longer enabled by default.
-
The
-syscrate:- Uses the default install location for the
phidget22.liblibrary on Windows,C:\Program Files\Phidgets\Phidget22.- No longer a need to set the
PHIDGET_ROOTenvironment variable for the default install.
- No longer a need to set the
- Uses the default install location for the
Version 0.2.0
- Digital In & Out state consistently represented with a u8
- #11 Examples in the documentation.
- Minor updates and output formatting to the example apps
- Created a config file for the Rust 'typos' utility, and used it to run a spell check.
- Updates to network server monitoring with an example program
Version 0.1.4
- #8 Add voltage ratio input
- Added 32-bit bindings in -sys crate.
- Added stepper motor with example. Missing test and async functionality
Version 0.1.3
Fixed a breaking change in the 0.1.x line.
- Exporting devices (DigitalInput, DigitalOutput, etc) at the crate root to fix accidental breaking change in v0.1.x
Version 0.1.2
- Bumped MSRV to 1.73
- Seperated voltage-io to voltage-input and ouput modules.
- Seperated digital-io to digital-input and ouput modules.
- Completion of available functions from in digital-input and ouput binding.
- Moved devices to specific module to keep the root directory clean.
- Added support for optional
PHIDGET_ROOTto point to the directory of the phidgets22 library.
Version 0.1.1
Incremental additions:
- Added attach/detach setup functions for the devices
- Removed generic callback setters from
Phidgettrait to allow it to be used as an object, likeVec<Box<Phidget>> - Phidgets implement
Sendtrait - Added a
GenericPhidgettype - Downgraded clap to v3.2 (from 4.x) to allow for lower/older MRSV (now Rust v0.59.0)
Version 0.1.0
Initial release.
Basic support for:
- Temperature
- Humidity
- Voltage in/out
- Digital in/out
- Hubs