Rust device driver crate for the MAX116xx 10-bit ADC devices
Go to file
Robin Müller 8eb5b556db
Rust/max116xx-10bit/pipeline/head This commit looks good Details
Merge pull request 'Several improvements' (#1) from simplified-api into main
Reviewed-on: #1
2021-12-14 14:20:04 +01:00
.github added .github ci files 2021-12-12 23:47:47 +01:00
automation add two more toolchains in jenkinsfile 2021-12-14 14:13:45 +01:00
src Merge remote-tracking branch 'origin/main' into simplified-api 2021-12-14 14:06:07 +01:00
.gitignore init commit 2021-12-12 13:16:27 +01:00
CHANGELOG.md Merge remote-tracking branch 'origin/main' into simplified-api 2021-12-14 14:06:07 +01:00
Cargo.toml bump subversion 2021-12-14 14:07:13 +01:00
LICENSE-APACHE added license files 2021-12-12 13:23:40 +01:00
NOTICE First basic device crate done 2021-12-12 13:41:59 +01:00
README.md release v0.1.1 2021-12-13 11:29:26 +01:00

README.md

Crates.io build docs.rs

Rust Maxim 116xx 10-bit ADC device driver crate

This is a platform agnostic Rust driver for the MAX11618-MAX11621, MAX11624 and MAX11625 10-bit ADC devices which uses the embedded-hal traits.

This driver implements basic operations to read raw ADC values:

  • Read ADC values using the SPI clock as an external clock
  • Read ADC values using the End-Of-Conversion (EOC) pin

Currently, the driver only supports operation without a wake-up delay and the EOC read functionality is still limited. Pull requests to improve this are welcome.

Usage

To use this driver, import this crate and an embedded-hal implementation and then instantiate the appropriate device.

The crate uses basic type-level support to prevent using the ADC in a wrong way. The type-level support defaults to an externally clocked device with no wake-up delay.

This crate was tested using the Vorago REB1 development board. You can find an example application here and here.