Files
OpenCellular/include/pwm.h
Randall Spangler bdf7da5b08 Initial sources import 1/3
source files mainly done by Randall.

Signed-off-by: Randall Spangler <rspangler@chromium.org>

Change-Id: Iaff83a842b17f3350fb6f2a3f1597ad4c29bd12a
2011-12-07 19:10:02 +00:00

29 lines
746 B
C

/* Copyright (c) 2011 The Chromium OS Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
/* PWM module for Chrome EC */
#ifndef __CROS_EC_PWM_H
#define __CROS_EC_PWM_H
#include "common.h"
/* Initializes the module. */
int pwm_init(void);
/* Gets the current fan RPM. */
int pwm_get_fan_rpm(void);
/* Sets the target fan RPM. Pass -1 to set fan to maximum. */
int pwm_set_fan_target_rpm(int rpm);
/* Sets the keyboard backlight percentage (0=off, 100=max). */
int pwm_set_keyboard_backlight(int percent);
/* Sets the power LED brightness to the specified percent (0=off, 100=max). */
int pwm_set_power_led(int percent);
#endif /* __CROS_EC_PWM_H */