WriteMemory
Top  Previous  Next

Description

Writes the block of data to the internal camera memory starting from the specified bootstrap address.

[C++]
int
 WriteMemory(unsigned int addr, void* pAddr, unsigned int size);

Parameters
[C/C++]
 
[in] unsigned int* addr  
Starting address in the camera bootstrap address space.  
 
[in] unsigned int* pAddr  
Pointer to a buffer that contains the data to be written.  
 
[in] unsigned int size  
Size of memory to write in bytes.  


Return Values

S_OK  
Success  
E_FAIL  
Failure  
E_NOINTERFACE  
Bootstrap address does not exist  
 

Example


This fragment of an MFC code writes a block of data to the camera's bootstrap memory:

   CString str;   
 unsigned char LUT[256];  
 for (int i=0; i<256; i++)  
  LUT[i]=i;  
   m_pCamera->WriteMemory(0xF100,LUT,256)