Device Id Lookup API function

Started by Ivan001, July 24, 2011, 02:24:20 PM

Previous topic - Next topic

Ivan001

In the APIs you have a function called ReadSignature. This returns a string representation of the devices numeric Id.
It would be good if this could be converted to your device Id enumeration such that it could be passed in to the connect function.

Andy Ayre

In some cases passing the wrong device to the connect function could cause serious problems, therefore it would be dangerous to automatically pass the result of reading the signature.

In the vast majority of cases we would expect custom software to only support a very small subset of devices in a particular device family, which would make constructing a signature lookup table trivial. This approach inherently provides sanity checking of what devices are expected.

Andy
Embedded Systems Academy, Inc.
support at esacademy dot com