##// END OF EJS Templates
3.0.0.19...
3.0.0.19 the compliance between the incoming timecode and the CTR value contained in the TC_LFR_UPDATE_TIME telecommand is checked if at least one TC_LFR_UPDATE_TIME has been received (this implies the modification of the coarse_time_load register) lastValidEnterModeTime internal variable management updated

File last commit:

r271:98f943ec5c62 R3a
r271:98f943ec5c62 R3a
Show More
fsw_spacewire.h
58 lines | 2.6 KiB | text/x-c | CLexer
paul
Last commit before release 0-13...
r35 #ifndef FSW_SPACEWIRE_H_INCLUDED
#define FSW_SPACEWIRE_H_INCLUDED
paul
Minor changes in .h inclusion
r45 #include <rtems.h>
#include <grspw.h>
#include <fcntl.h> // for O_RDWR
#include <unistd.h> // for the read call
#include <sys/ioctl.h> // for the ioctl call
#include <errno.h>
#include "fsw_params.h"
#include "tc_handler.h"
paul
fifo occupation reported in the HK packet
r197 #include "fsw_init.h"
paul
Last commit before release 0-13...
r35
paul
snapshot synchronization slightly upgraded...
r263 extern spw_stats grspw_stats;
paul
timecode handling modified:...
r248 extern rtems_name timecode_timer_name;
extern rtems_id timecode_timer_id;
paul
3.0.0.19...
r271 extern unsigned char oneTcLfrUpdateTimeReceived;
paul
Last commit before release 0-13...
r35
// RTEMS TASK
paul
Minor changes in .h inclusion
r45 rtems_task spiq_task( rtems_task_argument argument );
rtems_task recv_task( rtems_task_argument unused );
rtems_task send_task( rtems_task_argument argument );
paul
a wrong date implies the generation of a TM_LFR_TC_EXE_NOT_EXECUTABLE...
r254 rtems_task link_task( rtems_task_argument argument );
paul
Last commit before release 0-13...
r35
paul
Ignore doc files...
r46 int spacewire_open_link( void );
int spacewire_start_link( int fd );
paul
Sync
r127 int spacewire_stop_and_start_link( int fd );
paul
Ignore doc files...
r46 int spacewire_configure_link(int fd );
paul
Snapshot resynchro rewritten, drift is measured one snapshot in two...
r253 int spacewire_several_connect_attemps( void );
paul
Minor changes in .h inclusion
r45 void spacewire_set_NP( unsigned char val, unsigned int regAddr ); // No Port force
void spacewire_set_RE( unsigned char val, unsigned int regAddr ); // RMAP Enable
paul
spacewire statistics management modified...
r264 void spacewire_read_statistics( void );
paul
added spacewire_get_last_error() call to the function spacewire_read_statistics
r269 void spacewire_get_last_error( void );
paul
snapshot synchronization slightly upgraded...
r263 void update_hk_lfr_last_er_fields(unsigned int rid, unsigned char code);
paul
spacewire statistics management modified...
r264 void update_hk_with_grspw_stats(void );
paul
hk_lfr_time_not_synchro is updated each time the synchro is lost....
r249 void increase_unsigned_char_counter( unsigned char *counter );
paul
Last commit before release 0-13...
r35
paul
New version of the waveform picker packet transmission...
r172 void init_header_cwf( Header_TM_LFR_SCIENCE_CWF_t *header );
void init_header_swf( Header_TM_LFR_SCIENCE_SWF_t *header );
void init_header_asm( Header_TM_LFR_SCIENCE_ASM_t *header );
int spw_send_waveform_CWF( ring_node *ring_node_to_send, Header_TM_LFR_SCIENCE_CWF_t *header );
int spw_send_waveform_SWF( ring_node *ring_node_to_send, Header_TM_LFR_SCIENCE_SWF_t *header );
int spw_send_waveform_CWF3_light( ring_node *ring_node_to_send, Header_TM_LFR_SCIENCE_CWF_t *header );
paul
TM_LFR_SCIENCE_NORMA_ASM_ packets modified, 32 bits values instead of 16 bits...
r196 void spw_send_asm_f0( ring_node *ring_node_to_send, Header_TM_LFR_SCIENCE_ASM_t *header );
void spw_send_asm_f1( ring_node *ring_node_to_send, Header_TM_LFR_SCIENCE_ASM_t *header );
void spw_send_asm_f2( ring_node *ring_node_to_send, Header_TM_LFR_SCIENCE_ASM_t *header );
paul
TC_LFR_LOAD_KCOEFFICIENTS...
r194 void spw_send_k_dump( ring_node *ring_node_to_send );
paul
New version of the waveform picker packet transmission...
r172
paul
timecode handling modified:...
r248 unsigned int check_timecode_and_previous_timecode_coherency(unsigned char currentTimecodeCtr);
unsigned int check_timecode_and_internal_time_coherency(unsigned char timecode, unsigned char internalTime);
paul
Minor changes in .h inclusion
r45 void timecode_irq_handler( void *pDev, void *regs, int minor, unsigned int tc );
paul
3.0.0.19...
r271 rtems_timer_service_routine timecode_timer_routine( rtems_id timer_id, void *user_data );
paul
Last commit before release 0-13...
r35
paul
Minor changes in .h inclusion
r45 void (*grspw_timecode_callback) ( void *pDev, void *regs, int minor, unsigned int tc );
paul
Last commit before release 0-13...
r35
#endif // FSW_SPACEWIRE_H_INCLUDED