Fixed out of sync definitions for set_frequency_registers() and scale_uint32()