Add device struct
This commit is contained in:
parent
e04c631b09
commit
8e7ba91094
1 changed files with 17 additions and 1 deletions
|
@ -95,6 +95,21 @@ static int do_exit = 0;
|
|||
static uint32_t bytes_to_read = 0;
|
||||
static rtlsdr_dev_t *dev = NULL;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
struct device_struct {
|
||||
unsigned int device_id;
|
||||
char* device_name;
|
||||
unsigned int device_modulation;
|
||||
unsigned int device_short_limit;
|
||||
unsigned int device_long_limit;
|
||||
unsigned int device_reset_limit;
|
||||
int (*json_callback)(uint8_t bits_buffer[BITBUF_ROWS][BITBUF_COLS]) ;
|
||||
};
|
||||
|
||||
|
||||
struct protocol_state {
|
||||
/* bits state */
|
||||
int bits_col_idx;
|
||||
|
@ -118,9 +133,10 @@ struct protocol_state {
|
|||
int long_limit;
|
||||
int reset_limit;
|
||||
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
struct dm_state {
|
||||
FILE *file;
|
||||
int save_data;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue