openUBMC Chip Abstract Layer
V0.1
载入中...
搜索中...
未找到
PWM
保持现状
接口用途
散热,但是未见使用(因为现在的风扇控制没有使用BMC芯片直出的PWM接口?)
对比
<tt>read</tt>
原接口
uint32_t read(uint32_t chan_num)
const
;
新接口
uint32_t read(int32_t index);
变更说明 参数命名变更
<tt>write</tt>
原接口
void
write(uint32_t chan_num, uint32_t ratio)
const
;
新接口
int32_t write(int32_t index, uint32_t ratio);
变更说明 参数命名变更
<tt>fan_speed_rst_hold</tt>
原接口
using
PWM_RST_CTRL_S =
struct
tag_pwm_rst_ctrl_s {
uint32_t rst_hold_en;
/* PWM风扇转速复位保持功能: 0 - 关闭 1 - 打开 */
uint32_t ratio;
/* PWM占空比(0 - 1000(高精度模式)) */
uint32_t rsvd[2];
/* Reserved for future use */
};
void
fan_speed_rst_hold(
const
PWM_RST_CTRL_S *rst_ctrl)
const
;
新接口
void
rst_hold(uint32_t rst_hold_en, uint32_t ratio);
变更说明 参数命名变更
制作者
1.9.8