Gene, Why don't you write your own component? I have several times found it easier to write a component that does just what need rather than cobbling something together with the existing HAL comps.
Here is the code for a mux2 that handles s32. To install I would run: halcompile --install mux2s32.comp Don't know if you have the dev packages to do that on your pi though. component mux2s32 "Select from one of two input values"; pin in bit sel; pin out s32 out "Follows the value of in0 if sel is FALSE, or in1 if sel is TRUE"; pin in s32 in1; pin in s32 in0; function _; license "GPL"; ;; FUNCTION(_) { if(sel) out = in1; else out = in0; } Regards, Kurt On Tue, Mar 14, 2017 at 8:15 PM, Gene Heskett <ghesk...@shentel.net> wrote: > Greetings everybody; > > In doing this rewrite, I find a need for a reverse s32 mux, where I can > take a single s32 value and steer it to one target or another. > > Such a beast would negate the need to put a "conv this to that" around > almost everything I try to net together in this hal code. > > A mux2 that handled s32's would be a godsend. Every one of those would > get rid of 2 conversion modules and make 3 lines of code into one. > > Is there something in /usr/share/man/man9 hiding under a different name > that could do that? I would save me at least 8 of the conv modules and > make my code a heck of a lot easier to understand for everyone including > me. > > Thanks everybody. > > Cheers, Gene Heskett > -- > "There are four boxes to be used in defense of liberty: > soap, ballot, jury, and ammo. Please use in that order." > -Ed Howdershelt (Author) > Genes Web page <http://geneslinuxbox.net:6309/gene> > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Emc-users mailing list > Emc-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/emc-users > ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users