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

Safe HaskellNone

System.Hardware.BusPirate.SPI

Contents

Synopsis

Types

spiMode :: SpiM a -> BusPirateM aSource

Enter I2C mode and run given action

Bus operations

bulkTransfer :: ByteString -> SpiM ByteStringSource

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