@@ -31,6 +31,7 int spacewire_several_connect_attemps( v | |||||
31 | void spacewire_set_NP( unsigned char val, unsigned int regAddr ); // No Port force |
|
31 | void spacewire_set_NP( unsigned char val, unsigned int regAddr ); // No Port force | |
32 | void spacewire_set_RE( unsigned char val, unsigned int regAddr ); // RMAP Enable |
|
32 | void spacewire_set_RE( unsigned char val, unsigned int regAddr ); // RMAP Enable | |
33 | void spacewire_read_statistics( void ); |
|
33 | void spacewire_read_statistics( void ); | |
|
34 | void spacewire_get_last_error( void ); | |||
34 | void update_hk_lfr_last_er_fields(unsigned int rid, unsigned char code); |
|
35 | void update_hk_lfr_last_er_fields(unsigned int rid, unsigned char code); | |
35 | void update_hk_with_grspw_stats(void ); |
|
36 | void update_hk_with_grspw_stats(void ); | |
36 | void increase_unsigned_char_counter( unsigned char *counter ); |
|
37 | void increase_unsigned_char_counter( unsigned char *counter ); |
@@ -581,6 +581,8 void spacewire_read_statistics( void ) | |||||
581 | rtems_status_code status; |
|
581 | rtems_status_code status; | |
582 | spw_stats current; |
|
582 | spw_stats current; | |
583 |
|
583 | |||
|
584 | spacewire_get_last_error(); | |||
|
585 | ||||
584 | // read the current statistics |
|
586 | // read the current statistics | |
585 | status = ioctl( fdSPW, SPACEWIRE_IOCTRL_GET_STATISTICS, ¤t ); |
|
587 | status = ioctl( fdSPW, SPACEWIRE_IOCTRL_GET_STATISTICS, ¤t ); | |
586 |
|
588 |
General Comments 0
You need to be logged in to leave comments.
Login now