Is there a way to get the rx configuration, or the individual settings through libbladerf? for example, in bladerfcli you can enter "rx" and get the settings:
bladeRF> rx
State: Idle
Last error: None
File: Not configured
File format: SC16 Q11, Binary
# Samples: 100000
# Buffers: 32
# Samples per buffer: 32768
# Transfers: 16
Timeout (ms): 1000
bladeRF>
I'm using C# and have the NativeMethods.cs and cannot find it there or in the LibBladeRF API documentation.
Thanks,
Kevin
How to query Rx config
-
- Posts: 303
- Joined: Mon Mar 04, 2013 4:53 pm
Re: How to query Rx config
That state is maintained in the CLI itself and not in the library.
Sorry for the misunderstanding.
Sorry for the misunderstanding.
-
- Posts: 10
- Joined: Wed Jun 15, 2016 11:22 am
Re: How to query Rx config
Thanks bpadalino. So those are default values chosen by the programmer and sent to the BladeRF in the bladerf_sync_config() command just before receiving? I notice in the NativeMethods.cs that the bladerf_sync_config() command returns a status, but that it is not examined - is there a reason? Thanks for the newbie support.
Kevin
Kevin
-
- Posts: 303
- Joined: Mon Mar 04, 2013 4:53 pm
Re: How to query Rx config
You should always check the return codes of all the functions after calling them. I don't know anything about C# so I am not sure what you mean about NativeMethods.cs, but if you call it and it returns an error code - you absolutely should check it.
Sorry if this answer isn't useful.
Sorry if this answer isn't useful.