CTL_STATUS_t ltc6904_set_frequency(LTC6904_OSCILLATOR_t *self, float frequency);
ltc6904_set_frequency sets the oscillator self to the frequency nearest frequency hertz. You can read the oscillator frequency selected by ltc6904_set_frequency using ltc6904_get_selected_frequency.
ltc6904_set_frequency returns a standard status code.
ltc6904_set_frequency is thread-safe if the transport member in self is thread-safe. Typically, for SPI and I2C transports, you ensure thread safety by associating a mutex with the bus used by the transport.