pub struct LTC681X<B, CS, P, T, const L: usize>{ /* private fields */ }
Expand description
Client for LTC681X IC
Implementations§
source§impl<B, CS, P, T, const L: usize> LTC681X<B, CS, P, T, L>
impl<B, CS, P, T, const L: usize> LTC681X<B, CS, P, T, L>
sourcepub fn enable_sdo_polling(self) -> LTC681X<B, CS, SDOLinePolling, T, L>
pub fn enable_sdo_polling(self) -> LTC681X<B, CS, SDOLinePolling, T, L>
Enables SDO ADC polling
After entering a conversion command, the SDO line is driven low when the device is busy performing conversions. SDO is pulled high when the device completes conversions.
Trait Implementations§
source§impl<B, CS, P, T, const L: usize> LTC681XClient<T, L> for LTC681X<B, CS, P, T, L>
impl<B, CS, P, T, const L: usize> LTC681XClient<T, L> for LTC681X<B, CS, P, T, L>
source§fn start_conv_cells(
&mut self,
mode: ADCMode,
cells: T::CellSelection,
dcp: bool
) -> Result<CommandTime, Error<B, CS>>
fn start_conv_cells( &mut self, mode: ADCMode, cells: T::CellSelection, dcp: bool ) -> Result<CommandTime, Error<B, CS>>
source§fn start_conv_gpio(
&mut self,
mode: ADCMode,
channels: T::GPIOSelection
) -> Result<CommandTime, Error<B, CS>>
fn start_conv_gpio( &mut self, mode: ADCMode, channels: T::GPIOSelection ) -> Result<CommandTime, Error<B, CS>>
source§fn start_overlap_measurement(
&mut self,
mode: ADCMode,
dcp: bool
) -> Result<(), Error<B, CS>>
fn start_overlap_measurement( &mut self, mode: ADCMode, dcp: bool ) -> Result<(), Error<B, CS>>
source§fn measure_internal_parameters(
&mut self,
mode: ADCMode,
group: StatusGroup
) -> Result<CommandTime, Error<B, CS>>
fn measure_internal_parameters( &mut self, mode: ADCMode, group: StatusGroup ) -> Result<CommandTime, Error<B, CS>>
source§fn write_register(
&mut self,
register: T::Register,
data: [[u8; 6]; L]
) -> Result<(), Error<B, CS>>
fn write_register( &mut self, register: T::Register, data: [[u8; 6]; L] ) -> Result<(), Error<B, CS>>
source§fn write_configuration(
&mut self,
config: [Configuration; L]
) -> Result<(), Self::Error>
fn write_configuration( &mut self, config: [Configuration; L] ) -> Result<(), Self::Error>
source§fn read_voltages<R: RegisterLocator<T> + 'static>(
&mut self,
locator: R
) -> Result<Vec<Vec<Voltage<T>, 18>, L>, Self::Error>where
T: 'static,
fn read_voltages<R: RegisterLocator<T> + 'static>(
&mut self,
locator: R
) -> Result<Vec<Vec<Voltage<T>, 18>, L>, Self::Error>where
T: 'static,
source§fn read_internal_device_parameters(
&mut self
) -> Result<Vec<InternalDeviceParameters, L>, Self::Error>
fn read_internal_device_parameters( &mut self ) -> Result<Vec<InternalDeviceParameters, L>, Self::Error>
type Error = Error<B, CS>
source§impl<B, CS, T, const L: usize> PollClient for LTC681X<B, CS, SDOLinePolling, T, L>
impl<B, CS, T, const L: usize> PollClient for LTC681X<B, CS, SDOLinePolling, T, L>
Auto Trait Implementations§
impl<B, CS, P, T, const L: usize> RefUnwindSafe for LTC681X<B, CS, P, T, L>
impl<B, CS, P, T, const L: usize> Send for LTC681X<B, CS, P, T, L>
impl<B, CS, P, T, const L: usize> Sync for LTC681X<B, CS, P, T, L>
impl<B, CS, P, T, const L: usize> Unpin for LTC681X<B, CS, P, T, L>
impl<B, CS, P, T, const L: usize> UnwindSafe for LTC681X<B, CS, P, T, L>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CheckedAs for T
impl<T> CheckedAs for T
source§fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
Casts the value.
source§impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
source§fn checked_cast_from(src: Src) -> Option<Dst>
fn checked_cast_from(src: Src) -> Option<Dst>
Casts the value.
source§impl<Src, Dst> LosslessTryInto<Dst> for Srcwhere
Dst: LosslessTryFrom<Src>,
impl<Src, Dst> LosslessTryInto<Dst> for Srcwhere
Dst: LosslessTryFrom<Src>,
source§fn lossless_try_into(self) -> Option<Dst>
fn lossless_try_into(self) -> Option<Dst>
Performs the conversion.
source§impl<Src, Dst> LossyInto<Dst> for Srcwhere
Dst: LossyFrom<Src>,
impl<Src, Dst> LossyInto<Dst> for Srcwhere
Dst: LossyFrom<Src>,
source§fn lossy_into(self) -> Dst
fn lossy_into(self) -> Dst
Performs the conversion.
source§impl<T> OverflowingAs for T
impl<T> OverflowingAs for T
source§fn overflowing_as<Dst>(self) -> (Dst, bool)where
T: OverflowingCast<Dst>,
fn overflowing_as<Dst>(self) -> (Dst, bool)where
T: OverflowingCast<Dst>,
Casts the value.
source§impl<Src, Dst> OverflowingCastFrom<Src> for Dstwhere
Src: OverflowingCast<Dst>,
impl<Src, Dst> OverflowingCastFrom<Src> for Dstwhere
Src: OverflowingCast<Dst>,
source§fn overflowing_cast_from(src: Src) -> (Dst, bool)
fn overflowing_cast_from(src: Src) -> (Dst, bool)
Casts the value.
source§impl<T> SaturatingAs for T
impl<T> SaturatingAs for T
source§fn saturating_as<Dst>(self) -> Dstwhere
T: SaturatingCast<Dst>,
fn saturating_as<Dst>(self) -> Dstwhere
T: SaturatingCast<Dst>,
Casts the value.
source§impl<Src, Dst> SaturatingCastFrom<Src> for Dstwhere
Src: SaturatingCast<Dst>,
impl<Src, Dst> SaturatingCastFrom<Src> for Dstwhere
Src: SaturatingCast<Dst>,
source§fn saturating_cast_from(src: Src) -> Dst
fn saturating_cast_from(src: Src) -> Dst
Casts the value.
source§impl<T> UnwrappedAs for T
impl<T> UnwrappedAs for T
source§fn unwrapped_as<Dst>(self) -> Dstwhere
T: UnwrappedCast<Dst>,
fn unwrapped_as<Dst>(self) -> Dstwhere
T: UnwrappedCast<Dst>,
Casts the value.
source§impl<Src, Dst> UnwrappedCastFrom<Src> for Dstwhere
Src: UnwrappedCast<Dst>,
impl<Src, Dst> UnwrappedCastFrom<Src> for Dstwhere
Src: UnwrappedCast<Dst>,
source§fn unwrapped_cast_from(src: Src) -> Dst
fn unwrapped_cast_from(src: Src) -> Dst
Casts the value.
source§impl<T> WrappingAs for T
impl<T> WrappingAs for T
source§fn wrapping_as<Dst>(self) -> Dstwhere
T: WrappingCast<Dst>,
fn wrapping_as<Dst>(self) -> Dstwhere
T: WrappingCast<Dst>,
Casts the value.
source§impl<Src, Dst> WrappingCastFrom<Src> for Dstwhere
Src: WrappingCast<Dst>,
impl<Src, Dst> WrappingCastFrom<Src> for Dstwhere
Src: WrappingCast<Dst>,
source§fn wrapping_cast_from(src: Src) -> Dst
fn wrapping_cast_from(src: Src) -> Dst
Casts the value.