@@ -113,12 +113,12 @@ cdef extern from 'hackrf.h':
113113 pass
114114
115115 ctypedef struct hackrf_transfer:
116- hackrf_device* device
117- uint8_t* buffer
116+ hackrf_device * device
117+ uint8_t * buffer
118118 int buffer_length
119119 int valid_length
120- void * rx_ctx
121- void * tx_ctx
120+ void * rx_ctx
121+ void * tx_ctx
122122
123123 ctypedef struct read_partid_serialno_t:
124124 uint32_t part_id[2 ]
@@ -157,163 +157,163 @@ cdef extern from 'hackrf.h':
157157 uint32_t error
158158
159159 ctypedef struct hackrf_device_list_t:
160- char ** serial_numbers
161- hackrf_usb_board_id* usb_board_ids
162- int * usb_device_index
160+ char * serial_numbers
161+ hackrf_usb_board_id * usb_board_ids
162+ int * usb_device_index
163163 int devicecount
164- void ** usb_devices
164+ void ** usb_devices
165165 int usb_devicecount
166166
167- ctypedef int (* hackrf_sample_block_cb_fn)(hackrf_transfer* transfer)
167+ ctypedef int (* hackrf_sample_block_cb_fn)(hackrf_transfer * transfer)
168168
169- ctypedef void (* hackrf_tx_block_complete_cb_fn)(hackrf_transfer* transfer, int )
169+ ctypedef void (* hackrf_tx_block_complete_cb_fn)(hackrf_transfer * transfer, int )
170170
171- ctypedef void (* hackrf_flush_cb_fn)(void * flush_ctx, int )
171+ ctypedef void (* hackrf_flush_cb_fn)(void * flush_ctx, int )
172172
173173 int hackrf_init()
174174
175175 int hackrf_exit()
176176
177- const char * hackrf_library_version()
177+ const char * hackrf_library_version()
178178
179- const char * hackrf_library_release()
179+ const char * hackrf_library_release()
180180
181- hackrf_device_list_t* hackrf_device_list()
181+ hackrf_device_list_t * hackrf_device_list()
182182
183- void hackrf_device_list_free(hackrf_device_list_t* list )
183+ void hackrf_device_list_free(hackrf_device_list_t * list )
184184
185- int hackrf_device_list_open(hackrf_device_list_t* list , int idx, hackrf_device** device)
185+ int hackrf_device_list_open(hackrf_device_list_t * list , int idx, hackrf_device ** device)
186186
187- int hackrf_open(hackrf_device** device)
187+ int hackrf_open(hackrf_device ** device)
188188
189- int hackrf_open_by_serial(char * desired_serial_number, hackrf_device** device)
189+ int hackrf_open_by_serial(char * desired_serial_number, hackrf_device ** device)
190190
191- int hackrf_close(hackrf_device* device)
191+ int hackrf_close(hackrf_device * device)
192192
193- int hackrf_start_rx(hackrf_device* device, hackrf_sample_block_cb_fn callback, void * rx_ctx)
193+ int hackrf_start_rx(hackrf_device * device, hackrf_sample_block_cb_fn callback, void * rx_ctx)
194194
195- int hackrf_stop_rx(hackrf_device* device)
195+ int hackrf_stop_rx(hackrf_device * device)
196196
197- int hackrf_start_tx(hackrf_device* device, hackrf_sample_block_cb_fn callback, void * tx_ctx)
197+ int hackrf_start_tx(hackrf_device * device, hackrf_sample_block_cb_fn callback, void * tx_ctx)
198198
199- int hackrf_set_tx_block_complete_callback(hackrf_device* device, hackrf_tx_block_complete_cb_fn callback)
199+ int hackrf_set_tx_block_complete_callback(hackrf_device * device, hackrf_tx_block_complete_cb_fn callback)
200200
201- int hackrf_enable_tx_flush(hackrf_device* device, hackrf_flush_cb_fn callback, void * flush_ctx)
201+ int hackrf_enable_tx_flush(hackrf_device * device, hackrf_flush_cb_fn callback, void * flush_ctx)
202202
203- int hackrf_stop_tx(hackrf_device* device)
203+ int hackrf_stop_tx(hackrf_device * device)
204204
205- int hackrf_get_m0_state(hackrf_device* device, hackrf_m0_state* value)
205+ int hackrf_get_m0_state(hackrf_device * device, hackrf_m0_state * value)
206206
207- int hackrf_set_tx_underrun_limit(hackrf_device* device, uint32_t value)
207+ int hackrf_set_tx_underrun_limit(hackrf_device * device, uint32_t value)
208208
209- int hackrf_set_rx_overrun_limit(hackrf_device* device, uint32_t value)
209+ int hackrf_set_rx_overrun_limit(hackrf_device * device, uint32_t value)
210210
211- int hackrf_is_streaming(hackrf_device* device)
211+ int hackrf_is_streaming(hackrf_device * device)
212212
213- int hackrf_max2837_read(hackrf_device* device, uint8_t register_number, uint16_t* value)
213+ int hackrf_max2837_read(hackrf_device * device, uint8_t register_number, uint16_t * value)
214214
215- int hackrf_max2837_write(hackrf_device* device, uint8_t register_number, uint16_t value)
215+ int hackrf_max2837_write(hackrf_device * device, uint8_t register_number, uint16_t value)
216216
217- int hackrf_si5351c_read(hackrf_device* device, uint16_t register_number, uint16_t* value)
217+ int hackrf_si5351c_read(hackrf_device * device, uint16_t register_number, uint16_t * value)
218218
219- int hackrf_si5351c_write(hackrf_device* device, uint16_t register_number, uint16_t value)
219+ int hackrf_si5351c_write(hackrf_device * device, uint16_t register_number, uint16_t value)
220220
221- int hackrf_set_baseband_filter_bandwidth(hackrf_device* device, const uint32_t bandwidth_hz)
221+ int hackrf_set_baseband_filter_bandwidth(hackrf_device * device, const uint32_t bandwidth_hz)
222222
223- int hackrf_rffc5071_read(hackrf_device* device, uint8_t register_number, uint16_t* value)
223+ int hackrf_rffc5071_read(hackrf_device * device, uint8_t register_number, uint16_t * value)
224224
225- int hackrf_rffc5071_write(hackrf_device* device, uint8_t register_number, uint16_t value)
225+ int hackrf_rffc5071_write(hackrf_device * device, uint8_t register_number, uint16_t value)
226226
227- int hackrf_spiflash_erase(hackrf_device* device)
227+ int hackrf_spiflash_erase(hackrf_device * device)
228228
229- int hackrf_spiflash_write(hackrf_device* device, const uint32_t address, const uint16_t length, unsigned char * data)
229+ int hackrf_spiflash_write(hackrf_device * device, const uint32_t address, const uint16_t length, unsigned char * data)
230230
231- int hackrf_spiflash_read(hackrf_device* device, const uint32_t address, const uint16_t length, unsigned char * data)
231+ int hackrf_spiflash_read(hackrf_device * device, const uint32_t address, const uint16_t length, unsigned char * data)
232232
233- int hackrf_spiflash_status(hackrf_device* device, uint8_t* data)
233+ int hackrf_spiflash_status(hackrf_device * device, uint8_t * data)
234234
235- int hackrf_spiflash_clear_status(hackrf_device* device)
235+ int hackrf_spiflash_clear_status(hackrf_device * device)
236236
237- int hackrf_cpld_write(hackrf_device* device, unsigned char * data, const unsigned int total_length)
237+ int hackrf_cpld_write(hackrf_device * device, unsigned char * data, const unsigned int total_length)
238238
239- int hackrf_board_id_read(hackrf_device* device, uint8_t* value)
239+ int hackrf_board_id_read(hackrf_device * device, uint8_t * value)
240240
241- int hackrf_version_string_read(hackrf_device* device, char * version, uint8_t length)
241+ int hackrf_version_string_read(hackrf_device * device, char * version, uint8_t length)
242242
243- int hackrf_usb_api_version_read(hackrf_device* device, uint16_t* version)
243+ int hackrf_usb_api_version_read(hackrf_device * device, uint16_t * version)
244244
245- int hackrf_set_freq(hackrf_device* device, const uint64_t freq_hz)
245+ int hackrf_set_freq(hackrf_device * device, const uint64_t freq_hz)
246246
247- int hackrf_set_freq_explicit(hackrf_device* device, const uint64_t if_freq_hz, const uint64_t lo_freq_hz, const rf_path_filter path)
247+ int hackrf_set_freq_explicit(hackrf_device * device, const uint64_t if_freq_hz, const uint64_t lo_freq_hz, const rf_path_filter path)
248248
249- int hackrf_set_sample_rate_manual(hackrf_device* device, const uint32_t freq_hz, const uint32_t divider)
249+ int hackrf_set_sample_rate_manual(hackrf_device * device, const uint32_t freq_hz, const uint32_t divider)
250250
251- int hackrf_set_sample_rate(hackrf_device* device, const double freq_hz)
251+ int hackrf_set_sample_rate(hackrf_device * device, const double freq_hz)
252252
253- int hackrf_set_amp_enable(hackrf_device* device, const uint8_t value)
253+ int hackrf_set_amp_enable(hackrf_device * device, const uint8_t value)
254254
255- int hackrf_board_partid_serialno_read(hackrf_device* device, read_partid_serialno_t* read_partid_serialno)
255+ int hackrf_board_partid_serialno_read(hackrf_device * device, read_partid_serialno_t * read_partid_serialno)
256256
257- int hackrf_set_lna_gain(hackrf_device* device, uint32_t value)
257+ int hackrf_set_lna_gain(hackrf_device * device, uint32_t value)
258258
259- int hackrf_set_vga_gain(hackrf_device* device, uint32_t value)
259+ int hackrf_set_vga_gain(hackrf_device * device, uint32_t value)
260260
261- int hackrf_set_txvga_gain(hackrf_device* device, uint32_t value)
261+ int hackrf_set_txvga_gain(hackrf_device * device, uint32_t value)
262262
263- int hackrf_set_antenna_enable(hackrf_device* device, const uint8_t value)
263+ int hackrf_set_antenna_enable(hackrf_device * device, const uint8_t value)
264264
265- const char * hackrf_error_name(int errcode)
265+ const char * hackrf_error_name(int errcode)
266266
267- const char * hackrf_board_id_name(int board_id)
267+ const char * hackrf_board_id_name(int board_id)
268268
269269 uint32_t hackrf_board_id_platform(hackrf_board_id board_id)
270270
271- const char * hackrf_usb_board_id_name(hackrf_usb_board_id usb_board_id)
271+ const char * hackrf_usb_board_id_name(hackrf_usb_board_id usb_board_id)
272272
273- const char * hackrf_filter_path_name(const rf_path_filter path)
273+ const char * hackrf_filter_path_name(const rf_path_filter path)
274274
275275 uint32_t hackrf_compute_baseband_filter_bw_round_down_lt(const uint32_t bandwidth_hz)
276276
277277 uint32_t hackrf_compute_baseband_filter_bw(const uint32_t bandwidth_hz)
278278
279- int hackrf_set_hw_sync_mode(hackrf_device* device, const uint8_t value)
279+ int hackrf_set_hw_sync_mode(hackrf_device * device, const uint8_t value)
280280
281- int hackrf_init_sweep(hackrf_device* device, const uint16_t* frequency_list, const int num_ranges, const uint32_t num_bytes, const uint32_t step_width, const uint32_t offset, const sweep_style style)
281+ int hackrf_init_sweep(hackrf_device * device, const uint16_t * frequency_list, const int num_ranges, const uint32_t num_bytes, const uint32_t step_width, const uint32_t offset, const sweep_style style)
282282
283- int hackrf_get_operacake_boards(hackrf_device* device, uint8_t* boards)
283+ int hackrf_get_operacake_boards(hackrf_device * device, uint8_t * boards)
284284
285- int hackrf_set_operacake_mode(hackrf_device* device, uint8_t address, operacake_switching_mode mode)
285+ int hackrf_set_operacake_mode(hackrf_device * device, uint8_t address, operacake_switching_mode mode)
286286
287- int hackrf_get_operacake_mode(hackrf_device* device, uint8_t address, operacake_switching_mode* mode)
287+ int hackrf_get_operacake_mode(hackrf_device * device, uint8_t address, operacake_switching_mode * mode)
288288
289- int hackrf_set_operacake_ports(hackrf_device* device, uint8_t address, uint8_t port_a, uint8_t port_b)
289+ int hackrf_set_operacake_ports(hackrf_device * device, uint8_t address, uint8_t port_a, uint8_t port_b)
290290
291- int hackrf_set_operacake_dwell_times(hackrf_device* device, hackrf_operacake_dwell_time* dwell_times, uint8_t count)
291+ int hackrf_set_operacake_dwell_times(hackrf_device * device, hackrf_operacake_dwell_time * dwell_times, uint8_t count)
292292
293- int hackrf_set_operacake_freq_ranges(hackrf_device* device, hackrf_operacake_freq_range* freq_ranges, uint8_t count)
293+ int hackrf_set_operacake_freq_ranges(hackrf_device * device, hackrf_operacake_freq_range * freq_ranges, uint8_t count)
294294
295- int hackrf_reset(hackrf_device* device)
295+ int hackrf_reset(hackrf_device * device)
296296
297- int hackrf_set_clkout_enable(hackrf_device* device, const uint8_t value)
297+ int hackrf_set_clkout_enable(hackrf_device * device, const uint8_t value)
298298
299- int hackrf_get_clkin_status(hackrf_device* device, uint8_t* status)
299+ int hackrf_get_clkin_status(hackrf_device * device, uint8_t * status)
300300
301- int hackrf_operacake_gpio_test(hackrf_device* device, uint8_t address, uint16_t* test_result)
301+ int hackrf_operacake_gpio_test(hackrf_device * device, uint8_t address, uint16_t * test_result)
302302
303- int hackrf_cpld_checksum(hackrf_device* device, uint32_t* crc)
303+ int hackrf_cpld_checksum(hackrf_device * device, uint32_t * crc)
304304
305- int hackrf_set_ui_enable(hackrf_device* device, const uint8_t value)
305+ int hackrf_set_ui_enable(hackrf_device * device, const uint8_t value)
306306
307- int hackrf_start_rx_sweep(hackrf_device* device, hackrf_sample_block_cb_fn callback, void * rx_ctx)
307+ int hackrf_start_rx_sweep(hackrf_device * device, hackrf_sample_block_cb_fn callback, void * rx_ctx)
308308
309- size_t hackrf_get_transfer_buffer_size(hackrf_device* device)
309+ size_t hackrf_get_transfer_buffer_size(hackrf_device * device)
310310
311- uint32_t hackrf_get_transfer_queue_depth(hackrf_device* device)
311+ uint32_t hackrf_get_transfer_queue_depth(hackrf_device * device)
312312
313- int hackrf_board_rev_read(hackrf_device* device, uint8_t* value)
313+ int hackrf_board_rev_read(hackrf_device * device, uint8_t * value)
314314
315- const char * hackrf_board_rev_name(uint8_t board_rev)
315+ const char * hackrf_board_rev_name(uint8_t board_rev)
316316
317- int hackrf_set_leds(hackrf_device* device, const uint8_t state)
317+ int hackrf_set_leds(hackrf_device * device, const uint8_t state)
318318
319- int hackrf_set_user_bias_t_opts(hackrf_device* device, hackrf_bias_t_user_settting_req* req)
319+ int hackrf_set_user_bias_t_opts(hackrf_device * device, hackrf_bias_t_user_settting_req * req)
0 commit comments