API Guide Home (Online version only) |

# TransparencyLib.h File Reference

## Detailed Description

Transparency Library that couples a Ccp channel and a serial port.

This library can be used to couple data between a Ccp channel and a serial port. It is meant to be used for diagnostics and tethered mode. Since it is a library, it can work without being in a certain application.

Definition in file TransparencyLib.h.

Go to the source code of this file.

## Functions

- Err TransLibOpenConnection (UInt16 refNum, CcpChannelType portAChannel, UInt32 portB)
- Err TransLibCloseConnection (UInt16 refNum)

## Function Documentation

Err TransLibCloseConnection | ( | UInt16 | refNum | ) |

Close the Transparency Library previously open and set the radio module in the correct state.

Parameters:

  | refNum,: | IN: Library Reference Number.

Return values:

  | Err | Error code.

Err TransLibOpenConnection | ( | UInt16 | refNum,
|  | CcpChannelType | portAChannel,
|  | UInt32 | portB |
| ) |  |  |

Open the Transparency Library and connect the radio modem directly with a known port.

Parameters:

  | refNum,: | IN: Library Reference Number.
  | portAChannel,: | IN: CcpChannelType of radio port.
  | portB,: | IN: Port ID of the second port. This is the serial or USB port.

Return values:

  | Err | Error code.

     err = SysLibFind (transLibName, &refNum);
     if (!err)
         err=TransLibOpenConnection(refNum,kCcpChannelTypeModem, 0x8000);

Top | Palm Developer Network © 2004-2008, Palm, Inc. All rights reserved. Generated on Fri Jun 13 10:08:08 2008 for Palm API Guide