input=eparam&0xFFFF; //P-parameter state=eparam>>16; //L-parameter