Show / Hide Table of Contents

Class Counter

Inheritance
Object
Counter
Inherited Members
Object.Equals(Object)
Object.Equals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Object.ReferenceEquals(Object, Object)
Object.ToString()
Namespace: Hal
Assembly: FRC.Hal.dll
Syntax
[NativeInterface(typeof(ICounter))]
public static class Counter

Methods

| Improve this Doc View Source

ClearDownSource(Int32)

Declaration
public static void ClearDownSource(int counterHandle)
Parameters
Type Name Description
Int32 counterHandle
| Improve this Doc View Source

ClearUpSource(Int32)

Declaration
public static void ClearUpSource(int counterHandle)
Parameters
Type Name Description
Int32 counterHandle
| Improve this Doc View Source

Free(Int32)

Declaration
public static void Free(int counterHandle)
Parameters
Type Name Description
Int32 counterHandle
| Improve this Doc View Source

Get(Int32)

Declaration
public static int Get(int counterHandle)
Parameters
Type Name Description
Int32 counterHandle
Returns
Type Description
Int32
| Improve this Doc View Source

GetDirection(Int32)

Declaration
public static bool GetDirection(int counterHandle)
Parameters
Type Name Description
Int32 counterHandle
Returns
Type Description
Boolean
| Improve this Doc View Source

GetPeriod(Int32)

Declaration
public static double GetPeriod(int counterHandle)
Parameters
Type Name Description
Int32 counterHandle
Returns
Type Description
Double
| Improve this Doc View Source

GetSamplesToAverage(Int32)

Declaration
public static int GetSamplesToAverage(int counterHandle)
Parameters
Type Name Description
Int32 counterHandle
Returns
Type Description
Int32
| Improve this Doc View Source

GetStopped(Int32)

Declaration
public static bool GetStopped(int counterHandle)
Parameters
Type Name Description
Int32 counterHandle
Returns
Type Description
Boolean
| Improve this Doc View Source

Initialize(CounterMode, out Int32)

Declaration
public static int Initialize(CounterMode mode, out int index)
Parameters
Type Name Description
CounterMode mode
Int32 index
Returns
Type Description
Int32
| Improve this Doc View Source

Reset(Int32)

Declaration
public static void Reset(int counterHandle)
Parameters
Type Name Description
Int32 counterHandle
| Improve this Doc View Source

SetAverageSize(Int32, Int32)

Declaration
public static void SetAverageSize(int counterHandle, int size)
Parameters
Type Name Description
Int32 counterHandle
Int32 size
| Improve this Doc View Source

SetDownSource(Int32, Int32, AnalogTriggerType)

Declaration
public static void SetDownSource(int counterHandle, int digitalSourceHandle, AnalogTriggerType analogTriggerType)
Parameters
Type Name Description
Int32 counterHandle
Int32 digitalSourceHandle
AnalogTriggerType analogTriggerType
| Improve this Doc View Source

SetDownSourceEdge(Int32, Boolean, Boolean)

Declaration
public static void SetDownSourceEdge(int counterHandle, bool risingEdge, bool fallingEdge)
Parameters
Type Name Description
Int32 counterHandle
Boolean risingEdge
Boolean fallingEdge
| Improve this Doc View Source

SetExternalDirectionMode(Int32)

Declaration
public static void SetExternalDirectionMode(int counterHandle)
Parameters
Type Name Description
Int32 counterHandle
| Improve this Doc View Source

SetMaxPeriod(Int32, Double)

Declaration
public static void SetMaxPeriod(int counterHandle, double maxPeriod)
Parameters
Type Name Description
Int32 counterHandle
Double maxPeriod
| Improve this Doc View Source

SetPulseLengthMode(Int32, Double)

Declaration
public static void SetPulseLengthMode(int counterHandle, double threshold)
Parameters
Type Name Description
Int32 counterHandle
Double threshold
| Improve this Doc View Source

SetReverseDirection(Int32, Boolean)

Declaration
public static void SetReverseDirection(int counterHandle, bool reverseDirection)
Parameters
Type Name Description
Int32 counterHandle
Boolean reverseDirection
| Improve this Doc View Source

SetSamplesToAverage(Int32, Int32)

Declaration
public static void SetSamplesToAverage(int counterHandle, int samplesToAverage)
Parameters
Type Name Description
Int32 counterHandle
Int32 samplesToAverage
| Improve this Doc View Source

SetSemiPeriodMode(Int32, Boolean)

Declaration
public static void SetSemiPeriodMode(int counterHandle, bool highSemiPeriod)
Parameters
Type Name Description
Int32 counterHandle
Boolean highSemiPeriod
| Improve this Doc View Source

SetUpdateWhenEmpty(Int32, Boolean)

Declaration
public static void SetUpdateWhenEmpty(int counterHandle, bool enabled)
Parameters
Type Name Description
Int32 counterHandle
Boolean enabled
| Improve this Doc View Source

SetUpDownMode(Int32)

Declaration
public static void SetUpDownMode(int counterHandle)
Parameters
Type Name Description
Int32 counterHandle
| Improve this Doc View Source

SetUpSource(Int32, Int32, AnalogTriggerType)

Declaration
public static void SetUpSource(int counterHandle, int digitalSourceHandle, AnalogTriggerType analogTriggerType)
Parameters
Type Name Description
Int32 counterHandle
Int32 digitalSourceHandle
AnalogTriggerType analogTriggerType
| Improve this Doc View Source

SetUpSourceEdge(Int32, Boolean, Boolean)

Declaration
public static void SetUpSourceEdge(int counterHandle, bool risingEdge, bool fallingEdge)
Parameters
Type Name Description
Int32 counterHandle
Boolean risingEdge
Boolean fallingEdge
  • Improve this Doc
  • View Source
Back to top Copyright © 2017 RobotDotNet