def METHOD_NAME(self, speed):
    """
    Sets the fan speed
    Args:
        speed: An integer, the percentage of full fan speed to set fan to,
               in the range 0 (off) to 100 (full speed)
    Returns:
        A boolean, True if speed is set successfully, False if not
    Note:
        Depends on pwm or target mode is selected:
        1) pwm = speed_pc * 255             <-- Currently use this mode.
        2) target_pwm = speed_pc * 100 / 255
         2.1) set pwm{}_enable to 3
    """
    pwm = speed * 255 / 100
    fan_target_sysfs_name = "pwm{}".format(self.fan_index+1)
    fan_target_sysfs_path = self.__search_file_by_name(
        FAN_PATH.format(self.fan_tray_index + 1), fan_target_sysfs_name)
    return self.__write_txt_file(fan_target_sysfs_path, int(pwm))