Registering Custom Data Types

Hi again,

The “device streaming” documentation mentions that users may register
their
own data types and converter routines. I’d like to implement a
converter
that takes the sc8 data type from the wire and converts to an sc8 host
data
type. It looks like Josh added this functionality in November of last
year. Could I make use of this converter in rx_samples_to_file? If so,
can you provide an example of general converter use? This is also cited
as
“todo” in the “Device streaming” documentation.

Thank you,
Ryan

Setup: Dell PowerEdge R510 running UHD 3.4.2 on Ubuntu 12.04 server.

On 06/11/2012 09:11 PM, Ryan Wolfarth wrote:

Hi again,

The “device streaming” documentation mentions that users may register their
own data types and converter routines. I’d like to implement a converter
that takes the sc8 data type from the wire and converts to an sc8 host data
type. It looks like Josh added this functionality in November of last
year. Could I make use of this converter in rx_samples_to_file? If so,
can you provide an example of general converter use? This is also cited as
“todo” in the “Device streaming” documentation.

:slight_smile:

If you take a look at lib/convert/* its actually full of examples.
Basically, you can register any arbitrary conversion function with some
identifiers and priority.

FWIW, I pushed a converter for sc8 to/from sc8 host to master just now,
since I think thats all you need.

-josh

Excellent, much appreciated!

-Ryan