saikamaldoss

ADL Fan speed GET and SET

Discussion created by saikamaldoss on Feb 24, 2010
Latest reply on Apr 29, 2010 by saikamaldoss
not working and dont know how to set settings for my card in c#

I have been working on this ADL SDK for past 8 months and not getting anywhere.

I am getting ODclock info get and ODper_get etc but FAN control get & Set is not working and i can get ODclockinfo but not able to set and not sure how to do its function and how to store values in the srtuct.

 

internal delegate int ADL_Overdrive5_ODPerformanceLevels_Get( int AdapterIndex, int iDefault, IntPtr lpOdPerformanceLevels);

?

[StructLayout(LayoutKind.Sequential)]

internal struct ADLODPerformanceLevel

{

internal int iEngineClock;

internal int iMemoryClock;

internal int iVddc;

}

[StructLayout(LayoutKind.Sequential)]

internal struct ADLODPerformanceLevel aLevels

{

internal DisplayID;

internal int iSize;

internal int iReserved;

internal ADLODPerformanceLevel aLevels;

}

?

[DllImport(Atiadlxx_FileName)]

internal static extern int ADL_Overdrive5_ODPerformanceLevels_Get( int AdapterIndex, int iDefault, IntPtr lpOdPerformanceLevels);

?

internal static ADL_Overdrive5_ODPerformanceLevels_Get ADL_Overdrive5_ODPerformanceLevels_Get { get { if (!ADL_Overdrive5_ODPerformanceLevels_Get_Check && null == ADL_Overdrive5_ODPerformanceLevels_Get_) { ADL_Overdrive5_ODPerformanceLevels_Get_Check = true; if (ADLCheckLibrary.IsFunctionValid("ADL_Overdrive5_ODPerformanceLevels_Get")) { ADL_Overdrive5_ODPerformanceLevels_Get_ = ADLImport.ADL_Overdrive5_ODPerformanceLevels_Get; } } return ADL_Overdrive5_ODPerformanceLevels_Get_; } } private static ADL_Overdrive5_ODPerformanceLevels_Get ADL_Overdrive5_ODPerformanceLevels_Get_ = null; private static bool ADL_Overdrive5_ODPerformanceLevels_Get_Check = false;

 ++++++++++++++++++++++++++++++++++++++++++++++

 

But i dont know if the Struct that i gave is right and how to wright function to Set clock...

Please help me guys

Outcomes