Skip to content

Commit 8970418

Browse files
committed
updated
1 parent 54cded3 commit 8970418

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

python_hackrf/pylibhackrf/pyhackrf.pyi

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -484,7 +484,7 @@ class PyHackrfDevice:
484484
def set_rx_callback(self, rx_callback_function: Callable[[Self, np.ndarray, int, int], int]) -> None:
485485
'''
486486
Accept a 4 args that contains the device, buffer, the maximum length and the length of the buffer data.
487-
device: PyHackrfDevice, buffer: numpy.array(dtype=numpy.uint8), buffer_length: int, valid_length: int
487+
device: PyHackrfDevice, buffer: numpy.array(dtype=numpy.int8), buffer_length: int, valid_length: int
488488
489489
Should copy/process the contents of the buffer's valid part.
490490
@@ -495,7 +495,7 @@ class PyHackrfDevice:
495495
def set_tx_callback(self, tx_callback_function: Callable[[Self, np.ndarray, int, int], tuple[int, np.ndarray, int]]) -> None:
496496
'''
497497
Accept a 4 args that contains the device, buffer, the maximum length and the length of the buffer data.
498-
device: PyHackrfDevice, buffer: numpy.array(dtype=numpy.uint8), buffer_length: int, valid_length: int
498+
device: PyHackrfDevice, buffer: numpy.array(dtype=numpy.int8), buffer_length: int, valid_length: int
499499
500500
501501
The callback should return 0 if it should be called again, and any other value otherwise.
@@ -506,7 +506,7 @@ class PyHackrfDevice:
506506
def set_sweep_callback(self, sweep_callback_function: Callable[[Self, np.ndarray, int, int], int]) -> None:
507507
'''
508508
Accept a 4 args that contains the device, buffer, the maximum length and the length of the buffer data.
509-
device: PyHackrfDevice, buffer: numpy.array(dtype=numpy.uint8), buffer_length: int, valid_length: int
509+
device: PyHackrfDevice, buffer: numpy.array(dtype=numpy.int8), buffer_length: int, valid_length: int
510510
511511
Should copy/process the contents of the buffer's valid part.
512512
@@ -518,7 +518,7 @@ class PyHackrfDevice:
518518
def set_tx_complete_callback(self, tx_complete_callback_function: Callable[[Self, np.ndarray, int, int, bool], None]) -> None:
519519
'''
520520
Accept a 5 args that contains the device, buffer, the maximum length and the length of the buffer data.
521-
device: PyHackrfDevice, buffer: numpy.array(dtype=numpy.uint8), buffer_length: int, valid_length: int
521+
device: PyHackrfDevice, buffer: numpy.array(dtype=numpy.int8), buffer_length: int, valid_length: int
522522
and
523523
success: int # if the transfer was successful or not
524524
'''

0 commit comments

Comments
 (0)