Please login with individual username (not the generic 'trd').");
$ori_id = $_REQUEST['id'];
$cpld = $_REQUEST['cpld'];
$curr_thresh = $_REQUEST['cthr'];
$slope_imib = $_REQUEST['imib'];
$laser_rdyn = $_REQUEST['rdyn'];
$ratio_opib = $_REQUEST['opib'];
$reglist = $_REQUEST['regs'];
if($reglist){
$regs = split(',',$reglist);
$nregs = count($regs);
if($nregs<16) die("ERROR: only $nregs registers were found! Please pass all 16.
");
}
if(!$_REQUEST['confirmed']){
echo "
- CPLD version = $cpld
";
if($curr_thresh) echo "
- Current Threshold = $curr_thresh mA
";
if($slope_imib) echo "
- Slope I(monitor)/I(bias) = $slope_imib uA/mA
";
if($laser_rdyn) echo "
- Laser Rdyn = $laser_rdyn Ohm
";
if($ratio_opib) echo "
- OpticalPower/I(monitor) = $ratio_opib uW/uA
";
if($reglist){
echo "
- new registers:
";
foreach($regs as $idx=>$reg){
if(strlen($reg)>1) print "$idx:$reg ";
else print "$idx:0$reg ";
}
}
echo "