• Home
  • Raw
  • Download

Lines Matching refs:rx_frame_

49   struct Teq1Frame tx_frame_, rx_frame_;  member in Teq1FrameErrorCheck
70 rx_frame_.header.PCB = *pcb; in TEST_F()
71 rx_frame_.header.LEN = 2; in TEST_F()
72 rx_frame_.INF[0] = 'A'; in TEST_F()
73 rx_frame_.INF[1] = 'B'; in TEST_F()
74 rx_frame_.INF[2] = teq1_compute_LRC(&rx_frame_); in TEST_F()
75 …PECT_EQ(0, teq1_frame_error_check(&state_, &tx_frame_, &rx_frame_)) << teq1_pcb_to_name(rx_frame_.… in TEST_F()
76 rx_frame_.INF[2] = teq1_compute_LRC(&rx_frame_) - 1; in TEST_F()
79 EXPECT_EQ(TEQ1_R(0, 0, 1), teq1_frame_error_check(&state_, &tx_frame_, &rx_frame_)); in TEST_F()
107 memset(&rx_frame_, 0, sizeof(struct Teq1Frame));
115 struct Teq1Frame rx_frame_; member in Teq1RulesTest
138 rx_frame_.header.PCB = TEQ1_I(0, 0); in SetUp()
139 rx_frame_.header.LEN = INF_LEN; in SetUp()
142 memcpy(rx_frame_.INF, tx_data_.data(), INF_LEN); in SetUp()
143 rx_frame_.INF[INF_LEN] = teq1_compute_LRC(&rx_frame_); in SetUp()
149 teq1_trace_receive(rx_frame_.header.PCB, rx_frame_.header.LEN); in RunRules()
151 enum RuleResult result = teq1_rules(&state_, &tx_frame_, &rx_frame_, &tx_next_); in RunRules()
168 rx_frame_.header.LEN = 0; in TEST_F()
169 rx_frame_.INF[0] = teq1_compute_LRC(&rx_frame_); in TEST_F()
171 EXPECT_EQ(0U, rx_frame_.header.LEN); in TEST_F()
183 rx_frame_.header.PCB = TEQ1_I(0, 0); in TEST_F()
184 rx_frame_.INF[INF_LEN] = teq1_compute_LRC(&rx_frame_); in TEST_F()
187 EXPECT_EQ(INF_LEN, rx_frame_.header.LEN); in TEST_F()
200 rx_frame_.header.PCB = TEQ1_S_WTX(0); in TEST_F()
201 rx_frame_.header.LEN = 1; in TEST_F()
202 rx_frame_.INF[0] = 2; /* Wait x 2 */ in TEST_F()
203 rx_frame_.INF[1] = teq1_compute_LRC(&rx_frame_); in TEST_F()
207 teq1_trace_receive(rx_frame_.header.PCB, rx_frame_.header.LEN); in TEST_F()
209 enum RuleResult result = teq1_rules(&state_, &tx_frame_, &rx_frame_, &tx_next_); in TEST_F()
218 EXPECT_EQ(state_.wait_mult, rx_frame_.INF[0]); in TEST_F()
239 rx_frame_.header.LEN = 0; in RunRules()
240 rx_frame_.INF[0] = teq1_compute_LRC(&rx_frame_); in RunRules()
244 teq1_trace_receive(rx_frame_.header.PCB, rx_frame_.header.LEN); in RunRules()
246 enum RuleResult result = teq1_rules(&state_, &tx_frame_, &rx_frame_, &tx_next_); in RunRules()
266 rx_frame_.header.PCB = TEQ1_R(1, 0, 0); in TEST_F()
275 rx_frame_.header.PCB = TEQ1_R(0, 0, 0); in TEST_F()
284 rx_frame_.header.PCB = TEQ1_R(0, 0, 0); in TEST_F()
307 rx_frame_.header.LEN = 0; in SetUp()
308 rx_frame_.header.PCB = TEQ1_R(0, 0, 0); in SetUp()
309 rx_frame_.INF[0] = teq1_compute_LRC(&rx_frame_); in SetUp()
314 teq1_trace_receive(rx_frame_.header.PCB, rx_frame_.header.LEN); in TearDown()
316 enum RuleResult result = teq1_rules(&state_, &tx_frame_, &rx_frame_, &tx_next_); in TearDown()
327 rx_frame_.header.PCB = TEQ1_R(0, 0, 0); in TEST_F()
328 rx_frame_.INF[0] = teq1_compute_LRC(&rx_frame_); in TEST_F()
332 rx_frame_.header.PCB = TEQ1_R(0, 0, 1); in TEST_F()
333 rx_frame_.INF[0] = teq1_compute_LRC(&rx_frame_); in TEST_F()
337 rx_frame_.header.PCB = TEQ1_R(0, 1, 0); in TEST_F()
338 rx_frame_.INF[0] = teq1_compute_LRC(&rx_frame_); in TEST_F()
342 rx_frame_.header.PCB = TEQ1_R(0, 1, 1); in TEST_F()
343 rx_frame_.INF[0] = teq1_compute_LRC(&rx_frame_); in TEST_F()
355 rx_frame_.header.PCB = TEQ1_I(0, 0); in TEST_F()
356 rx_frame_.header.LEN = 0; in TEST_F()
357 rx_frame_.INF[0] = teq1_compute_LRC(&rx_frame_) - 1; in TEST_F()
361 teq1_trace_receive(rx_frame_.header.PCB, rx_frame_.header.LEN); in TEST_F()
363 enum RuleResult result = teq1_rules(&state_, &tx_frame_, &rx_frame_, &tx_next_); in TEST_F()