Refactor dds into dds and fgen
driver module started
This commit is contained in:
@@ -63,55 +63,6 @@ void Get_Max_PSU_Limit(void) // Set up Maximum voltage for PSU
|
||||
}
|
||||
|
||||
|
||||
|
||||
void Adjust_Psu(uint8_t direction)
|
||||
{
|
||||
|
||||
if(direction == UP)
|
||||
psu_index++;
|
||||
else
|
||||
psu_index--;
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
void Psu_Match(void)
|
||||
{// may need tap check plus current and voltage
|
||||
if(freqArray[frequency].frequency1 <= MAX_DTYPE) //may need current and impedance check
|
||||
{
|
||||
switch (Power_Level)
|
||||
{
|
||||
|
||||
case 0:
|
||||
Set_PSU_Voltage(V_21V);
|
||||
break;
|
||||
|
||||
case 1:
|
||||
Set_PSU_Voltage(V_24V);
|
||||
break;
|
||||
|
||||
case 2:
|
||||
Set_PSU_Voltage(V_27V);
|
||||
break;
|
||||
|
||||
case 3:
|
||||
Set_PSU_Voltage(V_36V);
|
||||
break;
|
||||
|
||||
case 4:
|
||||
Set_PSU_Voltage(V_36V);
|
||||
break;
|
||||
|
||||
default:
|
||||
Set_PSU_Voltage(V_36V);
|
||||
break;
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
bool Wait_For_Psu(float32_t volt_limit)
|
||||
{
|
||||
uint16_t escape_count;
|
||||
|
||||
Reference in New Issue
Block a user