#sys #level #libicsneo #bindings #devices #system

sys libicsneo-sys

Rust system level crate for libicsneo

21 releases

0.2.0 Jun 30, 2023
0.1.19 Jun 23, 2023
0.1.17 Nov 21, 2022
0.1.6 Oct 25, 2022

#37 in #sys

29 downloads per month
Used in 3 crates

MIT license

8.5MB
140K SLoC

C++ 77K SLoC // 0.2% comments C 36K SLoC // 0.1% comments Visual Studio Project 11K SLoC Python 7K SLoC // 0.4% comments C# 3K SLoC // 0.1% comments Java 2K SLoC // 0.1% comments Visual Studio Solution 1.5K SLoC Bazel 721 SLoC // 0.1% comments GNU Style Assembly 656 SLoC // 0.1% comments Assembly 372 SLoC // 0.2% comments SWIG 291 SLoC // 0.0% comments Rust 213 SLoC // 0.1% comments Shell 137 SLoC // 0.4% comments Batch 47 SLoC // 0.0% comments Bitbake 34 SLoC // 0.3% comments Snakemake 26 SLoC // 0.3% comments

Contains (Zip file, 1.5MB) mkfs.xlsx, (Zip file, 780KB) mkfatimg.zip

libicsneo-sys

System level crate for libicsneo. This crate utilizes cbindgen for automatic bindings. This crate is currently not ready for production and in very early stages.

How to use

Add to your cargo project:

$ cargo add libicsneo-sys

Example use case of icsneo_findAllDevices():

use libicsneo_sys::*;

let mut device_count = 255;
let mut devices = [
    neodevice_t {
        device: 0 as *mut std::os::raw::c_void,
        handle: 0i32,
        serial: [0i8; 7],
        type_: 0,
    }; 255];
unsafe {
    icsneo_findAllDevices(devices.as_mut_ptr(), &mut device_count);
}
println!("Found {} device(s)", device_count);

License - MIT

Copyright Intrepid Control Systems, Inc.

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

No runtime deps