Skip to content

Commit

Permalink
Add api to get psu's fan speed, get_info_all should contain 'Present'…
Browse files Browse the repository at this point in the history
… field.
  • Loading branch information
clarklee-guizhao committed Dec 29, 2019
1 parent 8588ab3 commit de13d17
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion hal_psu.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,12 +135,20 @@ def set_psu_fan_speed_pwm(self, psu_name, pwm):
"""
Set a specific PSU's fan's speed
@param pwm duty cycle, unit is 1%, -1 for failure
@param pwm duty cycle, unit is 1%
@return 0 for success, -1 for failure
"""
pass

def get_fan_speed_pwm(self, psu_name):
"""
Get a specific PSU's fan's speed
@return pwm duty cycle, unit is 1%, -1 for failure
"""
pass

def get_info_all(self):
"""
Get all system PSU's info
Expand All @@ -152,6 +160,7 @@ def get_info_all(self):
"SN": "serial_number_example", # 'N/A'
"PN": "part_number_example", # 'N/A'
"AirFlow": "F2B", # 'N/A'
"Present": "yes" # "no"
"FanSpeed": {
"Value": 4000,
Expand Down

0 comments on commit de13d17

Please sign in to comment.