equal
deleted
inserted
replaced
55 #define _P(fc) case fc: printf(#fc" ");break; |
55 #define _P(fc) case fc: printf(#fc" ");break; |
56 |
56 |
57 static inline void print_message(Message *m) |
57 static inline void print_message(Message *m) |
58 { |
58 { |
59 int i; |
59 int i; |
|
60 UNS8 fc; |
60 printf("id:%02x ", m->cob_id.w & 0x7F); |
61 printf("id:%02x ", m->cob_id.w & 0x7F); |
61 UNS8 fc = m->cob_id.w >> 7; |
62 fc = m->cob_id.w >> 7; |
62 switch(fc) |
63 switch(fc) |
63 { |
64 { |
64 case SYNC: |
65 case SYNC: |
65 if(m->cob_id.w == 0x080) |
66 if(m->cob_id.w == 0x080) |
66 printf("SYNC "); |
67 printf("SYNC "); |