Enum McpAdc.Type

java.lang.Object
java.lang.Enum<McpAdc.Type>
com.diozero.devices.McpAdc.Type
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<McpAdc.Type>, java.lang.constant.Constable
Enclosing class:
McpAdc

public static enum McpAdc.Type
extends java.lang.Enum<McpAdc.Type>
The MCP3204/3208 devices offer the choice of using the analog input channels configured as single-ended inputs or pseudo-differential pairs. When used in the pseudo-differential mode, each channel pair (i.e., CH0 and CH1, CH2 and CH3 etc.) is programmed to be the IN+ and IN- inputs as part of the command string transmitted to the device. The IN+ input can range from IN- to (VREF + IN-). The IN- input is limited to ?100 mV from the VSS rail. The IN- input can be used to cancel small signal common-mode noise which is present on both the IN+ and IN- inputs. When operating in the pseudo-differential mode, if the voltage level of IN+ is equal to or less than IN-, the resultant code will be 000h. If the voltage at IN+ is equal to or greater than {[VREF + (IN-)] - 1 LSB}, then the output code will be FFFh. If the voltage level at IN- is more than 1 LSB below VSS, the voltage level at the IN+ input will have to go below VSS to see the 000h output code. Conversely, if IN- is more than 1 LSB above VSS, then the FFFh code will not be seen unless the IN+ input level goes above VREF level.
  • Nested Class Summary

    Nested classes/interfaces inherited from class java.lang.Enum

    java.lang.Enum.EnumDesc<E extends java.lang.Enum<E>>
  • Enum Constant Summary

    Enum Constants 
    Enum Constant Description
    MCP3001  
    MCP3002  
    MCP3004  
    MCP3008  
    MCP3201  
    MCP3202  
    MCP3204  
    MCP3208  
    MCP3301  
    MCP3302  
    MCP3304  
  • Method Summary

    Modifier and Type Method Description
    int getMaxFreq2v7()  
    int getMaxFreq5v0()  
    int getNumPins()  
    int getRange()  
    int getResolution()  
    boolean isSigned()  
    static McpAdc.Type valueOf​(java.lang.String name)
    Returns the enum constant of this type with the specified name.
    static McpAdc.Type[] values()
    Returns an array containing the constants of this enum type, in the order they are declared.

    Methods inherited from class java.lang.Enum

    clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

  • Method Details

    • values

      public static McpAdc.Type[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static McpAdc.Type valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
      java.lang.NullPointerException - if the argument is null
    • getNumPins

      public int getNumPins()
    • getResolution

      public int getResolution()
    • getMaxFreq2v7

      public int getMaxFreq2v7()
    • getMaxFreq5v0

      public int getMaxFreq5v0()
    • isSigned

      public boolean isSigned()
    • getRange

      public int getRange()