def nvmlUnitSetLedState(unit, color):
    r"""
    /**
     * Set the LED state for the unit. The LED can be either green (0) or amber (1).
     *
     * For S-class products.
     * Requires root/admin permissions.
     *
     * This operation takes effect immediately.
     *
     *
     * <b>Current S-Class products don't provide unique LEDs for each unit. As such, both front
     * and back LEDs will be toggled in unison regardless of which unit is specified with this command.</b>
     *
     * See \ref nvmlLedColor_t for available colors.
     *
     * @param unit                                 The identifier of the target unit
     * @param color                                The target LED color
     *
     * @return
     *         - \ref NVML_SUCCESS                 if the LED color has been set
     *         - \ref NVML_ERROR_UNINITIALIZED     if the library has not been successfully initialized
     *         - \ref NVML_ERROR_INVALID_ARGUMENT  if \a unit or \a color is invalid
     *         - \ref NVML_ERROR_NOT_SUPPORTED     if this is not an S-class product
     *         - \ref NVML_ERROR_NO_PERMISSION     if the user doesn't have permission to perform this operation
     *         - \ref NVML_ERROR_UNKNOWN           on any unexpected error
     *
     * @see nvmlUnitGetLedState()
     */
    nvmlReturn_t DECLDIR nvmlUnitSetLedState
    """
    fn = _nvmlGetFunctionPointer("nvmlUnitSetLedState")
    ret = fn(unit, _nvmlLedColor_t(color))
    _nvmlCheckReturn(ret)
    return None
r"""
    /**
     * Set the LED state for the unit. The LED can be either green (0) or amber (1).
     *
     * For S-class products.
     * Requires root/admin permissions.
     *
     * This operation takes effect immediately.
     *
     *
     * <b>Current S-Class products don't provide unique LEDs for each unit. As such, both front
     * and back LEDs will be toggled in unison regardless of which unit is specified with this command.</b>
     *
     * See \ref nvmlLedColor_t for available colors.
     *
     * @param unit                                 The identifier of the target unit
     * @param color                                The target LED color
     *
     * @return
     *         - \ref NVML_SUCCESS                 if the LED color has been set
     *         - \ref NVML_ERROR_UNINITIALIZED     if the library has not been successfully initialized
     *         - \ref NVML_ERROR_INVALID_ARGUMENT  if \a unit or \a color is invalid
     *         - \ref NVML_ERROR_NOT_SUPPORTED     if this is not an S-class product
     *         - \ref NVML_ERROR_NO_PERMISSION     if the user doesn't have permission to perform this operation
     *         - \ref NVML_ERROR_UNKNOWN           on any unexpected error
     *
     * @see nvmlUnitGetLedState()
     */
    nvmlReturn_t DECLDIR nvmlUnitSetLedState