workflow: setup ADC and BF, run transparent mode, run semitransparent mode, run transparent mode again. every run fetches 1e5 words

This commit is contained in:
2025-10-02 16:28:09 +03:00
parent 60c823a8e2
commit 2755d0a7ae
2 changed files with 34 additions and 4 deletions

Binary file not shown.

38
main.c
View File

@ -1251,14 +1251,33 @@ int main(int argc, char** argv) {
printf("\n\nget counters of calls of SPORT_RX, SPORT_TX, HDMA_RX, HDMA_TX\n");
BF_exec_cmd_with_arr(hnd, 0x8005U, 100, NULL, 0, 1);
printf("\nStart averaging mode\n");
printf("\nStart SEMITRANSPARENT mode\n");
// printf("\nflush TX buff. \n Number of free TX descriptors before flushing:");
// BF_exec_cmd_simple(hnd, 0x8010, 10, 1);
// X502_StreamsStop(hnd);
// X502_StreamsStart(hnd);
BF_exec_cmd_simple(hnd, 0x8008, 2, 1); //start averaging
BF_exec_cmd_simple(hnd, 0x800B, 2, 1); //start SEMITRANSPARENT
//BF_exec_cmd_simple(hnd, 0x8008, 2, 1); //start averaging
//BF_exec_cmd_simple(hnd, 0x8007, 2, 1); //start transparent
//BF_exec_cmd_simple(hnd, 0x800B, 2, 1); //start HDMA flood for speedtest
printf("\nFlushed from receiving buff: %d\n", X502_FlushRcv_buff(hnd));
@ -1319,8 +1338,19 @@ int main(int argc, char** argv) {
// BF_exec_cmd_simple(hnd, 0x800A, 10, 1);
printf("\nStart averaging mode\n");
BF_exec_cmd_simple(hnd, 0x8008, 2, 1); //start averaging
printf("\nStart transparent mode\n");
BF_exec_cmd_simple(hnd, 0x8007, 2, 1); //start transparent
printf("\nflush TX buff. \n Number of free TX descriptors before flushing:");
BF_exec_cmd_simple(hnd, 0x8010, 10, 1);