utilizing PSP callback API for spectrum analyzer