Skip to content

sophsec/ffi-hackrf

Repository files navigation

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.

Releases

No releases published

Languages