tc_handler.h
62 lines
| 2.2 KiB
| text/x-c
|
CLexer
/ header / tc_handler.h
paul@pc-solar1.lab-lpp.local
|
r5 | #ifndef TC_HANDLER_H_INCLUDED | ||
#define TC_HANDLER_H_INCLUDED | ||||
paul@pc-solar1.lab-lpp.local
|
r18 | |||
paul
|
r45 | #include <rtems.h> | ||
#include <leon.h> | ||||
paul
|
r40 | #include "tc_load_dump_parameters.h" | ||
paul
|
r45 | #include "tc_acceptance.h" | ||
paul
|
r40 | #include "tm_lfr_tc_exe.h" | ||
paul
|
r45 | #include "wf_handler.h" | ||
paul
|
r95 | #include "fsw_processing.h" | ||
paul@pc-solar1.lab-lpp.local
|
r18 | |||
paul
|
r134 | #include "lfr_cpu_usage_report.h" | ||
paul@pc-solar1.lab-lpp.local
|
r18 | // MODE PARAMETERS | ||
paul
|
r45 | extern unsigned int maxCount; | ||
paul@pc-solar1.lab-lpp.local
|
r18 | //**** | ||
paul@pc-solar1.lab-lpp.local
|
r12 | // ISR | ||
paul@pc-solar1.lab-lpp.local
|
r18 | rtems_isr commutation_isr1( rtems_vector_number vector ); | ||
rtems_isr commutation_isr2( rtems_vector_number vector ); | ||||
//*********** | ||||
// RTEMS TASK | ||||
rtems_task actn_task( rtems_task_argument unused ); | ||||
//*********** | ||||
// TC ACTIONS | ||||
paul
|
r109 | int action_reset( ccsdsTelecommandPacket_t *TC, rtems_id queue_id, unsigned char *time ); | ||
paul
|
r111 | int action_enter_mode(ccsdsTelecommandPacket_t *TC, rtems_id queue_id); | ||
paul
|
r109 | int action_update_info( ccsdsTelecommandPacket_t *TC, rtems_id queue_id ); | ||
int action_enable_calibration( ccsdsTelecommandPacket_t *TC, rtems_id queue_id, unsigned char *time ); | ||||
int action_disable_calibration( ccsdsTelecommandPacket_t *TC, rtems_id queue_id, unsigned char *time ); | ||||
int action_update_time( ccsdsTelecommandPacket_t *TC); | ||||
paul
|
r33 | |||
paul@pc-solar1.lab-lpp.local
|
r23 | // mode transition | ||
paul
|
r109 | int check_mode_value( unsigned char requestedMode ); | ||
int check_mode_transition( unsigned char requestedMode ); | ||||
paul
|
r111 | int check_transition_date( unsigned int transitionCoarseTime ); | ||
paul
|
r98 | int stop_current_mode( void ); | ||
paul
|
r111 | int enter_mode( unsigned char mode , unsigned int transitionCoarseTime ); | ||
paul
|
r117 | int restart_science_tasks(unsigned char lfrRequestedMode ); | ||
paul
|
r32 | int suspend_science_tasks(); | ||
paul
|
r111 | void launch_waveform_picker(unsigned char mode , unsigned int transitionCoarseTime); | ||
paul
|
r118 | void launch_spectral_matrix( void ); | ||
void launch_spectral_matrix_simu( void ); | ||||
paul
|
r106 | void set_irq_on_new_ready_matrix(unsigned char value ); | ||
void set_run_matrix_spectral( unsigned char value ); | ||||
paul
|
r33 | |||
paul@pc-solar1.lab-lpp.local
|
r23 | // other functions | ||
paul
|
r45 | void updateLFRCurrentMode(); | ||
paul
|
r107 | void update_last_TC_exe( ccsdsTelecommandPacket_t *TC , unsigned char *time ); | ||
void update_last_TC_rej(ccsdsTelecommandPacket_t *TC , unsigned char *time ); | ||||
void close_action( ccsdsTelecommandPacket_t *TC, int result, rtems_id queue_id ); | ||||
paul@pc-solar1.lab-lpp.local
|
r5 | |||
paul
|
r82 | extern rtems_status_code get_message_queue_id_send( rtems_id *queue_id ); | ||
extern rtems_status_code get_message_queue_id_recv( rtems_id *queue_id ); | ||||
paul@pc-solar1.lab-lpp.local
|
r5 | #endif // TC_HANDLER_H_INCLUDED | ||
paul@pc-solar1.lab-lpp.local
|
r18 | |||