/// <summary>Get a description for a analog action</summary> /// <param name="string">The string to append the description to</param> /// <param name="analogAction">The analog action</param> public static void ATAnalogActionDescription(DeviceTypes.ATString @string, DeviceTypes.ATAnalogActionUnsafe analogAction) { var _arg0 = ReferenceEquals(@string, null) ? IntPtr.Zero : @string._Instance; var _arg1 = ReferenceEquals(analogAction, null) ? IntPtr.Zero : analogAction._Instance; _Internal.ATAnalogActionDescription(_arg0, _arg1); }
/// <summary>Validate an analog action</summary> /// <param name="analogAction">The analog action value to validate</param> /// <returns>`true` if valid</returns> public static bool ATAnalogActionValidate(DeviceTypes.ATAnalogActionUnsafe analogAction) { var _arg0 = ReferenceEquals(analogAction, null) ? IntPtr.Zero : analogAction._Instance; var _ret = _Internal.ATAnalogActionValidate(_arg0); return(_ret); }
public ATAnalogActionUnsafe(DeviceTypes.ATAnalogActionUnsafe _0) { _Instance = Marshal.AllocHGlobal(sizeof(DeviceTypes.ATAnalogActionUnsafe._Internal)); _ownsNativeInstance = true; NativeToManagedMap[_Instance] = this; *((DeviceTypes.ATAnalogActionUnsafe._Internal *)_Instance) = *((DeviceTypes.ATAnalogActionUnsafe._Internal *)_0._Instance); }
/// <summary>Get the data for an analog action</summary> /// <param name="data">Will be populated with the data</param> /// <param name="analogAction">The analog action to encode</param> /// <returns>`true` if successful</returns> public static bool ATAnalogActionGetData(DeviceTypes.ATMutableBytes data, DeviceTypes.ATAnalogActionUnsafe analogAction) { var _arg0 = ReferenceEquals(data, null) ? IntPtr.Zero : data._Instance; var _arg1 = ReferenceEquals(analogAction, null) ? IntPtr.Zero : analogAction._Instance; var _ret = _Internal.ATAnalogActionGetData(_arg0, _arg1); return(_ret); }
/// <summary>Get an analog action from data</summary> /// <param name="data">The data</param> /// <param name="analogAction">On return, contains the analog action</param> /// <returns>`true` if successful</returns> public static bool ATAnalogActionParseData(DeviceTypes.ATBytes data, DeviceTypes.ATAnalogActionUnsafe analogAction) { if (ReferenceEquals(data, null)) { throw new ArgumentNullException("data", "Cannot be null because it is passed by value."); } var _arg0 = data._Instance; var _arg1 = ReferenceEquals(analogAction, null) ? IntPtr.Zero : analogAction._Instance; var _ret = _Internal.ATAnalogActionParseData(_arg0, _arg1); return(_ret); }
/// <summary>Apply an analog action to the input config</summary> /// <param name="inputConfig">The input config to apply the action to</param> /// <param name="action">The action to apply</param> /// <param name="currentValue">The current analog input value for this port, for calibrate now actions. Ignored for other actions</param> /// <returns>If successful, `true`, otherwise `false`</returns> public static bool ATAnalogInputConfigApplyAnalogAction(DeviceConfiguration.ATAnalogInputConfigUnsafe inputConfig, DeviceTypes.ATAnalogActionUnsafe action, short currentValue) { var _arg0 = ReferenceEquals(inputConfig, null) ? IntPtr.Zero : inputConfig._Instance; var _arg1 = ReferenceEquals(action, null) ? IntPtr.Zero : action._Instance; var _ret = _Internal.ATAnalogInputConfigApplyAnalogAction(_arg0, _arg1, currentValue); return(_ret); }