equal
deleted
inserted
replaced
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 UNS8 fc; |
61 printf("id:%02x ", m->cob_id.w & 0x7F); |
61 printf("id:%02x ", m->cob_id & 0x7F); |
62 fc = m->cob_id.w >> 7; |
62 fc = m->cob_id >> 7; |
63 switch(fc) |
63 switch(fc) |
64 { |
64 { |
65 case SYNC: |
65 case SYNC: |
66 if(m->cob_id.w == 0x080) |
66 if(m->cob_id == 0x080) |
67 printf("SYNC "); |
67 printf("SYNC "); |
68 else |
68 else |
69 printf("EMCY "); |
69 printf("EMCY "); |
70 break; |
70 break; |
71 _P(TIME_STAMP) |
71 _P(TIME_STAMP) |