OpenBIC
OpenSource Bridge-IC
power_status.h
Go to the documentation of this file.
1/*
2 * Copyright (c) Meta Platforms, Inc. and affiliates.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17#ifndef POWER_STATUS_H
18#define POWER_STATUS_H
19
20#include <stdbool.h>
21#include <stdint.h>
22
23void set_DC_status(uint8_t gpio_num);
24bool get_DC_status();
30void set_post_status(uint8_t gpio_num);
31void set_post_complete(bool status);
32bool get_post_status();
33void set_CPU_power_status(uint8_t gpio_num);
34bool CPU_power_good();
35void set_post_thread();
36void set_vr_monitor_status(bool value);
38void set_P3V3_E1S_power_status(uint8_t gpio_num);
40void set_P12V_E1S_power_status(uint8_t gpio_num);
42
43#endif
uint8_t status
Definition: mctp_ctrl.h:1
bool get_DC_on_delayed_status()
Definition: power_status.c:57
bool P12V_E1S_power_good()
Definition: power_status.c:137
void set_DC_off_delayed_status()
Definition: power_status.c:62
bool get_vr_monitor_status()
Definition: power_status.c:115
void set_DC_status(uint8_t gpio_num)
Definition: power_status.c:36
void set_P3V3_E1S_power_status(uint8_t gpio_num)
Definition: power_status.c:120
void set_post_complete(bool status)
Definition: power_status.c:78
void set_post_status(uint8_t gpio_num)
Definition: power_status.c:72
bool CPU_power_good()
Definition: power_status.c:95
bool get_DC_status()
Definition: power_status.c:42
void set_P12V_E1S_power_status(uint8_t gpio_num)
Definition: power_status.c:131
bool get_DC_off_delayed_status()
Definition: power_status.c:67
void set_DC_on_delayed_status()
Definition: power_status.c:47
void set_DC_on_delayed_status_with_value(bool status)
Definition: power_status.c:52
bool P3V3_E1S_power_good()
Definition: power_status.c:126
void set_vr_monitor_status(bool value)
Definition: power_status.c:110
void set_CPU_power_status(uint8_t gpio_num)
Definition: power_status.c:89
bool get_post_status()
Definition: power_status.c:84
void set_post_thread()
Definition: power_status.c:100