mirror of
https://github.com/greatscottgadgets/hackrf.git
synced 2026-03-14 19:29:38 +01:00
Add hackrf_debug option to read ADC
Co-authored-by: Martin Ling <martin-git@earth.li>
This commit is contained in:
@@ -1354,6 +1354,20 @@ extern ADDAPI int ADDCALL hackrf_read_selftest(
|
||||
hackrf_device* device,
|
||||
hackrf_selftest* value);
|
||||
|
||||
/**
|
||||
* Read a value from an ADC channel
|
||||
*
|
||||
* @param[in] device device to query
|
||||
* @param[in] adc_channel ADC channel, e.g. 0 for ADC0_0. Add 0x80 to use an alternate pin.
|
||||
* @param[out] value Value read from ADC.
|
||||
* @return @ref HACKRF_SUCCESS on success or @ref hackrf_error variant
|
||||
* @ingroup debug
|
||||
*/
|
||||
extern ADDAPI int ADDCALL hackrf_read_adc(
|
||||
hackrf_device* device,
|
||||
uint8_t adc_channel,
|
||||
uint16_t* value);
|
||||
|
||||
/**
|
||||
* Set transmit underrun limit
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user