dev_GetReadWriteCid()
Retrieve the CID of the top layer of a non-multiplexed device.
#include "device.h" LCid dev_GetReadWriteCid ( LDevice device );
device | device to get cid from |
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.
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:
if (dev_Connect(device) < 0) { LOG("Connect failure."); } else { cid = dev_GetReadWriteCid(device); TransferData(cid); }