diff --git a/src/lib.rs b/src/lib.rs index 94798c7..0eb832b 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -12,6 +12,12 @@ struct MB85RC> { i2c: T, } +enum i2c_frequency { + standard_mode = 100_000, + fast_mode = 400_000, + fast_mode_plus = 1_000_000, +} + impl MB85RC { pub fn new(i2c: T) -> Self { MB85RC { i2c } @@ -27,3 +33,17 @@ impl Read for MB85RC { todo!() } } +fn get_device_id() -> [u8; 3] { + let mut id: [u8; 3] = [1, 2, 3]; + + id +} + + +fn byte_write(write_address: u8, data: u8) -> u8 { + + let mut read_byte: u8 = 0x00; + + read_byte + +}