09-13-2022 02:46 PM
09-13-2022 03:15 PM
AFAIK, you've to implement that in your application layer.
A lot of the features that you see on the SFP are implemented in the SFP application itself and not in the driver layer.
09-13-2022 04:48 PM
Are there any good examples that achieve that function?
09-13-2022 08:44 PM
I am not aware of such an example, but you can start with the highlighted example,
Make a copy of the example and start editing the copy,
Put the Read power spectrum in a loop, update and store the maximum value for each element in the spectrum, and let the loop run for the number of iterations or duration for which you want the max hold.