Skip to content

Latest commit

 

History

History
46 lines (29 loc) · 811 Bytes

README.md

File metadata and controls

46 lines (29 loc) · 811 Bytes

ffi-hackrf

Description

(Experimental) FFI bindings for libhackrf.

Examples

require 'ffi/hackrf'

Requirements

Install

$ gem install ffi-hackrf

Examples

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

Copyright (c) 2014 Postmodern

See {file:LICENSE.txt} for details.