CTS-SAT-1-OBC-Firmware
Loading...
Searching...
No Matches
eps_types_to_json.c File Reference
#include "eps_drivers/eps_types_to_json.h"
#include "eps_drivers/eps_channel_control.h"
#include <stdio.h>
#include <string.h>
#include <stdint.h>
#include <inttypes.h>
#include <stdbool.h>
Include dependency graph for eps_types_to_json.c:

Functions

uint8_t EPS_vpid_eng_TO_json (const EPS_vpid_eng_t *data, char json_output_str[], uint16_t json_output_str_size)
 Convert the EPS_vpid_eng_t struct to a JSON string and write it to json_output_str.
uint8_t EPS_battery_pack_datatype_eng_TO_json (const EPS_battery_pack_datatype_eng_t *data, char json_output_str[], uint16_t json_output_str_size, uint8_t enable_show_unsupported_fields)
uint8_t EPS_conditioning_channel_datatype_eng_TO_json (const EPS_conditioning_channel_datatype_eng_t *data, char json_output_str[], uint16_t json_output_str_size)
uint8_t EPS_conditioning_channel_short_datatype_eng_TO_json (const EPS_conditioning_channel_short_datatype_eng_t *data, char json_output_str[], uint16_t json_output_str_size)
uint8_t EPS_struct_system_status_TO_json (const EPS_struct_system_status_t *data, char json_output_str[], uint16_t json_output_str_size)
uint8_t EPS_struct_pdu_overcurrent_fault_state_TO_json (const EPS_struct_pdu_overcurrent_fault_state_t *data, char json_output_str[], uint16_t json_output_str_size)
uint8_t EPS_struct_pbu_abf_placed_state_TO_json (const EPS_struct_pbu_abf_placed_state_t *data, char json_output_str[], uint16_t json_output_str_size)
uint8_t EPS_struct_pdu_housekeeping_data_eng_TO_json (const EPS_struct_pdu_housekeeping_data_eng_t *data, char json_output_str[], uint16_t json_output_str_size)
uint8_t EPS_struct_single_channel_data_eng_TO_json (const EPS_struct_pdu_housekeeping_data_eng_t *data, const uint8_t eps_channel, char json_output_str[], uint16_t json_output_str_size)
uint8_t EPS_struct_pbu_housekeeping_data_eng_TO_json (const EPS_struct_pbu_housekeeping_data_eng_t *data, char json_output_str[], uint16_t json_output_str_size)
uint8_t EPS_struct_pcu_housekeeping_data_eng_TO_json (const EPS_struct_pcu_housekeeping_data_eng_t *data, char json_output_str[], uint16_t json_output_str_size)
uint8_t EPS_struct_piu_housekeeping_data_eng_TO_json (const EPS_struct_piu_housekeeping_data_eng_t *data, char json_output_str[], uint16_t json_output_str_size)
uint8_t EPS_struct_pdu_housekeeping_data_eng_TO_short_json (const EPS_struct_pdu_housekeeping_data_eng_t *data, char json_output_str[], uint16_t json_output_str_size)
 Convert PDU struct to store JSON for periodic logging.

Function Documentation

◆ EPS_battery_pack_datatype_eng_TO_json()

uint8_t EPS_battery_pack_datatype_eng_TO_json ( const EPS_battery_pack_datatype_eng_t * data,
char json_output_str[],
uint16_t json_output_str_size,
uint8_t enable_show_unsupported_fields )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ EPS_conditioning_channel_datatype_eng_TO_json()

uint8_t EPS_conditioning_channel_datatype_eng_TO_json ( const EPS_conditioning_channel_datatype_eng_t * data,
char json_output_str[],
uint16_t json_output_str_size )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ EPS_conditioning_channel_short_datatype_eng_TO_json()

uint8_t EPS_conditioning_channel_short_datatype_eng_TO_json ( const EPS_conditioning_channel_short_datatype_eng_t * data,
char json_output_str[],
uint16_t json_output_str_size )
Here is the caller graph for this function:

◆ EPS_struct_pbu_abf_placed_state_TO_json()

uint8_t EPS_struct_pbu_abf_placed_state_TO_json ( const EPS_struct_pbu_abf_placed_state_t * data,
char json_output_str[],
uint16_t json_output_str_size )
Here is the caller graph for this function:

◆ EPS_struct_pbu_housekeeping_data_eng_TO_json()

uint8_t EPS_struct_pbu_housekeeping_data_eng_TO_json ( const EPS_struct_pbu_housekeeping_data_eng_t * data,
char json_output_str[],
uint16_t json_output_str_size )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ EPS_struct_pcu_housekeeping_data_eng_TO_json()

uint8_t EPS_struct_pcu_housekeeping_data_eng_TO_json ( const EPS_struct_pcu_housekeeping_data_eng_t * data,
char json_output_str[],
uint16_t json_output_str_size )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ EPS_struct_pdu_housekeeping_data_eng_TO_json()

uint8_t EPS_struct_pdu_housekeeping_data_eng_TO_json ( const EPS_struct_pdu_housekeeping_data_eng_t * data,
char json_output_str[],
uint16_t json_output_str_size )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ EPS_struct_pdu_housekeeping_data_eng_TO_short_json()

uint8_t EPS_struct_pdu_housekeeping_data_eng_TO_short_json ( const EPS_struct_pdu_housekeeping_data_eng_t * data,
char json_output_str[],
uint16_t json_output_str_size )

Convert PDU struct to store JSON for periodic logging.

Note
Emphasizes total info, and enabled channels.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ EPS_struct_pdu_overcurrent_fault_state_TO_json()

uint8_t EPS_struct_pdu_overcurrent_fault_state_TO_json ( const EPS_struct_pdu_overcurrent_fault_state_t * data,
char json_output_str[],
uint16_t json_output_str_size )
Here is the caller graph for this function:

◆ EPS_struct_piu_housekeeping_data_eng_TO_json()

uint8_t EPS_struct_piu_housekeeping_data_eng_TO_json ( const EPS_struct_piu_housekeeping_data_eng_t * data,
char json_output_str[],
uint16_t json_output_str_size )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ EPS_struct_single_channel_data_eng_TO_json()

uint8_t EPS_struct_single_channel_data_eng_TO_json ( const EPS_struct_pdu_housekeeping_data_eng_t * data,
const uint8_t eps_channel,
char json_output_str[],
uint16_t json_output_str_size )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ EPS_struct_system_status_TO_json()

uint8_t EPS_struct_system_status_TO_json ( const EPS_struct_system_status_t * data,
char json_output_str[],
uint16_t json_output_str_size )
Here is the caller graph for this function:

◆ EPS_vpid_eng_TO_json()

uint8_t EPS_vpid_eng_TO_json ( const EPS_vpid_eng_t * data,
char json_output_str[],
uint16_t json_output_str_size )

Convert the EPS_vpid_eng_t struct to a JSON string and write it to json_output_str.

Parameters
dataInput struct of voltage/current/power.
json_output_strDestination buffer.
json_output_str_sizeSize of json_output_str. Recommended: 37 characters, or a couple extra.
Returns
0 on success.
Here is the caller graph for this function: