tc_load_dump_parameters.h
85 lines
| 3.7 KiB
| text/x-c
|
CLexer
/ header / tc_load_dump_parameters.h
|
r40 | #ifndef TC_LOAD_DUMP_PARAMETERS_H | ||
#define TC_LOAD_DUMP_PARAMETERS_H | ||||
|
r45 | #include <rtems.h> | ||
#include <stdio.h> | ||||
#include "fsw_params.h" | ||||
#include "wf_handler.h" | ||||
#include "tm_lfr_tc_exe.h" | ||||
|
r56 | #include "fsw_misc.h" | ||
|
r194 | #include "basic_parameters_params.h" | ||
|
r195 | #include "avf0_prc0.h" | ||
|
r45 | |||
|
r166 | #define FLOAT_EQUAL_ZERO 0.001 | ||
|
r149 | extern unsigned short sequenceCounterParameterDump; | ||
|
r227 | extern unsigned short sequenceCounters_TM_DUMP[]; | ||
|
r194 | extern float k_coeff_intercalib_f0_norm[ ]; | ||
extern float k_coeff_intercalib_f0_sbm[ ]; | ||||
extern float k_coeff_intercalib_f1_norm[ ]; | ||||
extern float k_coeff_intercalib_f1_sbm[ ]; | ||||
extern float k_coeff_intercalib_f2[ ]; | ||||
|
r286 | extern fbins_masks_t fbins_masks; | ||
|
r149 | |||
|
r40 | int action_load_common_par( ccsdsTelecommandPacket_t *TC ); | ||
|
r75 | int action_load_normal_par(ccsdsTelecommandPacket_t *TC, rtems_id queue_id , unsigned char *time); | ||
int action_load_burst_par(ccsdsTelecommandPacket_t *TC, rtems_id queue_id , unsigned char *time); | ||||
int action_load_sbm1_par(ccsdsTelecommandPacket_t *TC, rtems_id queue_id , unsigned char *time); | ||||
int action_load_sbm2_par(ccsdsTelecommandPacket_t *TC, rtems_id queue_id , unsigned char *time); | ||||
|
r192 | int action_load_kcoefficients(ccsdsTelecommandPacket_t *TC, rtems_id queue_id, unsigned char *time); | ||
int action_load_fbins_mask(ccsdsTelecommandPacket_t *TC, rtems_id queue_id, unsigned char *time); | ||||
|
r283 | int action_load_filter_par(ccsdsTelecommandPacket_t *TC, rtems_id queue_id, unsigned char *time); | ||
|
r192 | int action_dump_kcoefficients(ccsdsTelecommandPacket_t *TC, rtems_id queue_id, unsigned char *time); | ||
|
r222 | int action_dump_par(ccsdsTelecommandPacket_t *TC, rtems_id queue_id ); | ||
|
r40 | |||
|
r117 | // NORMAL | ||
|
r275 | int check_normal_par_consistency( ccsdsTelecommandPacket_t *TC, rtems_id queue_id ); | ||
|
r152 | int set_sy_lfr_n_swf_l( ccsdsTelecommandPacket_t *TC ); | ||
int set_sy_lfr_n_swf_p( ccsdsTelecommandPacket_t *TC ); | ||||
int set_sy_lfr_n_asm_p( ccsdsTelecommandPacket_t *TC ); | ||||
int set_sy_lfr_n_bp_p0( ccsdsTelecommandPacket_t *TC ); | ||||
int set_sy_lfr_n_bp_p1( ccsdsTelecommandPacket_t *TC ); | ||||
int set_sy_lfr_n_cwf_long_f3( ccsdsTelecommandPacket_t *TC ); | ||||
|
r40 | |||
|
r117 | // BURST | ||
|
r152 | int set_sy_lfr_b_bp_p0( ccsdsTelecommandPacket_t *TC ); | ||
int set_sy_lfr_b_bp_p1( ccsdsTelecommandPacket_t *TC ); | ||||
|
r117 | |||
// SBM1 | ||||
|
r152 | int set_sy_lfr_s1_bp_p0( ccsdsTelecommandPacket_t *TC ); | ||
int set_sy_lfr_s1_bp_p1( ccsdsTelecommandPacket_t *TC ); | ||||
|
r117 | |||
// SBM2 | ||||
|
r152 | int set_sy_lfr_s2_bp_p0( ccsdsTelecommandPacket_t *TC ); | ||
int set_sy_lfr_s2_bp_p1( ccsdsTelecommandPacket_t *TC ); | ||||
|
r117 | |||
|
r104 | // TC_LFR_UPDATE_INFO | ||
unsigned int check_update_info_hk_lfr_mode( unsigned char mode ); | ||||
unsigned int check_update_info_hk_tds_mode( unsigned char mode ); | ||||
unsigned int check_update_info_hk_thr_mode( unsigned char mode ); | ||||
|
r304 | void set_hk_lfr_sc_rw_f_flag( unsigned char wheel, unsigned char freq, float value ); | ||
void set_hk_lfr_sc_rw_f_flags( void ); | ||||
|
r283 | void getReactionWheelsFrequencies( ccsdsTelecommandPacket_t *TC ); | ||
|
r286 | void setFBinMask(unsigned char *fbins_mask, float rw_f, unsigned char deltaFreq, unsigned char flag ); | ||
void build_sy_lfr_rw_mask( unsigned int channel ); | ||||
void build_sy_lfr_rw_masks(); | ||||
void merge_fbins_masks( void ); | ||||
|
r104 | |||
|
r195 | // FBINS_MASK | ||
int set_sy_lfr_fbins( ccsdsTelecommandPacket_t *TC ); | ||||
|
r282 | // TC_LFR_LOAD_PARS_FILTER_PAR | ||
|
r285 | int check_sy_lfr_filter_parameters( ccsdsTelecommandPacket_t *TC, rtems_id queue_id ); | ||
|
r282 | |||
|
r194 | // KCOEFFICIENTS | ||
|
r211 | int set_sy_lfr_kcoeff(ccsdsTelecommandPacket_t *TC , rtems_id queue_id); | ||
|
r195 | void copyFloatByChar( unsigned char *destination, unsigned char *source ); | ||
|
r294 | void floatToChar( float value, unsigned char* ptr); | ||
|
r194 | |||
|
r46 | void init_parameter_dump( void ); | ||
|
r194 | void init_kcoefficients_dump( void ); | ||
void init_kcoefficients_dump_packet( Packet_TM_LFR_KCOEFFICIENTS_DUMP_t *kcoefficients_dump, unsigned char pkt_nr, unsigned char blk_nr ); | ||||
|
r227 | void increment_seq_counter_destination_id_dump( unsigned char *packet_sequence_control, unsigned char destination_id ); | ||
|
r46 | |||
|
r40 | #endif // TC_LOAD_DUMP_PARAMETERS_H | ||