This is a Rust wrapper for the Nordic nrfxlib driver, specifically libbsd for the nRF9160.
Any binary which uses this crate is going to need to provide a bunch of C library functions, because Nordic's library expects them. This includes, but is not limited to:
You can't just link newlib
, because that defines memset
which clashes with
the compiler-builtin
crate's definition of memset
. Answers on a post-card
please - for now I'm using
tinyrlibc.
Because of Cargo bug #5730, we require you to pre-install the 'bindgen' command line tool:
console
$ cargo install bindgen
In your own program or library, you can then depend on this crate in the usual fashion:
toml
[dependencies]
nrfxlib-sys = "0.2"
Or you might prefer the higher-level wrapper by 42 Technology:
toml
[dependencies]
nrfxlib = "0.2"
Any of the code outside the ./third_party
folder is under the Blue Oak
Licence. Any code inside the ./third_party
folder (include
the Nordic nrfxlib) has its own LICENCE file.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, shall be licensed as above, without any additional terms or conditions.