diff options
author | Diego Barrios Romero <eldruin@gmail.com> | 2018-11-07 20:22:02 +0100 |
---|---|---|
committer | Diego Barrios Romero <eldruin@gmail.com> | 2018-11-07 20:22:02 +0100 |
commit | ec0ffcaa6d49ae7c6e3256f9742e996d7b0752c4 (patch) | |
tree | 69e5e9ee40c98b65b59dfc57709ab35222b50fd1 /src/lib.rs | |
parent | 42cc99c1835ff2838a25218ae57e47649846af9d (diff) | |
download | ads1x1x-async-ec0ffcaa6d49ae7c6e3256f9742e996d7b0752c4.tar.gz ads1x1x-async-ec0ffcaa6d49ae7c6e3256f9742e996d7b0752c4.tar.xz ads1x1x-async-ec0ffcaa6d49ae7c6e3256f9742e996d7b0752c4.zip |
Add data rate type
Diffstat (limited to 'src/lib.rs')
-rw-r--r-- | src/lib.rs | 19 |
1 files changed, 19 insertions, 0 deletions
@@ -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 { |