mirror of
https://github.com/rtlsdrblog/rtl-sdr-blog.git
synced 2025-01-13 03:37:17 +01:00
consolidated function defs and impls
This commit is contained in:
parent
e22c8a8378
commit
4c3a5f7397
@ -58,7 +58,7 @@ int rtlsdr_get_sample_rate(rtlsdr_dev_t *dev);
|
|||||||
|
|
||||||
int rtlsdr_reset_buffer(rtlsdr_dev_t *dev);
|
int rtlsdr_reset_buffer(rtlsdr_dev_t *dev);
|
||||||
|
|
||||||
int rtlsdr_read_sync(rtlsdr_dev_t *dev, void *buf, uint32_t len, uint32_t *n_read);
|
int rtlsdr_read_sync(rtlsdr_dev_t *dev, void *buf, int len, int *n_read);
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
|
@ -30,6 +30,7 @@
|
|||||||
#include "tuner_fc0012.h"
|
#include "tuner_fc0012.h"
|
||||||
#include "tuner_fc0013.h"
|
#include "tuner_fc0013.h"
|
||||||
#include "tuner_fc2580.h"
|
#include "tuner_fc2580.h"
|
||||||
|
#include "rtl-sdr.h"
|
||||||
|
|
||||||
typedef struct rtlsdr_tuner {
|
typedef struct rtlsdr_tuner {
|
||||||
int(*init)(void *);
|
int(*init)(void *);
|
||||||
@ -579,7 +580,7 @@ const char *rtlsdr_get_device_name(uint32_t index)
|
|||||||
return "";
|
return "";
|
||||||
}
|
}
|
||||||
|
|
||||||
rtlsdr_dev_t *rtlsdr_open(int index)
|
rtlsdr_dev_t *rtlsdr_open(uint32_t index)
|
||||||
{
|
{
|
||||||
int r;
|
int r;
|
||||||
int i;
|
int i;
|
||||||
|
Loading…
Reference in New Issue
Block a user