MX Foundation 4
|
Functions | |
uint32 | mxfEmbeddedSharedBufferRead (HMXF_DEVICE device, uint64 offset, uint64 size, uint32 *data) |
uint32 | mxfEmbeddedSharedBufferWrite (HMXF_DEVICE device, uint64 offset, uint64 size, uint32 *data) |
uint32 mxfEmbeddedSharedBufferRead | ( | HMXF_DEVICE | device, |
uint64 | offset, | ||
uint64 | size, | ||
uint32 * | data | ||
) |
Reads data from shared buffer memory on the specified device.
A specific region of memory must be reserved on the device before the initialization by using the mxfSystemInitAttributeUint64CallbackHandler() and KMXF_DEVICE_EMBEDDED_SHARED_SIZE attribute.
[in] | device | device handle |
[in] | offset | offset from the beginning of the shared memory in 32-bit basis |
[in] | size | number of 32-bit word to read |
[out] | data | pointer to read buffer |
uint32 mxfEmbeddedSharedBufferWrite | ( | HMXF_DEVICE | device, |
uint64 | offset, | ||
uint64 | size, | ||
uint32 * | data | ||
) |
Writes data to the shared buffer memory on the specified device.
A specific region of memory must be reserved on the device before the initialization by using the mxfSystemInitAttributeUint64CallbackHandler() and KMXF_DEVICE_EMBEDDED_SHARED_SIZE attribute.
The data in the buffer is copied using 32-bit access. To avoid any endianness mapping issues, it is recommended to use only 32-bit data format for this buffer.
[in] | device | device handle |
[in] | offset | offset from the beginning of the shared memory in 32-bit basis |
[in] | size | number of 32-bit word to write |
[in] | data | pointer to write buffer |