scale_factor_listener interface is used for
modeling changes in scale factors. It is mainly used by the
frequency_bus device, to allow an external device to
affect how much the bus scales its input frequency.
The scale_factor_listener has exactly the same
semantics as the frequency_listener interface, the
two interfaces only differ in convention: The parameters to
scale_factor_listener.set() are typically a scale factor
rather close to 1, while the parameters of
frequency_listener represent a base frequency in Hz,
which is typically significantly larger than 1000000.
See the documentation on the frequency_listener interface for more information.
SIM_INTERFACE(scale_factor_listener) {
void (*set)(conf_object_t *NOTNULL obj, uint64 numerator,
uint64 denominator);
};
#define SCALE_FACTOR_LISTENER_INTERFACE "scale_factor_listener"