Hello, I was recently learning UCD3138 full-bridge hard-switch firmware
I do not understand the function of void init_variables(void)
Void init_variables(void)
{
Supply_state = STATE_IDLE;
Current_share_kp = 40;
Current_share_ki = 2;
Fault_status = 0;
Debug_buffer[0]=1;
Debug_buffer[1]=2;
Debug_buffer[2]=3;
Debug_buffer[3]=4;
Debug_buffer[4]=5;
Debug_buffer[5]=6;
Debug_buffer[6]=7;
Debug_buffer[7]=8;
}
I do not know debug_buffer[0]=1 ... debug_buffer[7]=8; what is the purpose of this 8-bit array debug_buffer[]?