Function nvapi_hi::sys::gpu::cooler::private::NvAPI_GPU_SetCoolerLevels [] [src]

pub unsafe fn NvAPI_GPU_SetCoolerLevels(
    hPhysicalGPU: NvPhysicalGpuHandle,
    coolerIndex: u32,
    pCoolerLevels: *const NV_GPU_SETCOOLER_LEVEL_V1
) -> i32

Undocumented function. Set the cooler levels for all coolers or a specific cooler associated with the selected GPU.

Coolers are indexed 0 to NVAPI_MAX_COOLERS_PER_GPU-1. Every cooler level with non-zero currentpolicy gets applied.

The new level should be in the range of minlevel and maxlevel retrieved from GetCoolerSettings API or between and NVAPI_MIN_COOLER_LEVEL to MAX_COOLER_LEVEL. To set level for a specific cooler set the coolerIndex to the appropriate cooler index. To set level for all coolers set coolerIndex to NVAPI_COOLER_TARGET_ALL.

NOTE: To lock the fan speed independent of the temperature or performance changes set the cooler currentPolicy to NVAPI_COOLER_POLICY_MANUAL else set it to the current policy retrieved from the GetCoolerSettings API.