0 | module Bindings.RtlSdr.Raw.EEProm
 1 |
 2 | import Data.Buffer
 3 |
 4 | import Bindings.RtlSdr.Device
 5 |
 6 | %default total
 7 |
 8 | -- RTLSDR_API int rtlsdr_write_eeprom(rtlsdr_dev_t *dev, uint8_t *data,
 9 | --    uint8_t offset, uint16_t len);
10 | export
11 | %foreign (librtlsdr "write_eeprom")
12 | write_eeprom: Ptr RtlSdrHandle -> Buffer -> Int -> Int -> PrimIO Int
13 |
14 | -- RTLSDR_API int rtlsdr_read_eeprom(rtlsdr_dev_t *dev, uint8_t *data,
15 | --    uint8_t offset, uint16_t len);
16 | export
17 | %foreign (librtlsdr "read_eeprom")
18 | read_eeprom: Ptr RtlSdrHandle -> Buffer -> Int -> Int -> PrimIO Int
19 |