MX Foundation 4
|
Functions | |
uint32 | mxfEmbeddedNVStorageHandleGet (HMXF_DEVICE device, HMXF_NVSTORAGE *nvStorage) |
uint32 | mxfEmbeddedNVStorageFormat (HMXF_NVSTORAGE nvStorage) |
uint32 | mxfEmbeddedNVStorageLocationGet (HMXF_NVSTORAGE nvStorage, uint64 *index) |
uint32 | mxfEmbeddedNVStorageInfoGet (HMXF_NVSTORAGE nvStorage, MXF_NVSTORAGE_INFO *info) |
uint32 | mxfEmbeddedNVStorageMount (HMXF_NVSTORAGE nvStorage) |
uint32 | mxfEmbeddedNVStorageUmount (HMXF_NVSTORAGE nvStorage) |
uint32 | mxfEmbeddedNVStorageFSCheck (HMXF_NVSTORAGE nvStorage) |
uint32 | mxfEmbeddedNVStorageFileCreate (HMXF_NVSTORAGE nvStorage, uint64 count, uint64 *index) |
uint32 | mxfEmbeddedNVStorageFileCountGet (HMXF_NVSTORAGE nvStorage, uint64 *count) |
uint32 | mxfEmbeddedNVStorageFileSizeGet (HMXF_NVSTORAGE nvStorage, uint64 index, uint64 *size) |
uint32 | mxfEmbeddedNVStorageFileReset (HMXF_NVSTORAGE nvStorage, uint64 index) |
uint32 | mxfEmbeddedNVStorageFileRewind (HMXF_NVSTORAGE nvStorage, uint64 index) |
uint32 | mxfEmbeddedNVStorageFileMsgTypeSet (HMXF_NVSTORAGE nvStorage, uint64 index, uint64 type) |
uint32 | mxfEmbeddedNVStorageFileMsgTypeGet (HMXF_NVSTORAGE nvStorage, uint64 index, uint64 *type) |
uint32 | mxfEmbeddedNVStorageFileMsgSelectEnableSet (HMXF_CHANNEL channel, uint64 index, uint64 options, uint64 enable) |
uint32 | mxfEmbeddedNVStorageFileMsgSelectEnableGet (HMXF_CHANNEL channel, uint64 *index, uint64 *options, uint64 *enable) |
uint32 | mxfEmbeddedNVStorageFileMsgSelectSet (HMXF_CHANNEL channel, uint64 select, uint64 count, void *msg) |
uint32 | mxfEmbeddedNVStorageFileMsgSelectGet (HMXF_CHANNEL channel, uint64 maxCount, uint64 *count, void *msg) |
uint32 | mxfEmbeddedNVStorageFileMsgRead (HMXF_NVSTORAGE nvStorage, uint64 index, uint64 maxMsgCount, uint64 maxBytesCount, uint64 *msgCount, uint64 *byteCount, void *msg) |
uint32 | mxfRawEmbeddedNVStorageFileMsgRead (HMXF_NVSTORAGE nvStorage, uint64 index, uint64 maxMsgCount, uint64 maxBytesCount, uint64 *msgCount, uint64 *byteCount, uint8 *msg) |
uint32 | mxfUserDefEmbeddedNVStorageFileMsgRead (HMXF_NVSTORAGE nvStorage, uint64 index, uint64 maxMsgCount, uint64 maxBytesCount, uint64 *msgCount, uint64 *byteCount, MXF_EMBEDDED_DATAREC *msg) |
uint32 | mxfEmbeddedNVStorageFileStatusGet (HMXF_NVSTORAGE nvStorage, uint64 index, uint64 *freeByte, uint64 *unreadByte, uint64 *bufferedWriteByte, uint64 *overflow) |
uint32 | mxfEmbeddedNVStorageFileMsgWrite (HMXF_NVSTORAGE nvStorage, uint64 index, uint64 maxCount, void *msg, uint64 *count) |
uint32 | mxfRawEmbeddedNVStorageFileMsgWrite (HMXF_NVSTORAGE nvStorage, uint64 index, uint64 maxCount, uint8 *rec, uint64 *count) |
uint32 | mxfUserDefEmbeddedNVStorageFileMsgWrite (HMXF_NVSTORAGE nvStorage, uint64 index, uint64 maxCount, MXF_EMBEDDED_DATAREC *rec, uint64 *count) |
uint32 mxfEmbeddedNVStorageHandleGet | ( | HMXF_DEVICE | device, |
HMXF_NVSTORAGE * | nvStorage | ||
) |
Returns the handle of the non-volatile storage for the specific device.
[in] | device | device handle |
[out] | nvStorage | non-volatile storage handle |
uint32 mxfEmbeddedNVStorageFormat | ( | HMXF_NVSTORAGE | nvStorage | ) |
Formats the non-volatile storage device.
[in] | nvStorage | non-volatile storage handle |
uint32 mxfEmbeddedNVStorageLocationGet | ( | HMXF_NVSTORAGE | nvStorage, |
uint64 * | index | ||
) |
Returns the location of a specific non-volatile storage device.
[in] | nvStorage | non-volatile storage handle |
[out] | index | device index where the non-volatile storage device is located |
uint32 mxfEmbeddedNVStorageInfoGet | ( | HMXF_NVSTORAGE | nvStorage, |
MXF_NVSTORAGE_INFO * | info | ||
) |
Returns the non-volatile storage information.
[in] | nvStorage | non-volatile storage handle |
[out] | info | pointer to MXF_NVSTORAGE_INFO structure |
uint32 mxfEmbeddedNVStorageMount | ( | HMXF_NVSTORAGE | nvStorage | ) |
Mounts the non-volatile storage. This function must be called before accessing files with eMMC type. Use mxfEmbeddedNVStorageInfoGet() to get non-volatile storage type. When done with accessing non-volatile storage, unmount it with mxfEmbeddedNVStorageUmount(). If the device is reset without properly unmounting the non-volatile storage, a file system check might be necessary with mxfEmbeddedNVStorageFSCheck() to be able to mount it again.
[in] | nvStorage | non-volatile storage handle |
uint32 mxfEmbeddedNVStorageUmount | ( | HMXF_NVSTORAGE | nvStorage | ) |
Umounts the non-volatile storage. This function must be called when done accessing files with eMMC type. Use mxfEmbeddedNVStorageInfoGet() to get non-volatile storage type. If the device is reset without properly unmounting the non-volatile storage, a file system check might be necessary with mxfEmbeddedNVStorageFSCheck() to be able to mount it again.
[in] | nvStorage | non-volatile storage handle |
uint32 mxfEmbeddedNVStorageFSCheck | ( | HMXF_NVSTORAGE | nvStorage | ) |
Checks the non-volatile storage file system integrity. If the device is reset without properly unmounting the non-volatile storage, a file system check might be necessary with this function to be able to mount it again.
[in] | nvStorage | non-volatile storage handle |
uint32 mxfEmbeddedNVStorageFileCreate | ( | HMXF_NVSTORAGE | nvStorage, |
uint64 | count, | ||
uint64 * | index | ||
) |
Creates a file of the specified size on the specified flash.
[in] | nvStorage | non-volatile storage handle |
[in] | count | number of sectors to allocate. The size of a sector is returned by mxfEmbeddedNVStorageInfoGet() function |
[out] | index | returned index of file created referenced by other function call |
uint32 mxfEmbeddedNVStorageFileCountGet | ( | HMXF_NVSTORAGE | nvStorage, |
uint64 * | count | ||
) |
Returns the number of file allocated on the specified non-volatile storage device.
[in] | nvStorage | non-volatile storage handle |
[out] | count | number of files currently allocated. |
uint32 mxfEmbeddedNVStorageFileSizeGet | ( | HMXF_NVSTORAGE | nvStorage, |
uint64 | index, | ||
uint64 * | size | ||
) |
Returns the size in sector of the specified file index.
[in] | nvStorage | non-volatile storage handle |
[in] | index | file index of the file |
[out] | size | returned size in sectors of the allocated file. The size of a sector is returned by mxfEmbeddedNVStorageInfoGet() function |
uint32 mxfEmbeddedNVStorageFileReset | ( | HMXF_NVSTORAGE | nvStorage, |
uint64 | index | ||
) |
Resets the read/write pointer to the beginning of the file. The file is then virtually empty.
[in] | nvStorage | non-volatile storage handle |
[in] | index | file index of the file |
uint32 mxfEmbeddedNVStorageFileRewind | ( | HMXF_NVSTORAGE | nvStorage, |
uint64 | index | ||
) |
Resets the read pointer to the beginning of the file. Write operation will continue to append messages at the end of the file.
[in] | nvStorage | non-volatile storage handle |
[in] | index | file index of the file |
uint32 mxfEmbeddedNVStorageFileMsgTypeSet | ( | HMXF_NVSTORAGE | nvStorage, |
uint64 | index, | ||
uint64 | type | ||
) |
Sets the message type of the specified file index.
The message type is automatically known when the recording of the message selection is enabled with mxfEmbeddedNVStorageFileMsgSelectEnableSet().
This function is useful in the case the user wants to write in the file with the raw format or user defined structure.
[in] | nvStorage | non-volatile storage handle | ||||||||||||||||||||||||||
[in] | index | file index of the file | ||||||||||||||||||||||||||
[in] | type | file type attribute to set.
|
uint32 mxfEmbeddedNVStorageFileMsgTypeGet | ( | HMXF_NVSTORAGE | nvStorage, |
uint64 | index, | ||
uint64 * | type | ||
) |
Returns the message type associated to the specified file.
[in] | nvStorage | non-volatile storage handle | ||||||||||||||||||||||||||
[in] | index | file index of the file | ||||||||||||||||||||||||||
[out] | type | file type
|
uint32 mxfEmbeddedNVStorageFileMsgSelectEnableSet | ( | HMXF_CHANNEL | channel, |
uint64 | index, | ||
uint64 | options, | ||
uint64 | enable | ||
) |
Enables the automatic recording of messages in a file when a record is received on an RX channel.
[in] | channel | channel handle | ||||||
[in] | index | file index of the file. Must be set to 0 when calling enable with VMXF_DISABLE. | ||||||
[in] | options | reserved for future use. Must be set to 0. | ||||||
[in] | enable | action to perform:
|
uint32 mxfEmbeddedNVStorageFileMsgSelectEnableGet | ( | HMXF_CHANNEL | channel, |
uint64 * | index, | ||
uint64 * | options, | ||
uint64 * | enable | ||
) |
Gets the state of the automatic recording of messages.
[in] | channel | channel handle. | ||||||
[out] | index | file index of the file | ||||||
[out] | options | reserved for future use. Must be set to 0. | ||||||
[out] | enable | automatic recording state
|
uint32 mxfEmbeddedNVStorageFileMsgSelectSet | ( | HMXF_CHANNEL | channel, |
uint64 | select, | ||
uint64 | count, | ||
void * | msg | ||
) |
Selects / deselects the specified message IDs on a channel for automatic embedded non-volatile storage recording.
[in] | channel | channel handle | ||||||||||||||
[in] | select | action to perform with the provided selection list
| ||||||||||||||
[in] | count | count of messages | ||||||||||||||
[in] | msg | pointer to an array of message identifiers.
|
uint32 mxfEmbeddedNVStorageFileMsgSelectGet | ( | HMXF_CHANNEL | channel, |
uint64 | maxCount, | ||
uint64 * | count, | ||
void * | msg | ||
) |
Returns the specific message IDs registered on a channel for automatic embedded non-volatile storage recording.
[in] | channel | channel handle. | ||||||||||||||
[in] | maxCount | maximum count of messages return in the array | ||||||||||||||
[out] | count | count of messages returned | ||||||||||||||
[out] | msg | pointer to an array of message identifiers.
|
uint32 mxfEmbeddedNVStorageFileMsgRead | ( | HMXF_NVSTORAGE | nvStorage, |
uint64 | index, | ||
uint64 | maxMsgCount, | ||
uint64 | maxBytesCount, | ||
uint64 * | msgCount, | ||
uint64 * | byteCount, | ||
void * | msg | ||
) |
Reads the records from a specific file. The messages format will follow the message type of the file.
[in] | nvStorage | non-volatile storage handle | ||||||||||||||||||||||||||
[in] | index | file index | ||||||||||||||||||||||||||
[in] | maxMsgCount | maximum number of messages that can be returned | ||||||||||||||||||||||||||
[in] | maxBytesCount | maximum byte count that can be returned | ||||||||||||||||||||||||||
[out] | msgCount | count of messages returned | ||||||||||||||||||||||||||
[out] | byteCount | number of bytes returned in the msg buffer | ||||||||||||||||||||||||||
[out] | msg | pointer to read buffer containing messages. The record format depends on the type of the file. The records in the buffer need to be indexed using the mxfNextRecordPtrGet() function.
|
uint32 mxfRawEmbeddedNVStorageFileMsgRead | ( | HMXF_NVSTORAGE | nvStorage, |
uint64 | index, | ||
uint64 | maxMsgCount, | ||
uint64 | maxBytesCount, | ||
uint64 * | msgCount, | ||
uint64 * | byteCount, | ||
uint8 * | msg | ||
) |
Reads the records from a specific file. The messages format will be of raw sector type.
[in] | nvStorage | non-volatile storage handle |
[in] | index | file index |
[in] | maxMsgCount | maximum number of messages that can be returned |
[in] | maxBytesCount | maximum byte count that can be returned |
[out] | msgCount | count of messages returned |
[out] | byteCount | number of bytes returned in the msg buffer |
[out] | msg | pointer to read buffer containing messages. The records in the buffer need to be indexed using the mxfNextRecordPtrGet() function. |
uint32 mxfUserDefEmbeddedNVStorageFileMsgRead | ( | HMXF_NVSTORAGE | nvStorage, |
uint64 | index, | ||
uint64 | maxMsgCount, | ||
uint64 | maxBytesCount, | ||
uint64 * | msgCount, | ||
uint64 * | byteCount, | ||
MXF_EMBEDDED_DATAREC * | msg | ||
) |
Reads the records from a specific file. The messages format will be of user defined type.
[in] | nvStorage | non-volatile storage handle |
[in] | index | file index |
[in] | maxMsgCount | maximum number of messages that can be returned |
[in] | maxBytesCount | maximum byte count that can be returned |
[out] | msgCount | count of messages returned |
[out] | byteCount | number of bytes returned in the msg buffer |
[out] | msg | pointer to read buffer containing messages. The records in the buffer need to be indexed using the mxfNextRecordPtrGet() function. |
uint32 mxfEmbeddedNVStorageFileStatusGet | ( | HMXF_NVSTORAGE | nvStorage, |
uint64 | index, | ||
uint64 * | freeByte, | ||
uint64 * | unreadByte, | ||
uint64 * | bufferedWriteByte, | ||
uint64 * | overflow | ||
) |
Gets the status of the specified file index.
[in] | nvStorage | non-volatile storage handle |
[in] | index | file index |
[out] | freeByte | file free byte count |
[out] | unreadByte | file unread byte count |
[out] | bufferedWriteByte | file buffered write count |
[out] | overflow | file overflow |
uint32 mxfEmbeddedNVStorageFileMsgWrite | ( | HMXF_NVSTORAGE | nvStorage, |
uint64 | index, | ||
uint64 | maxCount, | ||
void * | msg, | ||
uint64 * | count | ||
) |
Writes messages to the specified file. The messages format must follow the message type of the file.
[in] | nvStorage | non-volatile storage handle | ||||||||||||||||||||||||||
[in] | index | file index | ||||||||||||||||||||||||||
[in] | maxCount | maximum number of messages to write | ||||||||||||||||||||||||||
[in] | msg | pointer to messages to write. The records in the buffer need to be indexed using mxfNextRecordPtrGet() function.
| ||||||||||||||||||||||||||
[out] | count | number of messages actually written |
uint32 mxfRawEmbeddedNVStorageFileMsgWrite | ( | HMXF_NVSTORAGE | nvStorage, |
uint64 | index, | ||
uint64 | maxCount, | ||
uint8 * | rec, | ||
uint64 * | count | ||
) |
Writes messages to the specified file. The messages format must must be of type raw sector.
[in] | nvStorage | non-volatile storage handle |
[in] | index | file index |
[in] | maxCount | maximum number of messages to write |
[in] | rec | pointer to messages to write. The records in the buffer need to be indexed using mxfNextRecordPtrGet() function. |
[out] | count | number of messages actually written |
uint32 mxfUserDefEmbeddedNVStorageFileMsgWrite | ( | HMXF_NVSTORAGE | nvStorage, |
uint64 | index, | ||
uint64 | maxCount, | ||
MXF_EMBEDDED_DATAREC * | rec, | ||
uint64 * | count | ||
) |
Writes messages to the specified file. The messages format must must be of type user defined.
[in] | nvStorage | non-volatile storage handle |
[in] | index | file index |
[in] | maxCount | maximum number of messages to write |
[in] | rec | pointer to messages to write. The records in the buffer need to be indexed using mxfNextRecordPtrGet() function. |
[out] | count | number of messages actually written |