private static unsafe int DoDisplayClear(IntPtr aPtr, uint aVersion) { GCHandle gch = GCHandle.FromIntPtr(aPtr); DvServiceLinnCoUkUi2 self = (DvServiceLinnCoUkUi2)gch.Target; self.DisplayClear(aVersion); return(0); }
private static unsafe int DoSetDisplayLedOff(IntPtr aPtr, uint aVersion, int aaOff) { GCHandle gch = GCHandle.FromIntPtr(aPtr); DvServiceLinnCoUkUi2 self = (DvServiceLinnCoUkUi2)gch.Target; bool aOff = (aaOff != 0); self.SetDisplayLedOff(aVersion, aOff); return(0); }
private static unsafe int DoSetDisplaySleep(IntPtr aPtr, uint aVersion, int aaEnabled) { GCHandle gch = GCHandle.FromIntPtr(aPtr); DvServiceLinnCoUkUi2 self = (DvServiceLinnCoUkUi2)gch.Target; bool aEnabled = (aaEnabled != 0); self.SetDisplaySleep(aVersion, aEnabled); return(0); }
private static unsafe int DoSetDisplayScrollText(IntPtr aPtr, uint aVersion, int aaDisplayScrollText) { GCHandle gch = GCHandle.FromIntPtr(aPtr); DvServiceLinnCoUkUi2 self = (DvServiceLinnCoUkUi2)gch.Target; bool aDisplayScrollText = (aaDisplayScrollText != 0); self.SetDisplayScrollText(aVersion, aDisplayScrollText); return(0); }
private static unsafe int DoSetDisplayUpsideDown(IntPtr aPtr, uint aVersion, int aaUpsideDown) { GCHandle gch = GCHandle.FromIntPtr(aPtr); DvServiceLinnCoUkUi2 self = (DvServiceLinnCoUkUi2)gch.Target; bool aUpsideDown = (aaUpsideDown != 0); self.SetDisplayUpsideDown(aVersion, aUpsideDown); return(0); }
private static unsafe int DoSetInfraredTerminalCommands(IntPtr aPtr, uint aVersion, char *aaCommands) { GCHandle gch = GCHandle.FromIntPtr(aPtr); DvServiceLinnCoUkUi2 self = (DvServiceLinnCoUkUi2)gch.Target; string aCommands = Marshal.PtrToStringAnsi((IntPtr)aaCommands); self.SetInfraredTerminalCommands(aVersion, aCommands); return(0); }
private static unsafe int DoSetDisplayBrightnessAuto(IntPtr aPtr, uint aVersion, int aaBrightnessAuto) { GCHandle gch = GCHandle.FromIntPtr(aPtr); DvServiceLinnCoUkUi2 self = (DvServiceLinnCoUkUi2)gch.Target; bool aBrightnessAuto = (aaBrightnessAuto != 0); self.SetDisplayBrightnessAuto(aVersion, aBrightnessAuto); return(0); }
private static unsafe int DoDisplayLedOff(IntPtr aPtr, uint aVersion, int *aaOff) { GCHandle gch = GCHandle.FromIntPtr(aPtr); DvServiceLinnCoUkUi2 self = (DvServiceLinnCoUkUi2)gch.Target; bool aOff; self.DisplayLedOff(aVersion, out aOff); *aaOff = (aOff ? 1 : 0); return(0); }
private static unsafe int DoDisplayScrollText(IntPtr aPtr, uint aVersion, int *aaDisplayScrollTextEnabled) { GCHandle gch = GCHandle.FromIntPtr(aPtr); DvServiceLinnCoUkUi2 self = (DvServiceLinnCoUkUi2)gch.Target; bool aDisplayScrollTextEnabled; self.DisplayScrollText(aVersion, out aDisplayScrollTextEnabled); *aaDisplayScrollTextEnabled = (aDisplayScrollTextEnabled ? 1 : 0); return(0); }
private static unsafe int DoDisplayBrightness(IntPtr aPtr, uint aVersion, uint *aaBrightness) { GCHandle gch = GCHandle.FromIntPtr(aPtr); DvServiceLinnCoUkUi2 self = (DvServiceLinnCoUkUi2)gch.Target; uint aBrightness; self.DisplayBrightness(aVersion, out aBrightness); *aaBrightness = aBrightness; return(0); }
private static unsafe int DoInfraredTerminalCommands(IntPtr aPtr, uint aVersion, char **aaCommands) { GCHandle gch = GCHandle.FromIntPtr(aPtr); DvServiceLinnCoUkUi2 self = (DvServiceLinnCoUkUi2)gch.Target; string aCommands; self.InfraredTerminalCommands(aVersion, out aCommands); *aaCommands = (char *)Marshal.StringToHGlobalAnsi(aCommands).ToPointer(); return(0); }
private static unsafe int DoGetLightSensorData(IntPtr aPtr, uint aVersion, uint *aaLightLevel) { GCHandle gch = GCHandle.FromIntPtr(aPtr); DvServiceLinnCoUkUi2 self = (DvServiceLinnCoUkUi2)gch.Target; uint aLightLevel; self.GetLightSensorData(aVersion, out aLightLevel); *aaLightLevel = aLightLevel; return(0); }