MCPcopy Create free account

hub / github.com/demantz/hackrf_android / functions

Functions59 in github.com/demantz/hackrf_android

↓ 51 callersMethodprintOnScreen
Will append the message to the tv_output TextView. Can be called from outside the GUI thread because it uses the handler reference to access the TextV
examples/hackRF_Test/src/main/java/com/mantz_it/hackrf_test/MainActivity.java:235
↓ 13 callersMethodgetPacketSize
This returns the size of the packets that are used in receiving / transmitting samples. Note that the size is measured in bytes and a complex sample a
app/src/main/java/com/mantz_it/hackrf_android/Hackrf.java:322
↓ 13 callersMethodsendUsbRequest
Executes a Request to the USB interface. Note: This function interacts with the USB Hardware and should not be called from a GUI Thread! @param endp
app/src/main/java/com/mantz_it/hackrf_android/Hackrf.java:488
↓ 10 callersMethodtoggleButtonsEnabledIfTransceiving
Will set 'Info', 'RX' and 'TX' to disabled and 'stop' to enabled (while receiving/transmitting is running). If false is given, the behavior toggles. C
examples/hackRF_Test/src/main/java/com/mantz_it/hackrf_test/MainActivity.java:275
↓ 7 callersMethodgetTransceiverPacketCounter
This returns the number of packets (of size getPacketSize()) received/transmitted since start. @return Number of packets (of size getPacketSize()) re
app/src/main/java/com/mantz_it/hackrf_android/Hackrf.java:372
↓ 7 callersMethodgetTransceivingTime
This returns the time in milliseconds since receiving/transmitting was started. @return time in milliseconds since receiving/transmitting was started
app/src/main/java/com/mantz_it/hackrf_android/Hackrf.java:382
↓ 7 callersMethodtoggleButtonsEnabledIfHackrfReady
Will set all buttons to disabled except for the 'open hackrf' button. If false is given, the behavior toggles. Can be called from outside the GUI thre
examples/hackRF_Test/src/main/java/com/mantz_it/hackrf_test/MainActivity.java:253
↓ 5 callersMethodstop
Stops receiving or transmitting. @throws HackrfUsbException
app/src/main/java/com/mantz_it/hackrf_android/Hackrf.java:1047
↓ 4 callersMethodintToByteArray
Converts an integer into a byte array using little endian byteorder. @param i integer @return byte array (length 4)
app/src/main/java/com/mantz_it/hackrf_android/Hackrf.java:444
↓ 3 callersMethodgetBoardID
Returns the Board ID of the HackRF. Note: This function interacts with the USB Hardware and should not be called from a GUI Thread! @return HackRF B
app/src/main/java/com/mantz_it/hackrf_android/Hackrf.java:529
↓ 3 callersMethodgetBufferFromBufferPool
Get a buffer (byte array with size getPacketSize()) that can be used to hold samples for transmitting. Use this function to allocate your buffers whic
app/src/main/java/com/mantz_it/hackrf_android/Hackrf.java:337
↓ 3 callersMethodonHackrfError
Called if there was an error when accessing the device. @param message Reason for the Error
app/src/main/java/com/mantz_it/hackrf_android/HackrfCallbackInterface.java:46
↓ 3 callersMethodsetTransceiverMode
Sets the Transceiver Mode of the HackRF (OFF,RX,TX) Note: This function interacts with the USB Hardware and should not be called from a GUI Thread!
app/src/main/java/com/mantz_it/hackrf_android/Hackrf.java:970
↓ 2 callersMethodcomputeBasebandFilterBandwidth
Computes a valid Baseband Filter Bandwidth that is closest to a given Sample Rate. If there is no exact match, the returned Bandwidth will be smaller
app/src/main/java/com/mantz_it/hackrf_android/Hackrf.java:659
↓ 2 callersMethodgetAverageTransceiveRate
Returns the average rx/tx transfer rate in byte/seconds. @return average transfer rate in byte/seconds
app/src/main/java/com/mantz_it/hackrf_android/Hackrf.java:394
↓ 2 callersMethodlongToByteArray
Converts a long integer into a byte array using little endian byteorder. @param i long integer @return byte array (length 8)
app/src/main/java/com/mantz_it/hackrf_android/Hackrf.java:460
↓ 2 callersMethodreadGuiElements
Will read the values from the GUI elements into the corresponding variables
examples/hackRF_Test/src/main/java/com/mantz_it/hackrf_test/MainActivity.java:290
↓ 2 callersMethodreturnBufferToBufferPool
Returns a buffer that isn't used by the application any more to the buffer pool of this hackrf instance. The buffer must be a byte array with size get
app/src/main/java/com/mantz_it/hackrf_android/Hackrf.java:356
↓ 2 callersMethodsetAmp
Enables or Disables the Amplifier of the HackRF. Note: This function interacts with the USB Hardware and should not be called from a GUI Thread! @pa
app/src/main/java/com/mantz_it/hackrf_android/Hackrf.java:916
↓ 2 callersMethodsetAntennaPower
Enables or Disables the Antenna Port Power of the HackRF. Note: This function interacts with the USB Hardware and should not be called from a GUI Thr
app/src/main/java/com/mantz_it/hackrf_android/Hackrf.java:938
↓ 2 callersMethodsetBasebandFilterBandwidth
Sets the baseband filter bandwidth of the HackRF. Note: This function interacts with the USB Hardware and should not be called from a GUI Thread! @p
app/src/main/java/com/mantz_it/hackrf_android/Hackrf.java:687
↓ 2 callersMethodsetFrequency
Sets the Frequency of the HackRF. Note: This function interacts with the USB Hardware and should not be called from a GUI Thread! @param frequency F
app/src/main/java/com/mantz_it/hackrf_android/Hackrf.java:825
↓ 2 callersMethodsetSampleRate
Sets the Sample Rate of the HackRF. Note: This function interacts with the USB Hardware and should not be called from a GUI Thread! @param sampRate
app/src/main/java/com/mantz_it/hackrf_android/Hackrf.java:628
↓ 1 callersMethodbyteArrayToInt
Converts a byte array into an integer using little endian byteorder. @param b byte array (length 4) @param offset offset pointing to the first byte
app/src/main/java/com/mantz_it/hackrf_android/Hackrf.java:418
↓ 1 callersMethodconvertBoardIdToString
Converts the Board ID into a human readable String (e.g. #2 => "HackRF One") @param boardID boardID to convert @return Board ID interpretation as Str
app/src/main/java/com/mantz_it/hackrf_android/Hackrf.java:549
↓ 1 callersMethodgetPartIdAndSerialNo
Returns the Part ID + Serial Number of the HackRF. Note: This function interacts with the USB Hardware and should not be called from a GUI Thread! @
app/src/main/java/com/mantz_it/hackrf_android/Hackrf.java:597
↓ 1 callersMethodgetVersionString
Returns the Version String of the HackRF. Note: This function interacts with the USB Hardware and should not be called from a GUI Thread! @return Ha
app/src/main/java/com/mantz_it/hackrf_android/Hackrf.java:571
↓ 1 callersMethodinfoThread
Will run in a separate thread created in info(). Retrieves the BoardID, Version String, PartID and Serial number from the device and then print the in
examples/hackRF_Test/src/main/java/com/mantz_it/hackrf_test/MainActivity.java:468
↓ 1 callersMethodinitHackrf
Initializing the Hackrf Instance with a USB Device. This will try to request the permissions to open the USB device and then create an instance of the
app/src/main/java/com/mantz_it/hackrf_android/Hackrf.java:141
↓ 1 callersMethodonHackrfReady
Called by initHackrf() after the device is ready to be used. @param hackrf Instance of the HackRF that provides access to the device
app/src/main/java/com/mantz_it/hackrf_android/HackrfCallbackInterface.java:38
↓ 1 callersMethodreceiveLoop
This method will be executed in a separate Thread after the HackRF starts receiving Samples. It will return as soon as the transceiverMode changes or
app/src/main/java/com/mantz_it/hackrf_android/Hackrf.java:1057
↓ 1 callersMethodreceiveThread
Will run in a separate thread created in rx(). Sets the HackRF into receiving mode and then save the received samples to a file. Will run forever unti
examples/hackRF_Test/src/main/java/com/mantz_it/hackrf_test/MainActivity.java:494
↓ 1 callersMethodrx
Is called if the user presses the 'RX' Button. Will start a Thread that sets the HackRF into receiving mode and then save the received samples to a fi
examples/hackRF_Test/src/main/java/com/mantz_it/hackrf_test/MainActivity.java:342
↓ 1 callersMethodsetRxLNAGain
Sets the RX LNA Gain of the HackRF. Note: This function interacts with the USB Hardware and should not be called from a GUI Thread! @param gain RX L
app/src/main/java/com/mantz_it/hackrf_android/Hackrf.java:785
↓ 1 callersMethodsetRxVGAGain
Sets the RX VGA Gain of the HackRF. Note: This function interacts with the USB Hardware and should not be called from a GUI Thread! @param gain RX V
app/src/main/java/com/mantz_it/hackrf_android/Hackrf.java:709
↓ 1 callersMethodsetTxVGAGain
Sets the TX VGA Gain of the HackRF. Note: This function interacts with the USB Hardware and should not be called from a GUI Thread! @param gain TX V
app/src/main/java/com/mantz_it/hackrf_android/Hackrf.java:749
↓ 1 callersMethodstartRX
Starts receiving. @return An ArrayBlockingQueue that will fill with the samples as they arrive. Each queue element is a block of samples (byte[])
app/src/main/java/com/mantz_it/hackrf_android/Hackrf.java:997
↓ 1 callersMethodstartTX
Starts transmitting. @return An ArrayBlockingQueue from which the hackrf will read the samples to transmit. Each queue element must be a block of
app/src/main/java/com/mantz_it/hackrf_android/Hackrf.java:1023
↓ 1 callersMethodtransmitLoop
This method will be executed in a separate Thread after the HackRF starts transmitting Samples. It will return as soon as the transceiverMode changes
app/src/main/java/com/mantz_it/hackrf_android/Hackrf.java:1152
↓ 1 callersMethodtransmitThread
Will run in a separate thread created in tx(). Sets the HackRF into transmitting mode and then read the samples from a file and pass them to the HackR
examples/hackRF_Test/src/main/java/com/mantz_it/hackrf_test/MainActivity.java:631
↓ 1 callersMethodtx
Is called if the user presses the 'TX' Button. Will start a Thread that sets the HackRF into transmitting mode and then read the samples from a file a
examples/hackRF_Test/src/main/java/com/mantz_it/hackrf_test/MainActivity.java:371
MethodHackrf
Initializing the Hackrf Instance with a USB Device. Note: The application must have reclaimed permissions to access the USB Device BEFOR calling this
app/src/main/java/com/mantz_it/hackrf_android/Hackrf.java:259
MethodHackrfUsbException
(String message)
app/src/main/java/com/mantz_it/hackrf_android/HackrfUsbException.java:33
MethodbyteArrayToLong
Converts a byte array into a long integer using little endian byteorder. @param b byte array (length 8) @param offset offset pointing to the first
app/src/main/java/com/mantz_it/hackrf_android/Hackrf.java:431
MethodgetTransceiverMode
Returns the current mode of receiving / transmitting @return HACKRF_TRANSCEIVER_MODE_OFF, _RECEIVE, _TRANSMIT
app/src/main/java/com/mantz_it/hackrf_android/Hackrf.java:407
Methodinfo
Is called if the user presses the 'Info' Button. Will start a Thread that retrieves the BoardID, Version String, PartID and Serial number from the dev
examples/hackRF_Test/src/main/java/com/mantz_it/hackrf_test/MainActivity.java:326
MethodonCreate
(Bundle savedInstanceState)
examples/hackRF_Test/src/main/java/com/mantz_it/hackrf_test/MainActivity.java:120
MethodonCreateOptionsMenu
(Menu menu)
examples/hackRF_Test/src/main/java/com/mantz_it/hackrf_test/MainActivity.java:176
MethodonDestroy
()
examples/hackRF_Test/src/main/java/com/mantz_it/hackrf_test/MainActivity.java:169
MethodonHackrfError
Is called by the hackrf_android library after a error occurred while opening the device. Was triggered by the initHackrf() call in openHackrf(). See a
examples/hackRF_Test/src/main/java/com/mantz_it/hackrf_test/MainActivity.java:439
MethodonHackrfReady
Is called by the hackrf_android library after the device is ready. Was triggered by the initHackrf() call in openHackrf(). See also HackrfCallbackInte
examples/hackRF_Test/src/main/java/com/mantz_it/hackrf_test/MainActivity.java:422
MethodonOptionsItemSelected
(MenuItem item)
examples/hackRF_Test/src/main/java/com/mantz_it/hackrf_test/MainActivity.java:183
MethodonReceive
(Context context, Intent intent)
app/src/main/java/com/mantz_it/hackrf_android/Hackrf.java:200
MethodonRequestPermissionsResult
(int requestCode, String permissions[], int[] grantResults)
examples/hackRF_Test/src/main/java/com/mantz_it/hackrf_test/MainActivity.java:205
MethodopenHackrf
Is called if the user presses the 'Open HackRF' Button. Will initialize the HackRF device. @param view Reference to the calling View (in this case b
examples/hackRF_Test/src/main/java/com/mantz_it/hackrf_test/MainActivity.java:307
Methodrun
This method will run when a new Thread was created. It simply calls receiveLoop() or transmitLoop() according to the transceiveMode.
app/src/main/java/com/mantz_it/hackrf_android/Hackrf.java:1260
Methodrun
()
examples/hackRF_Test/src/main/java/com/mantz_it/hackrf_test/MainActivity.java:238
MethodsetFrequencyExplicit
Sets the explicit IF and LO frequency of the HackRF. Note: This function interacts with the USB Hardware and should not be called from a GUI Thread!
app/src/main/java/com/mantz_it/hackrf_android/Hackrf.java:863
Methodstop
Is called if the user presses the 'Stop' Button. Will set the stopRequested attribute to true, which will cause any running thread to shut down. It wi
examples/hackRF_Test/src/main/java/com/mantz_it/hackrf_test/MainActivity.java:399