![]() |
IDS peak comfortC v1.10.0
|
Enumerations | |
| enum | peak_camera_memory_area { PEAK_CAMERA_MEMORY_AREA_INVALID , PEAK_CAMERA_MEMORY_AREA_USER_DATA_1 , PEAK_CAMERA_MEMORY_AREA_USER_DATA_2 } |
| peak Camera Memory Area More... | |
Functions | |
| PEAK_API_ACCESS_STATUS | peak_CameraMemory_Area_GetAccessStatus (peak_camera_handle hCam, peak_camera_memory_area cameraMemoryArea) |
| Query the camera memory area access status. | |
| PEAK_API_STATUS | peak_CameraMemory_Area_GetList (peak_camera_handle hCam, peak_camera_memory_area *cameraMemoryAreaList, size_t *cameraMemoryAreaCount) |
| Get the list of currently usable camera memory areas. | |
| PEAK_API_STATUS | peak_CameraMemory_Area_Size_Get (peak_camera_handle hCam, peak_camera_memory_area cameraMemoryArea, size_t *cameraMemoryAreaSize) |
| Get the size of a camera memory area. | |
| PEAK_API_STATUS | peak_CameraMemory_Area_Data_Clear (peak_camera_handle hCam, peak_camera_memory_area cameraMemoryArea) |
| Clear a camera memory area. | |
| PEAK_API_STATUS | peak_CameraMemory_Area_Data_Write (peak_camera_handle hCam, peak_camera_memory_area cameraMemoryArea, const uint8_t *data, size_t dataSize) |
| Write to a camera memory area. | |
| PEAK_API_STATUS | peak_CameraMemory_Area_Data_Read (peak_camera_handle hCam, peak_camera_memory_area cameraMemoryArea, uint8_t *data, size_t dataSize) |
| Read from the specified camera memory area. | |
Camera memory related functions and types.
peak Camera Memory Area
A camera memory area can be used to store binary data in the cameras persistent memory.
| PEAK_API_STATUS peak_CameraMemory_Area_Data_Clear | ( | peak_camera_handle | hCam, |
| peak_camera_memory_area | cameraMemoryArea | ||
| ) |
Clear a camera memory area.
Deletes the data from the specified camera memory area.
| [in] | hCam | The camera handle. |
| [in] | cameraMemoryArea | The camera memory area. |
cameraMemoryArea is an invalid camera memory area. Check peak_camera_memory_area. hCam is an invalid camera handle. | PEAK_API_STATUS peak_CameraMemory_Area_Data_Read | ( | peak_camera_handle | hCam, |
| peak_camera_memory_area | cameraMemoryArea, | ||
| uint8_t * | data, | ||
| size_t | dataSize | ||
| ) |
Read from the specified camera memory area.
Reads the specified data from the specified camera memory area.
The data is read from the start of the camera memory area.
| [in] | hCam | The camera handle. |
| [in] | cameraMemoryArea | The camera memory area. |
| [in] | data | The buffer to receive the data to. |
| [in] | dataSize | The size of *data in bytes. |
dataSize exceeds the size of the specified camera memory area. Check the size of the camera memory area via peak_CameraMemory_Area_Size_Get. cameraMemoryArea is an invalid camera memory area or dataSize is 0 or data is an invalid pointer. Check peak_camera_memory_area. hCam is an invalid camera handle. | PEAK_API_STATUS peak_CameraMemory_Area_Data_Write | ( | peak_camera_handle | hCam, |
| peak_camera_memory_area | cameraMemoryArea, | ||
| const uint8_t * | data, | ||
| size_t | dataSize | ||
| ) |
Write to a camera memory area.
Writes the specified data to the specified camera memory area.
The data is written to the start of the camera memory area. If dataSize is smaller than the capacity of the camera memory area, the remaining contents of the camera memory area are cleared.
| [in] | hCam | The camera handle. |
| [in] | cameraMemoryArea | The camera memory area. |
| [in] | data | The data to write. |
| [in] | dataSize | The size of *data in bytes. |
dataSize exceeds the size of the specified camera memory area. Check the size of the camera memory area via peak_CameraMemory_Area_Size_Get. cameraMemoryArea is an invalid camera memory area or dataSize is 0 or data is an invalid pointer. Check peak_camera_memory_area. hCam is an invalid camera handle. | PEAK_API_ACCESS_STATUS peak_CameraMemory_Area_GetAccessStatus | ( | peak_camera_handle | hCam, |
| peak_camera_memory_area | cameraMemoryArea | ||
| ) |
Query the camera memory area access status.
Provides the current access status for the specified camera memory area.
This function implements the Access Status Query principle.
| [in] | hCam | The camera handle. |
| [in] | cameraMemoryArea | The camera memory area. |
If the function indicates an error by returning PEAK_ACCESS_INVALID, these are the possible errors:
cameraMemoryArea is an invalid parameter set. Check peak_camera_memory_area. hCam is an invalid camera handle. | PEAK_API_STATUS peak_CameraMemory_Area_GetList | ( | peak_camera_handle | hCam, |
| peak_camera_memory_area * | cameraMemoryAreaList, | ||
| size_t * | cameraMemoryAreaCount | ||
| ) |
Get the list of currently usable camera memory areas.
Queries the list of currently selectable camera memory areas.
The list of usable camera memory areas may depend on the camera configuration and the camera status.
This function implements the Two Staged Data Query principle.
| [in] | hCam | The camera handle. |
| [out] | cameraMemoryAreaList | Pointer to a user allocated array buffer to receive the camera memory area list. If this parameter is NULL, cameraMemoryAreaCount will contain the current number of camera memory areas. The required size of cameraMemoryAreaList in bytes is cameraMemoryAreaCount x sizeof(peak_camera_memory_area). |
| [in,out] | cameraMemoryAreaCount |
|
cameraMemoryAreaList is not NULL and the value of *cameraMemoryAreaCount is too small to receive the expected amount of data. cameraMemoryAreaCount is an invalid pointer. hCam is an invalid camera handle. | PEAK_API_STATUS peak_CameraMemory_Area_Size_Get | ( | peak_camera_handle | hCam, |
| peak_camera_memory_area | cameraMemoryArea, | ||
| size_t * | cameraMemoryAreaSize | ||
| ) |
Get the size of a camera memory area.
Queries the size of the specified camera memory area.
| [in] | hCam | The camera handle. |
| [in] | cameraMemoryArea | The camera memory area. |
| [out] | cameraMemoryAreaSize | The size of the camera memory area in bytes. |
cameraMemoryArea is an invalid camera memory area or size is an invalid pointer. Check peak_camera_memory_area. hCam is an invalid camera handle.