CTS-SAT-1-OBC-Firmware
Loading...
Searching...
No Matches
eps_power_management.h
Go to the documentation of this file.
1#ifndef INCLUDE_GUARD__EPS_POWER_MANAGEMENT_H__
2#define INCLUDE_GUARD__EPS_POWER_MANAGEMENT_H__
3
5
6extern uint16_t EPS_current_mA_threshhold[32];
7
9
10uint8_t EPS_log_pdu_json(const EPS_struct_pdu_housekeeping_data_eng_t *EPS_pdu_housekeeping_data_eng); // Log the PDU housekeeping data in JSON format
11
12void EPS_channel_management(const EPS_struct_pdu_housekeeping_data_eng_t *EPS_pdu_housekeeping_data_eng); // Monitor the power consumption of each channel and disable any channels that exceed a certain threshold
13
14void EPS_CMD_power_management_set_current_threshold(uint8_t channel, uint16_t threshold); // Set the EPS power management threshold for the current of a specific channel
15#endif
uint16_t EPS_current_mA_threshhold[32]
Definition eps_power_management.c:13
uint8_t EPS_monitor_and_disable_overcurrent_channels()
Monitors the power consumption of each channel and logs the data in JSON format.
Definition eps_power_management.c:58
void EPS_channel_management(const EPS_struct_pdu_housekeeping_data_eng_t *EPS_pdu_housekeeping_data_eng)
Monitor the power consumption of each channel and disable any channels that exceed a certain threshol...
Definition eps_power_management.c:121
uint8_t EPS_log_pdu_json(const EPS_struct_pdu_housekeeping_data_eng_t *EPS_pdu_housekeeping_data_eng)
Logs the PDU housekeeping data in JSON format.
Definition eps_power_management.c:86
void EPS_CMD_power_management_set_current_threshold(uint8_t channel, uint16_t threshold)
Definition eps_power_management.c:177
Definition eps_types.h:120