| Portability | portable |
|---|---|
| Stability | provisional |
| Maintainer | eocallaghan@alterapraxis.com |
| Safe Haskell | None |
LibBladeRF.Flash
Description
This module encapsulates flash libbladeRF library functions. WARNING !!! Untested !!!
- bladeRFEraseFlash :: DeviceHandle -> Word32 -> Word32 -> IO (BladeRFReturnType ())
- bladeRFReadFlash :: DeviceHandle -> Word32 -> Word32 -> IO (CInt, Word8)
- bladeRFWriteFlash :: DeviceHandle -> ByteString -> Word32 -> Word32 -> IO (BladeRFReturnType ())
Documentation
Arguments
| :: DeviceHandle | Device handle |
| -> Word32 | Erase block to start erasing at |
| -> Word32 | Number of blocks to erase. |
| -> IO (BladeRFReturnType ()) |
Erase regions of the bladeRF's SPI flash.
This function operates in units of 64KiB erase blocks.
Arguments
| :: DeviceHandle | Device handle |
| -> Word32 | Page to begin reading from |
| -> Word32 | Number of pages to read |
| -> IO (CInt, Word8) |
Read data from the bladeRF's SPI flash.
This function operates in units of 256-byte pages.
Arguments
| :: DeviceHandle | Device handle |
| -> ByteString | Data to write to flash |
| -> Word32 | page Page to begin writing at |
| -> Word32 | count |
| -> IO (BladeRFReturnType ()) |
Write data from the bladeRF's SPI flash.