diff options
author | Em Shotton <matthewshotton88@gmail.com> | 2024-08-22 11:46:00 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-22 20:46:00 +0200 |
commit | d3af2b6074e8698b8b83f79758e23070a8b80002 (patch) | |
tree | ac89b6256ddbbe1ce4b5e3d5edcc4ae3b4165315 /src/construction.rs | |
parent | 256309063a39836e5c30b3e9eb2c3bcd3246bdec (diff) | |
download | ads1x1x-async-d3af2b6074e8698b8b83f79758e23070a8b80002.tar.gz ads1x1x-async-d3af2b6074e8698b8b83f79758e23070a8b80002.tar.xz ads1x1x-async-d3af2b6074e8698b8b83f79758e23070a8b80002.zip |
Update the terms "master/slave" to "controller/target" (#29)
* Update the terms "master/slave" to "controller/target" throughout to align with the i2c bus specification v.7
* Updated Changelog
* Change word casing
---------
Co-authored-by: Em Shotton <matthewfshotton@gmail.com>
Co-authored-by: Diego Barrios Romero <eldruin@gmail.com>
Diffstat (limited to 'src/construction.rs')
-rw-r--r-- | src/construction.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/construction.rs b/src/construction.rs index 13a2350..84ee8ad 100644 --- a/src/construction.rs +++ b/src/construction.rs @@ -1,6 +1,6 @@ //! Constructor/destructor functions. -use crate::{ic, mode, Ads1x1x, Config, FullScaleRange, SlaveAddr}; +use crate::{ic, mode, Ads1x1x, Config, FullScaleRange, TargetAddr}; use core::marker::PhantomData; macro_rules! impl_new_destroy { @@ -10,7 +10,7 @@ macro_rules! impl_new_destroy { I2C: embedded_hal::i2c::I2c<Error = E>, { /// Create a new instance of the device in OneShot mode. - pub fn $create(i2c: I2C, address: SlaveAddr) -> Self { + pub fn $create(i2c: I2C, address: TargetAddr) -> Self { Ads1x1x { i2c, address: address.bits(), |