diff --git a/BF_companion b/BF_companion index 1a3f63e..564a3df 100755 Binary files a/BF_companion and b/BF_companion differ diff --git a/main.c b/main.c index a29b70a..e6a72c2 100644 --- a/main.c +++ b/main.c @@ -854,7 +854,7 @@ uint32_t X502_FlushRcv_buff(t_x502_hnd hnd){ void receive_to_file(t_x502_hnd hnd, char* logfilename, uint32_t* inp_buff, uint32_t max_total_words){ FILE* logfile_ptr = fopen(logfilename, "a"); - uint32_t recv_Err_code = X502_Recv(hnd, inp_buff, max_total_words, 1000); + uint32_t recv_Err_code = X502_Recv(hnd, inp_buff, max_total_words, 10000); if (recv_Err_code > 0){ uint32_t received_words = recv_Err_code; for (uint32_t word_I = 0; word_I < received_words; word_I ++){ @@ -1269,17 +1269,23 @@ int main(int argc, char** argv) { printf("\nStart SEMITRANSPARENT mode\n"); + BF_exec_cmd_simple(hnd, 0x800B, 2, 1); //start SEMITRANSPARENT + + +// printf("\nStart AVG mode\n"); +// BF_exec_cmd_simple(hnd, 0x8008, 2, 1); //start averaging + // 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, 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));