Download SDK 8 User's Guide
Transcript
C H A P T E R 2 : F U N C T I O N R E F E R E N C E XLRWriteData Syntax: XLR_RETURN_CODE XLRWriteData( SSHANDLE xlrDevice, PVOID BufAddr, ULONG TransferSize ) Description: XLRWriteData is identical to XLRWrite except that the parameters are not passed in a structure. If the StreamStor is in bank mode, this command will write data from the currently selected bank. Parameters: • xlrDevice is the device handle returned from a previous call to XLROpen. • BufAddr is a pointer to the buffer to be written to StreamStor. • TransferSize is the number of bytes to write. Return Value: On success, this function returns XLR_SUCCESS. On failure, this function returns XLR_FAIL. Usage: SSHANDLE ULONG XLR_RETURN_CODE xlrDevice; myBuffer[40000]; xlrReturnCode; xlrReturnCode = XLROpen( 1, &xlrDevice ); … xlrReturnCode = XLRWriteData( xlrDevice, myBuffer, sizeof(myBuffer) ); See Also: XLRRecord, XLRAppend, XLRSelectBank. XLRWrite, 145 XLRSetMode, XLRSetBankMode and