PandA-2024.02
top.c
Go to the documentation of this file.
1 #include "module_lib.h"
2 
3 void my_ip(uint8_t command, uint32_t param1, uint32_t param2) {
4  static module1_output_t module1_output;
5  static module2_output_t module2_output;
6 
7  switch(command) {
8  case 0:
9  module1(param1, param2 >> 16, &module1_output);
10  break;
11  case 1:
12  module2(param1, &module2_output);
13  break;
14  case 2:
15  printer1(module1_output.output1, module1_output.output2, module1_output.output3, module1_output.output4);
16  break;
17  case 3:
18  printer2(module2_output.output1, module2_output.output2, module2_output.output3);
19  break;
20  default:
21  break;
22  }
23 }
uint64_t output2
Definition: module_lib.h:19
uint64_t output1
Definition: module_lib.h:18
void module2(uint32_t input1, module2_output_t *outputs)
Definition: module2.c:2
uint64_t output2
Definition: module_lib.h:8
uint16_t output3
Definition: module_lib.h:20
uint16_t output3
Definition: module_lib.h:9
uint32_t output4
Definition: module_lib.h:10
void printer1(uint64_t value1, uint64_t value2, uint16_t value3, uint32_t value4)
Definition: printer1.c:3
void module1(uint32_t input1, uint16_t input2, module1_output_t *outputs)
Definition: module1.c:2
list command
Definition: test_panda.py:921
TVMValue param1[3]
uint64_t output1
Definition: module_lib.h:7
void printer2(uint64_t value1, uint64_t value2, uint16_t value3)
Definition: printer2.c:3
void my_ip(uint8_t command, uint32_t param1, uint32_t param2)
Definition: top.c:3
TVMValue param2[2]

Generated on Mon Feb 12 2024 13:02:47 for PandA-2024.02 by doxygen 1.8.13