Characteristic Locus
Inheritance System.Object > Adxl362.ActivityInactivityControlMask
Inherited Members System.Object.ToString() System.Object.Equals(System.Object) System.Object.Equals(System.Object, System.Object) System.Object.ReferenceEquals(System.Object, System.Object) System.Object.GetHashCode() System.Object.GetType() System.Object.MemberwiseClone()
Namespace Meadow.Foundation.Sensors.Motion
Assembly Adxl362.dll

Syntax

protected static class ActivityInactivityControlMask

Fields

ActivityEnable

Determine if the activity functionality is enabled (1) or disabled (0).

Declaration
public const byte ActivityEnable = 1

Field Value

Type Description
System.Byte

ActivityMode

Determine is activity mode is in reference (1) or absolute mode (0).

Declaration
public const byte ActivityMode = 2

Field Value

Type Description
System.Byte

DefaultMode

Default mode.

Declaration
public const byte DefaultMode = 0

Field Value

Type Description
System.Byte

Remarks

Activity and inactivity detection are both enabled, and their interrupts (if mapped) must be acknowledged by the host processor by reading the STATUS register. Auto-sleep is disabled in this mode. Use this mode for free fall detection applications.

InactivityEnable

Determine if inactivity mode is enabled (1) or disabled (0).

Declaration
public const byte InactivityEnable = 4

Field Value

Type Description
System.Byte

Inactivitymode

Determine is inactivity mode is in reference (1) or absolute mode (0).

Declaration
public const byte Inactivitymode = 8

Field Value

Type Description
System.Byte

LinkedMode

Link activity and inactivity.

Declaration
public const byte LinkedMode = 16

Field Value

Type Description
System.Byte

Remarks

Activity and inactivity detection are linked sequentially such that only one is enabled at a time. Their interrupts (if mapped) must be acknowledged by the host processor by reading the STATUS register.

LoopMode

Declaration
public const byte LoopMode = 48

Field Value

Type Description
System.Byte

Remarks

Activity and inactivity detection are linked sequentially such that only one is enabled at a time, and their interrupts are internally acknowledged (do not need to be serviced by the host processor). To use either linked or looped mode, both ACT_EN (Bit 0) and INACT_EN (Bit 2) must be set to 1; otherwise, the default mode is used. For additional information, refer to the Linking Activity and Inactivity Detection section.