EasyManua.ls Logo

Great Scott Gadgets HackRF - HackRF API Enumerations

Great Scott Gadgets HackRF
104 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
HackRF
20.1.4 HackRF Device List Open
Open and acquire a handle on a device from the hackrf_device_list_t struct.
Syntax: int hackrf_device_list_open(hackrf_device_list_t* list, int idx, hackrf_device**
device)
Params:
list - A pointer to a hackrf_device_list_t returned by hackrf_device_list()
idx - The list index of the HackRF device to open
device - Output location for hackrf_device pointer. Only valid when return value is HACKRF_SUCCESS.
Returns: A value from the hackrf_error constants listed below.
20.1.5 HackRF Device List Free
Syntax: void hackrf_device_list_free(hackrf_device_list_t* list)
Params:
list - A pointer to a hackrf_device_list_t returned by hackrf_device_list()
20.1.6 HackRF Open By Serial
Syntax: int hackrf_open_by_serial(const char* const desired_serial_number, hackrf_device**
device)
Returns:
20.1.7 HackRF Close
Syntax: int hackrf_close(hackrf_device* device)
Returns: A value from the hackrf_error constants listed below.
20.1.8 HackRF Exit
Cleanly shutdown libHackRF and the underlying USB context. This does not stop in progress transfers or close the
HackRF hardware. hackrf_close() should be called before this to cleanly close the connection to the hardware.
Syntax: int hackrf_exit()
Returns: A value from the hackrf_error constants listed below.
66 Chapter 20. libhackRF API

Table of Contents