Copyright | (c) Marc Fontaine 2017 |
---|---|
License | BSD3 |
Maintainer | Marc.Fontaine@gmx.de |
Stability | experimental |
Portability | GHC-only |
Safe Haskell | None |
Language | Haskell2010 |
Example for the analog digital converter. The ADC of the STM32 works best with DMA transfers. This example turns the STM32 into a small digital storage oscilloscope. As this works with DMA transfers, one can sample with precise timings and the block size and the sampling rate are not limited by the speed of the Haskell code.
- adc3channel :: IO ()
- sampleBlock :: FilePath -> IO ()
Documentation
adc3channel :: IO () Source #
sampleBlock :: FilePath -> IO () Source #
Periodically sample a block of data and write it to a file. In combination with a wave-form viewer that can detect file updates, this works as a poor mans' digital storage oscilloscope.