MX Foundation 4
|
Functions | |
uint32 | mxfEmbeddedCodeDownload (HMXF_DEVICE device, const char *name) |
uint32 | mxfEmbeddedDataDownload (HMXF_DEVICE device, uint64 size, uint32 *data) |
uint32 mxfEmbeddedCodeDownload | ( | HMXF_DEVICE | device, |
const char * | name | ||
) |
Downloads an embedded code application on the specified device.
The code will be copied to the filesystem on the device. The code size must be smaller than VMXF_DEVICE_EMBEDDED_CODEANDDATA_SIZE_MAX. The KMXF_DEVICE_EMBEDDED_CODEANDDATA_SIZE attribute is not used.
[in] | device | device handle |
[in] | name | complete path to file to download |
uint32 mxfEmbeddedDataDownload | ( | HMXF_DEVICE | device, |
uint64 | size, | ||
uint32 * | data | ||
) |
Downloads a data section on the specified device.
mxfEmbeddedCodeDownload() must previously be called.
This function will trigger the mxfEmbeddedDataDownloadHandler() function of the embedded code.
A specific region of memory must be reserved on the device before the initialization by using the mxfSystemInitAttributeUint64CallbackHandler() and KMXF_DEVICE_EMBEDDED_CODEANDDATA_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] | size | number of 32-bit word to send. |
[in] | data | data buffer pointer |