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:
BIN
BF_companion
BIN
BF_companion
Binary file not shown.
38
main.c
38
main.c
@ -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");
|
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);
|
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:");
|
// printf("\nflush TX buff. \n Number of free TX descriptors before flushing:");
|
||||||
// BF_exec_cmd_simple(hnd, 0x8010, 10, 1);
|
// BF_exec_cmd_simple(hnd, 0x8010, 10, 1);
|
||||||
|
|
||||||
// X502_StreamsStop(hnd);
|
// X502_StreamsStop(hnd);
|
||||||
// X502_StreamsStart(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, 0x8007, 2, 1); //start transparent
|
||||||
//BF_exec_cmd_simple(hnd, 0x800B, 2, 1); //start HDMA flood for speedtest
|
//BF_exec_cmd_simple(hnd, 0x800B, 2, 1); //start HDMA flood for speedtest
|
||||||
printf("\nFlushed from receiving buff: %d\n", X502_FlushRcv_buff(hnd));
|
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);
|
// 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:");
|
printf("\nflush TX buff. \n Number of free TX descriptors before flushing:");
|
||||||
BF_exec_cmd_simple(hnd, 0x8010, 10, 1);
|
BF_exec_cmd_simple(hnd, 0x8010, 10, 1);
|
||||||
|
|||||||
Reference in New Issue
Block a user