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

Copyright(c) Marc Fontaine 2017
LicenseBSD3
MaintainerMarc.Fontaine@gmx.de
Stabilityexperimental
PortabilityGHC-only
Safe HaskellSafe
LanguageHaskell2010

Hardware.SiClock.Examples

Description

This module collects some examples and tests. Unless stated otherwise the output pin is CLK_0.

Synopsis

Documentation

testSynth :: Frequency -> IO () Source #

Set Clk_0 to frequency f and turn on clock output.

clkOff :: IO () Source #

Turn off CLK_0.

testI2CReading :: IO () Source #

Read the chip registers.

testHopping :: [Frequency] -> IO () Source #

One example for frequency hopping. Here the PLL stays at one frequency and the clock divider is modified.

testJT65 :: Frequency -> IO () Source #

Send a JT65 hello world message.

testMorse :: Frequency -> IO () Source #

Send some message in morse code.

testRTTY :: Frequency -> IO () Source #

Send some RTTY message

testClicks1 :: Frequency -> IO () Source #

Switching the PLL causes some loud clicks (unwanted).

noClicks2 :: Frequency -> IO () Source #

No clicks here. I don't know why ?