Hi everyone,
The purpose of my letter this time is to ask you some questions about sending data from micro-c to host.
Now, I have defined some structures in micro-c emem memory to store data from packets as follows.
typedef struct data{
uint32_t switch_id;
uint32_t level1_ingress_port_id;
uint32_t level1_egress_port_id;
uint32_t hop_latency;
......
}data;
typedef struct sfint{
data R[NODE_NUM]; // 4
uint32_t send_flag[NODE_NUM];
}sfint;
__declspec(emem shared scope(global) export) sfint buffer[BUFFER_SIZE+1]; // 65535+1
What I want to know is how should I send the data in the emem(buffer) to the host and store them in the host? I have tried the following methods:
Could you give me some advice and I want to get as fast performance as possible. I am looking forward to your reply. Thank you very much!