summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/lib.rs19
1 files changed, 19 insertions, 0 deletions
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 {