RawSampleInt

Background call to read the ADC at full bit depth

Call Enable() first

Parameters

  • This macro has no parameters

  • Return value

RawAverageByte

Background call to read the ADC as a byte average sample over time

Call Enable() before this

Parameters

  • BYTE NumSamples
  • BYTE DelayUs
  • Number of micro seconds in between taking each sample

  • Return value

GetString

Reads the ADC as a direct voltage and returns as as String

Parameters

  • This macro has no parameters

  • Return value
  • GetAverageByte

Function call to read the ADC as a byte average sample over time

Parameters

  • BYTE NumSamples
  • BYTE DelayUs
  • Number of micro seconds in between taking each sample

  • Return value

RawAverageInt

Background call to read the ADC as a full width average sample over time

Call Enable() before this

Parameters


  • Return value

GetAverageInt

Function call to read the ADC as a full width average sample over time

Parameters

  • BYTE NumSamples
  • BYTE DelayUs
  • Number of micro seconds in between taking each sample

  • Return value

GetVoltage

Reads the ADC as a direct voltage

Parameters

  • This macro has no parameters

  • Return value

RawEnable

Enables and configures the ADC channel to be an analogue input.

Only one ADC channel can be enabled at a time. Any RAW functions will reference the last enabled channel only.

Parameters

  • This macro has no parameters

  • Return value
  • This call does not return a value

RawSampleByte

Background call to read the ADC as a byte

Call Enable() before this

Parameters

  • This macro has no parameters

  • Return value

GetInt

Blocking call to read the ADC at full bit depth

Parameters

  • This macro has no parameters

  • Return value

RawDisable

Disables the previously enabled ADC channel and converts back to digital mode.

Parameters

  • This macro has no parameters

  • Return value
  • This call does not return a value

GetByte

Blocking call to read the ADC as a byte

Parameters

  • This macro has no parameters

  • Return value

Simulation macro reference

GetSampleBits

Gets the number of bits per sample

Parameters

  • This macro has no parameters

  • Return value

GetSpeedFilter

Gets the Conversion speed filter string

Use in Component.Property.SetFilter()

Parameters

  • This macro has no parameters

  • Return value

SetProperties

Set the VRef options and voltage, ConvSpeed and AcqTime for the ADC component.

Parameters

  • INT VRef10Ms
  • Voltage Reference x10 mV - Default 500 = 5V
  • BOOL VRefOpt
  • External VRef 0=Disabled, 1=Enabled
  • INT ConvSpdOpt
  • Conversion Speed Setting - Refer to numbered list
  • INT Aquisitions
  • Aquisition time in micro seconds to precharge before sampling

  • Return value
  • This call does not return a value

SetChannel

Sets the channel ID for the component

Parameters

  • INT ChannelId
  • Chaannel starting at 0, -1 is unconnected

  • Return value
  • This call does not return a value

comandi per Analog IN

Riccardo Monti