I want to write a function in C++ to do the "channel selection" for a hardware which is a A-to-D card with 16 channels.
The information provided by the card manual is here:
I/O port address H278: output A/D channel number (low nibble)
I want to know how to write the code. Can you give me some examples in your explanation. Thanks