diff options
| author | Yuval Adam <_@yuv.al> | 2018-07-29 13:31:08 +0300 |
|---|---|---|
| committer | Yuval Adam <_@yuv.al> | 2018-07-29 13:31:08 +0300 |
| commit | c04a539100d278e03490193bdfa76b664b93b2b8 (patch) | |
| tree | 8d27f5db3598c01a8d5468dce6851ee80d7995ba /src/devices/mod.rs | |
| parent | 78d432f07d35f05b5a9c8cba91b2ea794847f898 (diff) | |
Extract devices into separate files
Diffstat (limited to 'src/devices/mod.rs')
| -rw-r--r-- | src/devices/mod.rs | 11 |
1 files changed, 11 insertions, 0 deletions
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 +} + |
