Your browser does not allow scripts
Please click here to view a static table of contents without scripts
FT_EE_UAWrite
Return to Introduction  Previous page  Next page
Write data into the EEUA.

FT_STATUS
FT_EE_UAWrite
(FT_HANDLE ftHandle, PUCHAR pucData, DWORD dwDataLen)




Parameters
ftHandle
Handle of the device.
pucData
Pointer to a buffer that contains the data to be written.
dwDataLen
Size, in bytes, of buffer that contains the data to be written.




Return Value
FT_OK if successful, otherwise the return value is an FT error code.



Remarks
This function interprets the parameter lpData as a pointer to an array of bytes of size dwDataLen that contains the data to be written to the EEUA. It is a programming error for dwDataLen to be greater than the size of the EEUA.



Example

FT_HANDLE ftHandle;
FT_STATUS ftStatus = FT_Open(0, &ftHandle);

if (ftStatus != FT_OK) {
    // FT_Open FAILED!
}

char *buffer = "Hello, World";

ftStatus = FT_EE_UAWrite(ftHandle, (unsigned char*)buffer, 12); 
if(ftStatus != FT_OK) {
   // FT_EE_UAWRITE failed
}
else {
   // FT_EE_UAWRITE failed
}