mirror of
https://github.com/rtlsdrblog/rtl-sdr-blog.git
synced 2024-12-25 10:28:28 +01:00
fix type definition in library
interface sorry mom! :P
This commit is contained in:
parent
b5e4b76885
commit
e22c8a8378
@ -25,7 +25,7 @@ extern "C" {
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
typedef int rtlsdr_dev_t;
|
||||
typedef struct rtlsdr_dev rtlsdr_dev_t;
|
||||
|
||||
uint32_t rtlsdr_get_device_count(void);
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
#ifndef __I2C_H
|
||||
#define __I2C_H
|
||||
|
||||
typedef int rtlsdr_dev_t;
|
||||
typedef struct rtlsdr_dev rtlsdr_dev_t;
|
||||
|
||||
int rtlsdr_i2c_write(rtlsdr_dev_t *dev, uint8_t i2c_addr, uint8_t *buffer, int len);
|
||||
int rtlsdr_i2c_read(rtlsdr_dev_t *dev, uint8_t i2c_addr, uint8_t *buffer, int len);
|
||||
|
@ -110,7 +110,7 @@ static rtlsdr_device_t devices[] = {
|
||||
{ 0x1d19, 0x1101, "Dexatek DK DVB-T Dongle (Logilink VG0002A)" },
|
||||
};
|
||||
|
||||
typedef struct {
|
||||
typedef struct rtlsdr_dev {
|
||||
struct libusb_device_handle *devh;
|
||||
rtlsdr_tuner_t *tuner;
|
||||
int rate; /* Hz */
|
||||
|
Loading…
Reference in New Issue
Block a user