Exported Tcl interface
This table shows what functions are required in the Tcl section of a PDL program. It also shows what interface these functions must present to the programmable driver module:
Function | Description |
---|---|
hci_pd.open
info |
This function is called when the driver is opened, after the Tcl data
structures are initialized, but before anything happens. The When this (Tcl) function returns, the driver enters the NEW state. If this function fails, then the driver is destroyed and the attempt of the system to open the driver fails. |
hci_pd.initialize
info |
This is called to initialize the driver, when the
driver moves from the NEW state to the IDLE state. Typical functionality for Currently,
|
hci_pd.shutdown
info |
This function is called to shut down the driver. This procedure is not invoked when the driver is shut down in panic mode. Currently, |
hci_pd.read
info |
This function is called when data becomes available on the line and the driver is in the IDLE state. Under these conditions, it is presumed that a message phrase is arriving over the line, and this function is called to handle message reading. Handling data arriving on the line involves invoking
Currently, |
hci_pd.write
info |
This function is called to write a message on the
line from the thread, where info
contains the key message .
Note: Do not define your own procedures or variables with
the
hci_pd prefix. This name
subspace is reserved for this version and later versions of PDL.
|