si-clock-0.1.0: An interface to the Silicon Labs Si5351 clock chip

Safe HaskellSafe
LanguageHaskell2010

Hardware.SiClock.Utils

Synopsis

Documentation

fromToSteps :: Rational -> Rational -> Integer -> [Rational] Source #

Sample an interval from start to end with steps.

setEnvI2CDevice :: String -> IO () Source #

Set the SI_CLOCK_I2C_DEVICE environment variable. Useful with ghci.

setEnvXtalFrequency :: Integer -> IO () Source #

Set the SI_CLOCK_XTAL_FREQUENCY environment variable. Useful with ghci.

setEnv :: String -> String -> IO () #

setEnv name value sets the specified environment variable to value.

On Windows setting an environment variable to the empty string removes that environment variable from the environment. For the sake of compatibility we adopt that behavior. In particular

setEnv name ""

has the same effect as

unsetEnv name

If you don't care about Windows support and want to set an environment variable to the empty string use System.Posix.Env.setEnv from the unix package instead.

Throws IOException if name is the empty string or contains an equals sign.

Since: 4.7.0.0