From e42911405c4bc2f8c097f47d4598baf8522ef3da Mon Sep 17 00:00:00 2001 From: FreeArtMan Date: Sun, 8 May 2016 16:02:01 +0100 Subject: Moved source to src directory --- hw/hw_eeprom.c | 47 ----------------------------------------------- 1 file changed, 47 deletions(-) delete mode 100644 hw/hw_eeprom.c (limited to 'hw/hw_eeprom.c') diff --git a/hw/hw_eeprom.c b/hw/hw_eeprom.c deleted file mode 100644 index 10ae817..0000000 --- a/hw/hw_eeprom.c +++ /dev/null @@ -1,47 +0,0 @@ -#include "hw_eeprom.h" - - - -int dump_eeprom( rtlsdr_dev_t *dev, uint8_t *data, uint16_t len ) -{ - int fret = 0; - - if ( len != EEPROM_SIZE ) - { - printf("EEPROM sump size expected to be %d\n", EEPROM_SIZE); - return -1; - } - - fret = hw_read_eeprom( dev, data, 0, len ); - if ( fret != 0 ) - { - printf("Cannot read eeprom rtlsdr err (%d)\n", fret); - return -1; - } - - return 0; -} - - -int restore_eeprom( rtlsdr_dev_t *dev, uint8_t *data, uint16_t len ) -{ - int fret = 0; - - if ( len != EEPROM_SIZE ) - { - printf("EEPROM sump size expected to be %d\n", EEPROM_SIZE); - return -1; - } - - fret = hw_write_eeprom( dev, data, 0, len ); - if ( fret != 0 ) - { - printf("Cannot write eeprom rtlsdr err(%d)\n", fret); - return -1; - } - - - return 0; -} - - -- cgit v1.2.3