0 | module Bindings.RtlSdr.Raw.Device
9 | data RtlSdrHandle : Type where [external]
13 | librtlsdr : String -> String
14 | librtlsdr fn = "C:" ++ "rtlsdr_" ++ fn ++ ",librtlsdr"
21 | %foreign (librtlsdr "get_device_usb_strings")
22 | get_device_usb_strings: Int -> Ptr String -> Ptr String -> Ptr String -> Int
26 | %foreign (librtlsdr "get_device_count")
27 | get_device_count: Int
31 | %foreign (librtlsdr "get_device_name")
32 | get_device_name: Int -> String
36 | %foreign (librtlsdr "get_index_by_serial")
37 | get_index_by_serial: String -> Int
41 | %foreign (librtlsdr "open")
42 | open_prim: Ptr RtlSdrHandle -> Int -> PrimIO Int
46 | %foreign (librtlsdr "close")
47 | close: Ptr RtlSdrHandle -> PrimIO Int