• Home
  • Raw
  • Download

Lines Matching full:header

66   tx_frame_.header.PCB = TEQ1_I(0, 0);  in TEST_F()
70 rx_frame_.header.PCB = *pcb; in TEST_F()
71 rx_frame_.header.LEN = 2; in TEST_F()
75 …teq1_frame_error_check(&state_, &tx_frame_, &rx_frame_)) << teq1_pcb_to_name(rx_frame_.header.PCB); in TEST_F()
133 tx_frame_.header.PCB = TEQ1_I(0, 0); in SetUp()
138 rx_frame_.header.PCB = TEQ1_I(0, 0); in SetUp()
139 rx_frame_.header.LEN = INF_LEN; in SetUp()
148 teq1_trace_transmit(tx_frame_.header.PCB, tx_frame_.header.LEN); in RunRules()
149 teq1_trace_receive(rx_frame_.header.PCB, rx_frame_.header.LEN); in RunRules()
155 EXPECT_EQ(0, tx_next_.header.PCB) in RunRules()
156 << "Actual next TX: " << teq1_pcb_to_name(tx_next_.header.PCB); in RunRules()
168 rx_frame_.header.LEN = 0; in TEST_F()
171 EXPECT_EQ(0U, rx_frame_.header.LEN); in TEST_F()
182 tx_frame_.header.PCB = TEQ1_I(1, 0); in TEST_F()
183 rx_frame_.header.PCB = TEQ1_I(0, 0); in TEST_F()
187 EXPECT_EQ(INF_LEN, rx_frame_.header.LEN); in TEST_F()
195 tx_frame_.header.PCB = TEQ1_I(0, 0); in TEST_F()
200 rx_frame_.header.PCB = TEQ1_S_WTX(0); in TEST_F()
201 rx_frame_.header.LEN = 1; in TEST_F()
206 teq1_trace_transmit(tx_frame_.header.PCB, tx_frame_.header.LEN); in TEST_F()
207 teq1_trace_receive(rx_frame_.header.PCB, rx_frame_.header.LEN); in TEST_F()
210 teq1_trace_transmit(tx_next_.header.PCB, tx_next_.header.LEN); in TEST_F()
215 EXPECT_EQ(TEQ1_S_WTX(1), tx_next_.header.PCB) in TEST_F()
216 << "Actual next TX: " << teq1_pcb_to_name(tx_next_.header.PCB); in TEST_F()
233 EXPECT_EQ(1, bs_get(PCB.I.more_data, tx_frame_.header.PCB)); in RunRules()
239 rx_frame_.header.LEN = 0; in RunRules()
243 teq1_trace_transmit(tx_frame_.header.PCB, tx_frame_.header.LEN); in RunRules()
244 teq1_trace_receive(rx_frame_.header.PCB, rx_frame_.header.LEN); in RunRules()
247 teq1_trace_transmit(tx_next_.header.PCB, tx_next_.header.LEN); in RunRules()
265 tx_frame_.header.PCB = TEQ1_I(0, 0); in TEST_F()
266 rx_frame_.header.PCB = TEQ1_R(1, 0, 0); in TEST_F()
268 EXPECT_EQ(TEQ1_I(1, 1), tx_next_.header.PCB) in TEST_F()
269 << "Actual next TX: " << teq1_pcb_to_name(tx_next_.header.PCB); in TEST_F()
274 tx_frame_.header.PCB = TEQ1_I(1, 0); in TEST_F()
275 rx_frame_.header.PCB = TEQ1_R(0, 0, 0); in TEST_F()
277 EXPECT_EQ(TEQ1_I(0, 1), tx_next_.header.PCB) in TEST_F()
278 << "Actual next TX: " << teq1_pcb_to_name(tx_next_.header.PCB); in TEST_F()
283 tx_frame_.header.PCB = TEQ1_I(1, 0); in TEST_F()
284 rx_frame_.header.PCB = TEQ1_R(0, 0, 0); in TEST_F()
286 EXPECT_EQ(TEQ1_I(0, 0), tx_next_.header.PCB) in TEST_F()
287 << "Actual next TX: " << teq1_pcb_to_name(tx_next_.header.PCB); in TEST_F()
302 tx_frame_.header.PCB = TEQ1_I(0, 0); in SetUp()
307 rx_frame_.header.LEN = 0; in SetUp()
308 rx_frame_.header.PCB = TEQ1_R(0, 0, 0); in SetUp()
313 teq1_trace_transmit(tx_frame_.header.PCB, tx_frame_.header.LEN); in TearDown()
314 teq1_trace_receive(rx_frame_.header.PCB, rx_frame_.header.LEN); in TearDown()
327 rx_frame_.header.PCB = TEQ1_R(0, 0, 0); in TEST_F()
332 rx_frame_.header.PCB = TEQ1_R(0, 0, 1); in TEST_F()
337 rx_frame_.header.PCB = TEQ1_R(0, 1, 0); in TEST_F()
342 rx_frame_.header.PCB = TEQ1_R(0, 1, 1); in TEST_F()
351 tx_frame_.header.PCB = TEQ1_I(0, 0); in TEST_F()
355 rx_frame_.header.PCB = TEQ1_I(0, 0); in TEST_F()
356 rx_frame_.header.LEN = 0; in TEST_F()
360 teq1_trace_transmit(tx_frame_.header.PCB, tx_frame_.header.LEN); in TEST_F()
361 teq1_trace_receive(rx_frame_.header.PCB, rx_frame_.header.LEN); in TEST_F()
368 EXPECT_EQ(TEQ1_R(0, 0, 1), tx_next_.header.PCB) in TEST_F()
369 << "Actual next TX: " << teq1_pcb_to_name(tx_next_.header.PCB); in TEST_F()
518 frame.header.NAD = kTeq1Options.node_address; in TEST_F()
519 frame.header.PCB = TEQ1_I(0, 0); in TEST_F()
520 frame.header.LEN = 4; in TEST_F()
525 frame.INF[frame.header.LEN] = teq1_compute_LRC(&frame); in TEST_F()
526 frame_size = sizeof(frame.header) + frame.header.LEN + 1; in TEST_F()
530 teq1_trace_transmit(frame.header.PCB, frame.header.LEN); in TEST_F()
532 frame.header.LEN = 0; in TEST_F()
533 frame.header.NAD = kTeq1Options.host_address; in TEST_F()
534 frame.INF[frame.header.LEN] = teq1_compute_LRC(&frame); in TEST_F()
535 frame_size = sizeof(frame.header) + frame.header.LEN + 1; in TEST_F()
539 teq1_trace_receive(frame.header.PCB, frame.header.LEN); in TEST_F()
557 frame.header.NAD = kTeq1Options.node_address; in TEST_F()
558 frame.header.PCB = TEQ1_I(0, 0); in TEST_F()
559 frame.header.LEN = 4; in TEST_F()
564 frame.INF[frame.header.LEN] = teq1_compute_LRC(&frame); in TEST_F()
565 frame_size = sizeof(frame.header) + frame.header.LEN + 1; in TEST_F()
571 frame.header.LEN = 0; in TEST_F()
572 frame.header.NAD = kTeq1Options.host_address; in TEST_F()
573 frame.header.PCB = TEQ1_R(0, 1, 0); in TEST_F()
574 frame.INF[frame.header.LEN] = teq1_compute_LRC(&frame); in TEST_F()
575 frame_size = sizeof(frame.header) + frame.header.LEN + 1; in TEST_F()
579 frame.header.LEN = 0; in TEST_F()
580 frame.header.NAD = kTeq1Options.host_address; in TEST_F()
581 frame.header.PCB = TEQ1_I(0, 0); in TEST_F()
582 frame.INF[frame.header.LEN] = teq1_compute_LRC(&frame); in TEST_F()
583 frame_size = sizeof(frame.header) + frame.header.LEN + 1; in TEST_F()
610 frame.header.NAD = kTeq1Options.node_address; in TEST_F()
611 frame.header.PCB = TEQ1_I(0, 0); in TEST_F()
612 frame.header.LEN = 4; in TEST_F()
617 frame.INF[frame.header.LEN] = teq1_compute_LRC(&frame); in TEST_F()
618 frame_size = sizeof(frame.header) + frame.header.LEN + 1; in TEST_F()
630 frame.header.LEN = 0; in TEST_F()
631 frame.header.NAD = kTeq1Options.node_address; in TEST_F()
632 frame.header.PCB = TEQ1_S_RESYNC(0); in TEST_F()
633 frame.INF[frame.header.LEN] = teq1_compute_LRC(&frame); in TEST_F()
634 frame_size = sizeof(frame.header) + frame.header.LEN + 1; in TEST_F()
638 frame.header.LEN = 0; in TEST_F()
639 frame.header.NAD = kTeq1Options.host_address; in TEST_F()
640 frame.header.PCB = TEQ1_R(0, 1, 0); in TEST_F()
641 frame.INF[frame.header.LEN] = teq1_compute_LRC(&frame); in TEST_F()
642 frame_size = sizeof(frame.header) + frame.header.LEN + 1; in TEST_F()
652 frame.header.LEN = 0; in TEST_F()
653 frame.header.NAD = kTeq1Options.host_address; in TEST_F()
654 frame.header.PCB = TEQ1_S_RESYNC(1); in TEST_F()
655 frame.INF[frame.header.LEN] = teq1_compute_LRC(&frame); in TEST_F()
656 frame_size = sizeof(frame.header) + frame.header.LEN + 1; in TEST_F()
660 frame.header.LEN = 0; in TEST_F()
661 frame.header.NAD = kTeq1Options.host_address; in TEST_F()
662 frame.header.PCB = TEQ1_I(0, 0); in TEST_F()
663 frame.INF[frame.header.LEN] = teq1_compute_LRC(&frame); in TEST_F()
664 frame_size = sizeof(frame.header) + frame.header.LEN + 1; in TEST_F()
703 frame.header.NAD = kTeq1Options.node_address; in TEST_F()
704 frame.header.PCB = TEQ1_I(0, 0); in TEST_F()
705 frame.header.LEN = 4; in TEST_F()
710 frame.INF[frame.header.LEN] = teq1_compute_LRC(&frame); in TEST_F()
711 frame_size = sizeof(frame.header) + frame.header.LEN + 1; in TEST_F()
718 frame.header.LEN = 0; in TEST_F()
719 frame.header.NAD = kTeq1Options.host_address; in TEST_F()
720 frame.header.PCB = TEQ1_R(0, 1, 0); in TEST_F()
721 frame.INF[frame.header.LEN] = teq1_compute_LRC(&frame); in TEST_F()
722 frame_size = sizeof(frame.header) + frame.header.LEN + 1; in TEST_F()
728 frame.header.LEN = 0; in TEST_F()
729 frame.header.NAD = kTeq1Options.node_address; in TEST_F()
730 frame.header.PCB = TEQ1_S_RESYNC(0); in TEST_F()
731 frame.INF[frame.header.LEN] = teq1_compute_LRC(&frame); in TEST_F()
732 frame_size = sizeof(frame.header) + frame.header.LEN + 1; in TEST_F()
741 frame.header.LEN = 0; in TEST_F()
742 frame.header.NAD = kTeq1Options.host_address; in TEST_F()
743 frame.header.PCB = TEQ1_S_RESYNC(1); in TEST_F()
744 frame.INF[frame.header.LEN] = teq1_compute_LRC(&frame); in TEST_F()
745 frame_size = sizeof(frame.header) + frame.header.LEN + 1; in TEST_F()