#embedded-hal #embedded-hal-driver

no-std afe4400

An embedded-hal compatible driver for the TI AFE4400 pulse oximetry analog front-end chip

5 releases (3 breaking)

Uses old Rust 2015

0.4.0 Mar 24, 2020
0.3.1 Aug 24, 2018
0.3.0 Jul 19, 2018
0.2.0 Apr 6, 2018
0.1.0 Apr 6, 2018

#16 in #smoother

Download history 2/week @ 2023-11-08 7/week @ 2023-11-15 5/week @ 2023-11-22 22/week @ 2023-11-29 11/week @ 2023-12-20 5/week @ 2023-12-27 6/week @ 2024-01-03 3/week @ 2024-01-17 13/week @ 2024-01-24 15/week @ 2024-01-31 2/week @ 2024-02-07 51/week @ 2024-02-14 177/week @ 2024-02-21

251 downloads per month

MIT license

15KB
236 lines

AFE4400

crates-io-shield

The AFE4400 is a pulse oximetry analog front-end chip by TI. It controls LED switching, has ambient light cancellation, and other very nice features for pulse oximetry applications.

The main communication interface for the AFE4400 is via SPI. However, there are also some digital pins that can be configured for smoother operation; two are required and four are for additional diagnostic value.

Mandatory

  • adc_pdn: The powerdown pin; should be held high (not floating!) for the duration of operation.
  • adc_rdy: The "ADC Ready" pin, indicating a sample is ready for reading. It is useful to use adc_rdy as the driver for an edge-triggered interrupt.

Optional

  • daig_end: Diagnostics complete
  • adc_done: ADC conversion complete
  • led_err: Connection issue with the LEDs
  • sensor_err: Connection issue with the photodiodes

lib.rs:

AFE4400 - an embedded-hal compatible driver

The AFE4400 is a pulse oximetry analog front-end chip by TI. It controls LED switching, has ambient light cancellation, and other very nice features for pulse oximetry applications.

The main communication interface for the AFE4400 is via SPI. However, there are also some digital pins that can be configured for smoother operation; two are required and four are for additional diagnostic value.

Mandatory

  • adc_pdn: The powerdown pin; should be held high (not floating!) for the duration of operation.
  • adc_rdy: The "ADC Ready" pin, indicating a sample is ready for reading. It is useful to use adc_rdy as the driver for an edge-triggered interrupt.

Optional

  • daig_end: Diagnostics complete
  • adc_done: ADC conversion complete
  • led_err: Connection issue with the LEDs
  • sensor_err: Connection issue with the photodiodes

Dependencies

~71KB