![]() |
|
|||||
#include "TeleoError.h"
#include "TeleoTypes.h"
Go to the source code of this file.
Provides the implementation for opening, reading, writing, and closing interfaces of different types
Designed to be linked with the version of TeleoInterfaceXXX.c that is appropriate for the target OS.
Definition in file TeleoInterface.h.
|
|
Definition at line 34 of file TeleoInterface.h. |
|
||||||||||||
|
Control whether the interface does blocking IO or not.
Definition at line 144 of file TeleoInterfaceLinux.c. References TeleoInterfaceInt::blocking, TELEO_OK, and TeleoError. Referenced by main(), TeleoEasy_Init(), and TeleoModule_Init(). |
|
|
Close the port.
Definition at line 207 of file TeleoInterfaceLinux.c. References TeleoInterfaceInt::deviceHandle, TELEO_OK, TeleoError, and TeleoInterfaceInt::terminalSettingsOld. Referenced by TI_destroy(). |
|
||||||||||||||||
|
Creates and initializes the interface structure. Does not open the device, since there maybe be configuration to be done first. The name may be omitted. If this happens, the default name for the supplied interface type will be used.
Definition at line 46 of file TeleoInterfaceLinux.c. References TeleoInterfaceInt::blocking, TeleoInterfaceInt::interfaceType, TeleoInterfaceInt::name, TELEO_E_ALLOC, TELEO_OK, TeleoError, TI_NETWORK, TI_SERIAL, TI_SERIAL0, TI_SERIAL1, TI_SERIAL2, TI_USB, TI_USB0, TI_USB1, and TI_USB2. Referenced by main(), TeleoEasy_Init(), and TeleoModule_Init(). |
|
|
Destroys the interface.
Definition at line 93 of file TeleoInterfaceLinux.c. References TeleoInterfaceInt::name, TELEO_OK, TeleoError, and TI_close(). Referenced by TeleoEasy_destroy(), TeleoEasy_End(), and TeleoModule_End(). |
|
||||||||||||||||
|
Get characters. Currently only permits a single character at a time.
Definition at line 233 of file TeleoInterfaceLinux.c. References TeleoInterfaceInt::blocking, TeleoInterfaceInt::deviceHandle, TELEO_E_NOTHING, and TeleoError. |
|
||||||||||||
|
Allows the user to retrieve the interface name.
Definition at line 107 of file TeleoInterfaceLinux.c. References TeleoInterfaceInt::name, TELEO_E_NULL_POINTER, TELEO_OK, and TeleoError. |
|
|
Open the port.
Definition at line 155 of file TeleoInterfaceLinux.c. References TeleoInterfaceInt::blocking, TeleoInterfaceInt::deviceHandle, TeleoInterfaceInt::name, TELEO_E_NULL_POINTER, TELEO_E_OPEN, TELEO_OK, TeleoError, TeleoInterfaceInt::terminalSettings, and TeleoInterfaceInt::terminalSettingsOld. Referenced by main(), TeleoEasy_Init(), and TeleoModule_Init(). |
|
||||||||||||||||
|
Put characters.
Definition at line 264 of file TeleoInterfaceLinux.c. References TeleoInterfaceInt::deviceHandle, TELEO_E_IO, TELEO_OK, and TeleoError. Referenced by output(). |
|
|
Sleep for the specified ms.
Definition at line 280 of file TeleoInterfaceLinux.c. References TELEO_OK, and TeleoError. |
|
||||||||||||
|
Allows the user to get the short name - i.e. "ser", "usb", "net", etc.
Definition at line 119 of file TeleoInterfaceLinux.c. References TeleoInterfaceInt::interfaceType, TELEO_E_NULL_POINTER, TELEO_OK, TeleoError, TI_NETWORK, TI_SERIAL, TI_SERIAL0, TI_SERIAL1, TI_SERIAL2, TI_USB, TI_USB0, TI_USB1, and TI_USB2. Referenced by main(), TeleoEasy_Init(), and TeleoModule_Init(). |
|
copyright © 2002, 2003 MakingThings LLC |