Device Function

Get Read/Write CID

dev_GetReadWriteCid()

Retrieve the CID of the top layer of a non-multiplexed device.

Syntax
#include "device.h"

LCid    dev_GetReadWriteCid
    (
        LDevice    device
    );
devicedevice to get cid from
Description

dev_GetReadWriteCid() retrieves the CID of the top layer of a non-multiplexed device. This give this application the ability to use standard LayGO functions to read and write on the CID.

Return Values

If successful, dev_GetReadWriteCid() returns a non-negative value. Otherwise, it returns a negative value indicating the reason it failed. Possible unsuccessful return values are:

See Also

dev_GetProtocolCid()

Example
if (dev_Connect(device) < 0)
{
    LOG("Connect failure.");
}
else
{
    cid = dev_GetReadWriteCid(device);

    TransferData(cid);
}