MX Foundation 4
|
Functions | |
uint32 | mxfA629AsyncEventRxMsgSelectSet (HMXF_ASYNCEVENT asyncEvent, HMXF_CHANNEL channel, uint64 select, uint64 maxCount, MXF_MSGID_A629 *msg) |
uint32 | mxfA629AsyncEventRxMsgSelectGet (HMXF_ASYNCEVENT asyncEvent, HMXF_CHANNEL channel, uint64 maxCount, uint64 *count, MXF_MSGID_A629 *msg) |
uint32 | mxfA629TxPeriodicMajorFrameSyncSet (HMXF_CHANNEL channel, uint64 majorIndex, uint64 columnIndex, MXF_A629_TXPERIODIC_MJRFRAME_SYNC *sync) |
uint32 | mxfA629TxPeriodicMajorFrameSyncGet (HMXF_CHANNEL channel, uint64 majorIndex, uint64 columnIndex, MXF_A629_TXPERIODIC_MJRFRAME_SYNC *sync) |
uint32 | mxfA629TxPeriodicMajorFrameStart (HMXF_CHANNEL channel, uint64 majorIndex, MXF_A629_TXPERIODIC_MJRFRAME_PROPERTIES *properties) |
uint32 | mxfA629TxPeriodicMajorFrameGet (HMXF_CHANNEL channel, uint64 majorIndex, uint64 minorIndex, uint64 maxCount, uint64 *count, MXF_A629_TXPERIODIC_MJRFRAME_MSG *msg) |
uint32 | mxfA629TxPeriodicMajorFrameSet (HMXF_CHANNEL channel, uint64 majorIndex, uint64 minorIndex, uint64 count, MXF_A629_TXPERIODIC_MJRFRAME_MSG *msg) |
uint32 | mxfA629TxPeriodicUpdateMsgWrite (HMXF_BUFFER buffer, uint64 count, MXF_A629_DATAREC *rec) |
uint32 | mxfA629RxAcqMsgSelectGet (HMXF_BUFFER buffer, uint64 maxCount, uint64 *count, uint64 *labels) |
uint32 | mxfA629RxAcqMsgSelectSet (HMXF_BUFFER buffer, uint64 select, uint64 maxCount, uint64 *labels) |
uint32 | mxfA629RxAcqRead (HMXF_BUFFER buffer, uint64 maxRecCount, uint64 maxBytesCount, uint64 *status, uint64 *recCount, uint64 *bytesCount, MXF_A629_DATAREC *rec) |
uint32 | mxfA629RxSamplingMsgSelectGet (HMXF_BUFFER buffer, uint64 maxCount, uint64 *count, uint64 *labels) |
uint32 | mxfA629RxSamplingMsgSelectSet (HMXF_BUFFER buffer, uint64 select, uint64 count, uint64 *labels) |
uint32 | mxfA629RxSamplingExtEnableSet (HMXF_BUFFER buffer, uint64 state, uint64 count, uint64 *labels) |
uint32 | mxfA629RxSamplingExtEnableAllGet (HMXF_BUFFER buffer, uint64 maxCount, uint64 *count, uint64 *labels) |
uint32 | mxfA629RxSamplingRead (HMXF_BUFFER buffer, uint64 flags, uint64 maxRecCount, uint64 maxBytesCount, uint64 *recCount, uint64 *byteCount, MXF_A629_SAMPREC *rec) |
uint32 | mxfA629RxSamplingSingleRead (HMXF_BUFFER buffer, uint64 flags, uint64 label, uint64 cid, MXF_A629_SAMPREC *rec) |
uint32 | mxfA629NextDataRecordPtrGet (MXF_A629_DATAREC *currentRec, MXF_A629_DATAREC **nextRec) |
uint32 | mxfA629NextSamplingRecordPtrGet (MXF_A629_SAMPREC *currentRec, MXF_A629_SAMPREC **nextRec) |
uint32 | mxfA629ErrorInjectionCompose (uint64 id, uint64 param, uint16 *error) |
uint32 | mxfA629ErrorInjectionSet (HMXF_CHANNEL channel, uint64 errorIndex, MXF_A629_ERROR_INJ *error) |
uint32 | mxfA629ErrorInjectionGet (HMXF_CHANNEL channel, uint64 errorIndex, MXF_A629_ERROR_INJ *error) |
uint32 | mxfA629ErrorInjectionCountGet (HMXF_CHANNEL channel, uint64 *errorCount) |
uint32 | mxfA629RxMsgCrcEnableSet (HMXF_CHANNEL channel, uint64 label, uint64 cid, uint64 enable) |
mxfA629RxMsgCrcEnableAllSet (HMXF_CHANNEL channel, uint64 enable, uint64 count, MXF_MSGID_A629 *msgIdTab) | |
uint32 | mxfA629RxMsgCrcEnableGet (HMXF_CHANNEL channel, uint64 label, uint64 cid, uint64 *enable) |
uint32 | mxfA629RxMsgCrcEnableAllGet (HMXF_CHANNEL channel, uint64 maxCount, uint64 *count, MXF_MSGID_A629 *msgIdTab) |
uint32 | mxfA629MsgFreshnessCounterSet (HMXF_BUFFER buffer, MXF_A629_FC *fc) |
uint32 | mxfA629MsgFreshnessCounterGet (HMXF_BUFFER buffer, MXF_A629_FC *fc) |
uint32 | mxfA629EmbeddedNVStorageFileMsgSelectSet (HMXF_CHANNEL channel, uint64 select, uint64 count, MXF_MSGID_A629 *msgid) |
uint32 | mxfA629EmbeddedNVStorageFileMsgSelectGet (HMXF_CHANNEL channel, uint64 maxCount, uint64 *count, MXF_MSGID_A629 *msgid) |
uint32 | mxfA629EmbeddedNVStorageFileMsgRead (HMXF_NVSTORAGE nvStorage, uint64 fileIndex, uint64 maxMsgCount, uint64 maxBytesCount, uint64 *msgCount, uint64 *byteCount, MXF_A629_DATAREC *msg) |
uint32 | mxfA629EmbeddedNVStorageFileMsgWrite (HMXF_NVSTORAGE nvStorage, uint64 fileIndex, uint64 maxRecCount, MXF_A629_DATAREC *msg, uint64 *count) |
uint32 mxfA629AsyncEventRxMsgSelectSet | ( | HMXF_ASYNCEVENT | asyncEvent, |
HMXF_CHANNEL | channel, | ||
uint64 | select, | ||
uint64 | maxCount, | ||
MXF_MSGID_A629 * | msg | ||
) |
Selects or deselects the label-cid pair (message id) for MXF_ASYNCEVENT_COND_RX_MSG condition on a specified RX channel.
The function must be called in addition to the mxfAsyncEventConditionsSet() function with MXF_ASYNCEVENT_COND_RX_MSG condition to cause an asynchronous event to occur when a specific label-cid is received.
The message selection must be made by only one asynchronous event routine for a specific channel. Otherwise, an error code will be returned while conditions of other asynchronous event routines are present.
In this case, you must disable the MXF_ASYNCEVENT_COND_RX_MSG condition using mxfAsyncEventConditionsSet() function using another asynchronous event handle.
[in] | asyncEvent | asynchronous event handle. | ||||||||
[in] | channel | channel handle. | ||||||||
[in] | select | action to perform for the message ID.
| ||||||||
[in] | maxCount | count of messages id. | ||||||||
[in] | msg | address of array of message id. |
uint32 mxfA629AsyncEventRxMsgSelectGet | ( | HMXF_ASYNCEVENT | asyncEvent, |
HMXF_CHANNEL | channel, | ||
uint64 | maxCount, | ||
uint64 * | count, | ||
MXF_MSGID_A629 * | msg | ||
) |
Returns the list of message IDs registered for a specified RX channel for the MXF_ASYNCEVENT_COND_RX_MSG asynchronous event condition ID.
[in] | asyncEvent | asynchronous event handle. |
[in] | channel | channel handle. |
[in] | maxCount | maximum ID messages expected. |
[out] | count | number of ID messages returned. |
[out] | msg | returned message ID array. |
uint32 mxfA629TxPeriodicMajorFrameSyncSet | ( | HMXF_CHANNEL | channel, |
uint64 | majorIndex, | ||
uint64 | columnIndex, | ||
MXF_A629_TXPERIODIC_MJRFRAME_SYNC * | sync | ||
) |
Sets the specified synchronize frame to the major frame.
[in] | channel | channel handle. |
[in] | majorIndex | major frame index. Reserved for future use. Must be set to 0. |
[in] | columnIndex | Sync frame index (0-30). |
[in] | sync | pointer to major frame synchronize frame structure to set. |
uint32 mxfA629TxPeriodicMajorFrameSyncGet | ( | HMXF_CHANNEL | channel, |
uint64 | majorIndex, | ||
uint64 | columnIndex, | ||
MXF_A629_TXPERIODIC_MJRFRAME_SYNC * | sync | ||
) |
This function returns the specified synchronize frame of the major frame.
[in] | channel | channel handle. |
[in] | majorIndex | major frame index. Reserved for future use. Must be set to 0. |
[in] | columnIndex | Sync frame index (0-30). |
[out] | sync | pointer to major frame synchronize frame structure. |
uint32 mxfA629TxPeriodicMajorFrameStart | ( | HMXF_CHANNEL | channel, |
uint64 | majorIndex, | ||
MXF_A629_TXPERIODIC_MJRFRAME_PROPERTIES * | properties | ||
) |
Starts the major frame.
If the major frame contains frame errors, erroneous frames will be ignored and others frames will be started.
The data of the major frame must be initialized using mxfA629TxPeriodicUpdateMsgWrite() function.
[in] | channel | channel handle. |
[in] | majorIndex | major frame index. Reserved for future use. Must be set to 0. |
[in] | properties | address of a MXF_A629_TXPERIODIC_MJRFRAME_PROPERTIES structure. If not specified block mode is assumed. |
uint32 mxfA629TxPeriodicMajorFrameGet | ( | HMXF_CHANNEL | channel, |
uint64 | majorIndex, | ||
uint64 | minorIndex, | ||
uint64 | maxCount, | ||
uint64 * | count, | ||
MXF_A629_TXPERIODIC_MJRFRAME_MSG * | msg | ||
) |
Reads the specified minor frame of the major frame.
[in] | channel | channel handle. |
[in] | majorIndex | major frame index. Reserved for future use. Must be set to 0. |
[in] | minorIndex | minor frame index (0-31). |
[in] | maxCount | maximum messages to read within the minor frame (0-31). |
[out] | count | returned messages count. |
[out] | msg | minor frame messages pointer. |
uint32 mxfA629TxPeriodicMajorFrameSet | ( | HMXF_CHANNEL | channel, |
uint64 | majorIndex, | ||
uint64 | minorIndex, | ||
uint64 | count, | ||
MXF_A629_TXPERIODIC_MJRFRAME_MSG * | msg | ||
) |
Sets the specified minor frame to the major frame by passing an array of structure of messages.
This function is used before enabling the transmission of the schedule for configuring each minor frame of the major frame.
[in] | channel | channel handle. |
[in] | majorIndex | major frame index. Reserved for future use. Must be set to 0. |
[in] | minorIndex | minor frame index (0-31). |
[in] | count | count of messages in the minor frame (0-31). |
[in] | msg | minor frame message structure pointer. |
uint32 mxfA629TxPeriodicUpdateMsgWrite | ( | HMXF_BUFFER | buffer, |
uint64 | count, | ||
MXF_A629_DATAREC * | rec | ||
) |
Writes messages of the record array into the specified buffer. The last message of each buffer is sent forever until a new message is written into the buffer.
[in] | buffer | buffer handle. |
[in] | count | count of records to write. |
[in] | rec | array of record(s) to write. The records in the buffer need to be indexed using mxfA629NextDataRecordPtrGet() function. |
uint32 mxfA629RxAcqMsgSelectGet | ( | HMXF_BUFFER | buffer, |
uint64 | maxCount, | ||
uint64 * | count, | ||
uint64 * | labels | ||
) |
Returns the list of labels selected for acquisition.
[in] | buffer | buffer handle. |
[in] | maxCount | maximum number of labels in the array. |
[out] | count | returned number of labels in the labels array. |
[out] | labels | address of the returned labels array. |
uint32 mxfA629RxAcqMsgSelectSet | ( | HMXF_BUFFER | buffer, |
uint64 | select, | ||
uint64 | maxCount, | ||
uint64 * | labels | ||
) |
Selects or deselects the label(s) to be acquired on the specified acquisition buffer.
Upon data arrival, the embedded process will check if the received message label is found in the current selection list. The receive data record will be added to the acquisition buffer only if the message label is found in the selection list, otherwise it is discarded.
By default, after a device reset, no filtering is performed and all messages are received.
[in] | buffer | buffer handle. | ||||||||
[in] | select | action to perform with the message labels array.
| ||||||||
[in] | maxCount | number of entries in labels. | ||||||||
[in] | labels | address of array of labels |
uint32 mxfA629RxAcqRead | ( | HMXF_BUFFER | buffer, |
uint64 | maxRecCount, | ||
uint64 | maxBytesCount, | ||
uint64 * | status, | ||
uint64 * | recCount, | ||
uint64 * | bytesCount, | ||
MXF_A629_DATAREC * | rec | ||
) |
Transfers the records from the channel acquisition buffer to the calling application.
[in] | buffer | buffer handle. |
[in] | maxRecCount | maximum number records to read (0 means all messages). |
[in] | maxBytesCount | maximum number of bytes to be read. |
[out] | status | last status set. |
[out] | recCount | number of records returned. |
[out] | bytesCount | number of bytes returned. |
[out] | rec | address of data records. The records in the buffer need to be indexed using mxfA629NextDataRecordPtrGet() function. |
uint32 mxfA629RxSamplingMsgSelectGet | ( | HMXF_BUFFER | buffer, |
uint64 | maxCount, | ||
uint64 * | count, | ||
uint64 * | labels | ||
) |
Returns the list of labels selected for sampling.
[in] | buffer | buffer handle. |
[in] | maxCount | maximum number of labels in the array labels. |
[out] | count | returned number of labels in the labels array. |
[out] | labels | address of the returned labels array. |
uint32 mxfA629RxSamplingMsgSelectSet | ( | HMXF_BUFFER | buffer, |
uint64 | select, | ||
uint64 | count, | ||
uint64 * | labels | ||
) |
Selects or deselects the labels(s) to be received on the specified sampling buffer.
Upon data arrival, the embedded process check if the received label is defined in the current selection list. The receive data record will be added to the sampling buffer only if the label was added previously in the selection list, otherwise it is discarded.
By default, after a device reset, no filtering is performed and all labels are received.
[in] | buffer | buffer handle. | ||||||||
[in] | select | action to perform with the labels array.
| ||||||||
[in] | count | count of labels in the array. | ||||||||
[in] | labels | address of array of labels. |
uint32 mxfA629RxSamplingExtEnableSet | ( | HMXF_BUFFER | buffer, |
uint64 | state, | ||
uint64 | count, | ||
uint64 * | labels | ||
) |
Enables or disables message discrimination using the CID. The message look-up table will have an entry for each message label-CID pair.
[in] | buffer | buffer handle. | ||||||
[in] | state | extension filtering state.
| ||||||
[in] | count | number of entries in labels. | ||||||
[in] | labels | address of array of labels. |
uint32 mxfA629RxSamplingExtEnableAllGet | ( | HMXF_BUFFER | buffer, |
uint64 | maxCount, | ||
uint64 * | count, | ||
uint64 * | labels | ||
) |
Returns the list of labels that have message discrimination using the CID enabled.
[in] | buffer | buffer handle. |
[in] | maxCount | maximum number of entries in labels. |
[out] | count | number of entries in labels. |
[out] | labels | address array of labels. |
uint32 mxfA629RxSamplingRead | ( | HMXF_BUFFER | buffer, |
uint64 | flags, | ||
uint64 | maxRecCount, | ||
uint64 | maxBytesCount, | ||
uint64 * | recCount, | ||
uint64 * | byteCount, | ||
MXF_A629_SAMPREC * | rec | ||
) |
Reads the sampling records from the sampling buffer to the application buffer.
The sampling process maintains records for all of the received labels. A label is considered received if corresponding data words were received within the kill-time period. A record refresh from the receive port resets the kill-time timer and an updated copy is made available to the application.
The sampling record contains information on the arrival rate and the number of errors, as well as the latest data received for that address.
[in] | buffer | buffer handle. | ||||||
[in] | flags | option flag.
| ||||||
[in] | maxRecCount | maximum number of messages to read (0 means all messages). | ||||||
[in] | maxBytesCount | maximum number of bytes to read. | ||||||
[out] | recCount | number of messages returned. | ||||||
[out] | byteCount | number of bytes returned. | ||||||
[out] | rec | array of message record structure. The records in the buffer must be indexed by using mxfA629NextSamplingRecordPtrGet() function. |
uint32 mxfA629RxSamplingSingleRead | ( | HMXF_BUFFER | buffer, |
uint64 | flags, | ||
uint64 | label, | ||
uint64 | cid, | ||
MXF_A629_SAMPREC * | rec | ||
) |
Reads a specific sampling record from the sampling buffer.
[in] | buffer | buffer handle. | ||||||
[in] | flags | option flag.
| ||||||
[in] | label | message label. | ||||||
[in] | cid | message cid. | ||||||
[out] | rec | address of sampling record. |
uint32 mxfA629NextDataRecordPtrGet | ( | MXF_A629_DATAREC * | currentRec, |
MXF_A629_DATAREC ** | nextRec | ||
) |
Returns the next buffer address in a MXF_A629_DATAREC buffer array.
[in] | currentRec | pointer to the beginning or the current record in the buffer. |
[out] | nextRec | pointer to next record in the buffer. |
uint32 mxfA629NextSamplingRecordPtrGet | ( | MXF_A629_SAMPREC * | currentRec, |
MXF_A629_SAMPREC ** | nextRec | ||
) |
Returns the next buffer address in a MXF_A629_SAMPREC buffer array.
[in] | currentRec | pointer to the beginning or the current record in the buffer. |
[out] | nextRec | pointer to next record in the buffer. |
uint32 mxfA629ErrorInjectionCompose | ( | uint64 | id, |
uint64 | param, | ||
uint16 * | error | ||
) |
Helps to generate the errors field of MXF_A629_ERROR_INJ.
[in] | id | error injection ID. |
[in] | param | parameter for the error injection. |
[out] | error | pointer to the error in the errors array. |
uint32 mxfA629ErrorInjectionSet | ( | HMXF_CHANNEL | channel, |
uint64 | errorIndex, | ||
MXF_A629_ERROR_INJ * | error | ||
) |
Updates the specified error injection structure. By default, all errors are set to zero until this function is called.
[in] | channel | Channel handle. |
[in] | errorIndex | Error index (0-99). |
[in] | error | Error structure pointer. |
uint32 mxfA629ErrorInjectionGet | ( | HMXF_CHANNEL | channel, |
uint64 | errorIndex, | ||
MXF_A629_ERROR_INJ * | error | ||
) |
Reads the specified error injection structure.
[in] | channel | Channel handle. |
[in] | errorIndex | Error index (0-99). |
[out] | error | Error structure pointer. |
uint32 mxfA629ErrorInjectionCountGet | ( | HMXF_CHANNEL | channel, |
uint64 * | errorCount | ||
) |
Gets the maximum number of error injections that can be set.
[in] | channel | Channel handle. |
[out] | errorCount | number of error injections. |
uint32 mxfA629RxMsgCrcEnableSet | ( | HMXF_CHANNEL | channel, |
uint64 | label, | ||
uint64 | cid, | ||
uint64 | enable | ||
) |
Sets the CRC enable state of the specified message defined on a channel.
[in] | channel | channel handle. | ||||||
[in] | label | message label. | ||||||
[in] | cid | message cid. | ||||||
[in] | enable | value to set.
|
mxfA629RxMsgCrcEnableAllSet | ( | HMXF_CHANNEL | channel, |
uint64 | enable, | ||
uint64 | count, | ||
MXF_MSGID_A629 * | msgIdTab | ||
) |
Sets the CRC enable state of the specified messages defined on a channel.
[in] | channel | channel handle. | ||||||
[in] | enable | value to set.
| ||||||
[in] | count | number of messages in msgIdTab. | ||||||
[in] | msgIdTab | Pointer to array of messages ID. |
uint32 mxfA629RxMsgCrcEnableGet | ( | HMXF_CHANNEL | channel, |
uint64 | label, | ||
uint64 | cid, | ||
uint64 * | enable | ||
) |
This function returns the CRC enable state of the specified message defined on a channel.
[in] | channel | channel handle. | ||||||
[in] | label | message label. | ||||||
[in] | cid | message cid. | ||||||
[out] | enable | pointer to returned value.
|
uint32 mxfA629RxMsgCrcEnableAllGet | ( | HMXF_CHANNEL | channel, |
uint64 | maxCount, | ||
uint64 * | count, | ||
MXF_MSGID_A629 * | msgIdTab | ||
) |
This function returns the messages ID that have CRC enabled defined on a channel.
[in] | channel | channel handle. |
[in] | maxCount | size of msgIdTab. |
[out] | count | number of messages ID returned in msgIdTab. |
[out] | msgIdTab | pointer to array of messages ID |
uint32 mxfA629MsgFreshnessCounterSet | ( | HMXF_BUFFER | buffer, |
MXF_A629_FC * | fc | ||
) |
Sets the Freshness Counter of the specified buffer.
[in] | buffer | TX Periodic Update Message buffer handle. |
[in] | fc | Pointer to Freshness Counter structure info. |
uint32 mxfA629MsgFreshnessCounterGet | ( | HMXF_BUFFER | buffer, |
MXF_A629_FC * | fc | ||
) |
This function returns the Freshness Counter info of the specified buffer.
[in] | buffer | TX Periodic Update Message buffer handle. |
[out] | fc | pointer to returned Freshness Counter structure. |
uint32 mxfA629EmbeddedNVStorageFileMsgSelectSet | ( | HMXF_CHANNEL | channel, |
uint64 | select, | ||
uint64 | count, | ||
MXF_MSGID_A629 * | msgid | ||
) |
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] | msgid | pointer to an array of message identifiers. |
uint32 mxfA629EmbeddedNVStorageFileMsgSelectGet | ( | HMXF_CHANNEL | channel, |
uint64 | maxCount, | ||
uint64 * | count, | ||
MXF_MSGID_A629 * | msgid | ||
) |
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] | msgid | pointer to an array of message identifiers. |
uint32 mxfA629EmbeddedNVStorageFileMsgRead | ( | HMXF_NVSTORAGE | nvStorage, |
uint64 | fileIndex, | ||
uint64 | maxMsgCount, | ||
uint64 | maxBytesCount, | ||
uint64 * | msgCount, | ||
uint64 * | byteCount, | ||
MXF_A629_DATAREC * | msg | ||
) |
Reads the records from a specific file. The messages format must be of type MXF_EMBEDDED_NVSTORAGE_MSGTYPE_A629.
[in] | nvStorage | non-volatile storage handle |
[in] | fileIndex | 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 mxfA629NextDataRecordPtrGet() function. |
uint32 mxfA629EmbeddedNVStorageFileMsgWrite | ( | HMXF_NVSTORAGE | nvStorage, |
uint64 | fileIndex, | ||
uint64 | maxRecCount, | ||
MXF_A629_DATAREC * | msg, | ||
uint64 * | count | ||
) |
Writes messages to the specified file. The messages format must be of type MXF_EMBEDDED_NVSTORAGE_MSGTYPE_A629.
[in] | nvStorage | non-volatile storage handle |
[in] | fileIndex | file index |
[in] | maxRecCount | maximum number of messages to write |
[in] | msg | pointer to messages to write. The records in the buffer need to be indexed using mxfA629NextDataRecordPtrGet() function. |
[out] | count | number of messages actually written |