![]() |
|
|||||
The SDK is layered to allow users to have access as close to the hardware as necessary, and also to provide useful high level abstractions.
Each application that uses the SDK has to create a Channel and provide it with incoming characters. This permits the application to determine exactly how that is done. See TeleoChannelTest.c for example code.
An application that uses a Module Manager first needs to create and set up a Channel to handle the incoming and outgoing characters, then a Module Manager can be created and set up and passed in the Channel so it can hook into the Channel's message facilities. See TeleoModuleTest.c for example code.
An application that uses a Device Manager first needs to create and set up a Channel to handle the incoming and outgoing characters, then a Device Manager can be created and set up and passed in the Channel so it can hook into the Channel's message facilities. There is no need for the application to create a Module Manager, this is done internally in the Device Manager initialization code. See TeleoDeviceTest.c for example code.
More effort needs to be expended working through any threading issues.
The Module Manager can currently only accomodate one Channel. The API is designed to accomodate many. This will involve implementation changes in TeleoModuleManager.c but hopefully no API changes.
|
copyright © 2002, 2003 MakingThings LLC |