Avatar of naseeam
naseeam
Flag for United States of America asked on

Need solution for making no. of devices and device type configurable

Problem:  Write a software library to scan up to Eight Hardware Devices and provide data for each device to the user.  The user needs to tell the library how many devices to scan and which devices to scan.  For example, user may want data from device1, device2, and device8.  In this case, user tell the library to scan three devices.  And they are device1, device2, and device8.  What is the best way to design this interface in which user configures number of devices and which specific devices to scan.

Thank you.
C

Avatar of undefined
Last Comment
sunnycoder

8/22/2022 - Mon
grg99

Heh?   99.7% of the users have NO IDEA what devices are in the computer.    Do *you* know how many CPU to PCI bridges are in your computer?

But, anyway, I'd go with a text file:


Want=device1,device2,device8

naseeam

ASKER
This is for a embedded system, not PC.
When I say user, I don't mean someone using the PC, I mean another software layer.  This another software layer will interface with my software library.  There needs to be some array of structure or some other good interface with which my software library and another software layer will communicate as to for which devices and how many  devices I should provide the data.

Thanks,
ASKER CERTIFIED SOLUTION
sunnycoder

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
rwheeler23