Safe Haskell | None |
---|---|
Language | Haskell2010 |
System.Hardware.BusPirate.SPI
Contents
- data SpiM a
- spiMode :: SpiM a -> BusPirateM a
- bulkTransfer :: ByteString -> SpiM ByteString
- setCS :: Bool -> SpiM ()
- data PeripheralConfig = PConfig {
- perPower :: Bool
- perPullups :: Bool
- perAux :: Bool
- perChipSelect :: Bool
- setConfig :: PeripheralConfig -> SpiM ()
- data SpiSpeed
- setSpeed :: SpiSpeed -> SpiM ()
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
Configuration
data PeripheralConfig Source
Constructors
PConfig | |
Fields
|
Instances
setConfig :: PeripheralConfig -> SpiM () Source
Set Bus Pirate peripheral configuration bits