- Homepage
- Issues
- Documentation
- [Email](mailto:postmodern.mod3 at gmail.com)
(Experimental) FFI bindings for libhackrf.
require 'ffi/hackrf'
- libhackrf
- [ffi] ~> 1.0
$ gem install ffi-hackrf
require 'ffi/hackrf'
FFI::HackRF.open do |hackrf|
hackrf.frequency = 90.1 * (10 ** 6)
hackrf.sample_rate = 44.8 * (10 ** 3)
hackrf.rx do |transfer|
puts transfer.buffer.dump
end
end
Copyright (c) 2014 Postmodern
See {file:LICENSE.txt} for details.