ReadMemory
Top  Previous  Next

Description

Reads a block of data from the internal camera memory starting from the specified bootstrap address.

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

Parameters
[C/C++]
 
[in] unsigned int* addr  
Starting address in the camera bootstrap address space.  
 
[out] unsigned int* pAddr  
Pointer to a buffer that receives the content of the memory.  
 
[in] unsigned int size  
Size of memory to read in bytes.  


Return Values

S_OK  
Success  
E_FAIL  
Failure  
E_NOINTERFACE  
Bootstrap address does not exist  
 

Example


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

   CString str;   
 unsigned char buffer[1024];  
   m_pCamera->ReadMemory(0xA000,buffer,1024)