From ec0ffcaa6d49ae7c6e3256f9742e996d7b0752c4 Mon Sep 17 00:00:00 2001 From: Diego Barrios Romero Date: Wed, 7 Nov 2018 20:22:02 +0100 Subject: Add data rate type --- src/lib.rs | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/src/lib.rs b/src/lib.rs index ea9a383..00ffd72 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -74,6 +74,25 @@ pub mod mode { pub struct Continuous(()); } +/// Data rate +#[derive(Debug, Clone)] +pub enum DataRate { + /// 128 SPS + Sps128, + /// 250 SPS + Sps250, + /// 490 SPS + Sps490, + /// 920 SPS + Sps920, + /// 1600 SPS (default) + Sps1600, + /// 2400 SPS + Sps2400, + /// 3300 SPS + Sps3300 +} + /// Possible slave addresses #[derive(Debug, Clone)] pub enum SlaveAddr { -- cgit v1.2.3-54-g00ecf