bus-pirate-0.6.2: Haskell interface to the Bus Pirate binary interface

Safe HaskellNone
LanguageHaskell2010

System.Hardware.BusPirate.SPI

Contents

Synopsis

Types

spiMode :: SpiM a -> BusPirateM a Source

Enter I2C mode and run given action

Bus operations

bulkTransfer :: ByteString -> SpiM ByteString Source

Perform a read/write transaction of up to 16 bytes

setCS :: Bool -> SpiM () Source

Set chip select

Configuration

setConfig :: PeripheralConfig -> SpiM () Source

Set Bus Pirate peripheral configuration bits

setSpeed :: SpiSpeed -> SpiM () Source

Set bus speed