sample_hold is a very simple but very useful HAL component. Except it
isn't as useful as it could be as it is S32.

I would like to extend it to support all datatypes, but I can think of
3 ways to do it.

1) It has in and out for all data types, they work in parallel and
independently so bit->bit and float->float. You can use all of the
partners in any one instance. There are 2 S32 pins, one retaining the
old name for compatibility. Alternatively, not.
2) It has a modparam-configured input type, and creates a full set of
output types with appropriate conversion (defaulting to S32 for
compatibility)
3) It has a modparam-configured input type, and creates a full set of
output types with appropriate conversion and a gain/offset like sum2
etc (defaulting to S32 for compatibility)
Amongst the ways to do it include such diverse elements as:
4) modparam configured in and out types. defaulting to S32, with
appropriate conversion where they differ.
4a) The same, with gain/offset

I think 1 and 3 are probably the most useful.

-- 
atp
If you can't fix it, you don't own it.
http://www.ifixit.com/Manifesto

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Emc-developers mailing list
Emc-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-developers

Reply via email to