Skip to content

Commit

Permalink
add Eq derives
Browse files Browse the repository at this point in the history
  • Loading branch information
robamu committed Sep 13, 2022
1 parent 3422801 commit c9b5f6a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ type ExtClkd = ExternallyClocked;
//==================================================================================================

/// Clock modes for the MAX116XX devices
#[derive(Debug, PartialEq, Clone, Copy)]
#[derive(Debug, PartialEq, Eq, Clone, Copy)]
pub enum ClockMode {
/// Internally timed, CNVST only needs to be pulsed for 40ns.
/// CNVST Configuration: CNVST active low
Expand All @@ -148,7 +148,7 @@ pub enum ClockMode {
}

/// Voltage reference modes
#[derive(Debug, PartialEq, Clone, Copy)]
#[derive(Debug, PartialEq, Eq, Clone, Copy)]
pub enum VoltageRefMode {
/// Auto-Shutdown is on, wake-up delay of 65 us
InternalRefWithWakeupDelay = 0b00,
Expand All @@ -167,15 +167,15 @@ pub enum AveragingConversions {
}

/// Specifies the number of returned result in single scan mode
#[derive(Debug, PartialEq, Clone, Copy)]
#[derive(Debug, PartialEq, Eq, Clone, Copy)]
pub enum AveragingResults {
FourResults = 0b00,
EightResults = 0b01,
TwelveResults = 0b10,
SixteenResults = 0b11,
}

#[derive(Debug, PartialEq, Clone, Copy)]
#[derive(Debug, PartialEq, Eq, Clone, Copy)]
pub enum ScanMode {
Scan0ToChannelN = 0b00,
ScanChannelNToHighest = 0b01,
Expand Down

0 comments on commit c9b5f6a

Please sign in to comment.