diff options
Diffstat (limited to 'src/devices')
| -rw-r--r-- | src/devices/fc0013.rs | 8 | ||||
| -rw-r--r-- | src/devices/mod.rs | 11 | ||||
| -rw-r--r-- | src/devices/r820t.rs | 8 |
3 files changed, 27 insertions, 0 deletions
diff --git a/src/devices/fc0013.rs b/src/devices/fc0013.rs new file mode 100644 index 0000000..bd5ab50 --- /dev/null +++ b/src/devices/fc0013.rs @@ -0,0 +1,8 @@ +use super::Device; + +pub const FC0013: Device = Device { + NAME: "Fitipower FC0013", + I2C_ADDR: 0xc6, + CHECK_ADDR: 0x00, + CHECK_VAL: 0xa3 +}; diff --git a/src/devices/mod.rs b/src/devices/mod.rs new file mode 100644 index 0000000..5221bec --- /dev/null +++ b/src/devices/mod.rs @@ -0,0 +1,11 @@ +pub mod fc0013; +pub mod r820t; + +#[allow(non_snake_case)] +pub struct Device { + pub NAME: &'static str, + pub I2C_ADDR: u8, + pub CHECK_ADDR: u8, + pub CHECK_VAL: u8 +} + diff --git a/src/devices/r820t.rs b/src/devices/r820t.rs new file mode 100644 index 0000000..094816a --- /dev/null +++ b/src/devices/r820t.rs @@ -0,0 +1,8 @@ +use super::Device; + +pub const R820T: Device = Device { + NAME: "Rafael Micro R820T", + I2C_ADDR: 0x34, + CHECK_ADDR: 0x00, + CHECK_VAL: 0x69 +}; |
