acquire samplerate frequency from si5338 registers using integer arithmetic

Also use the standard debug mechanism to show errors

NOTE: There should be a way to emit errors strings that is independent of debug
This is useful for critical errors.