MX Foundation 4
|
Functions | |
uint32 | mxfPulseTxAperiodicWrite (HMXF_BUFFER buffer, uint64 options, uint64 startTime, uint64 count, MXF_PULSE_DATAREC *rec) |
uint32 | mxfPulseNextDataRecordPtrGet (MXF_PULSE_DATAREC *currentRec, MXF_PULSE_DATAREC **nextRec) |
uint32 mxfPulseTxAperiodicWrite | ( | HMXF_BUFFER | buffer, |
uint64 | options, | ||
uint64 | startTime, | ||
uint64 | count, | ||
MXF_PULSE_DATAREC * | rec | ||
) |
Sends aperiodic data records for transmission. The data items to be transmitted are specified within the records, along with an optional time tag. The first data item is transmitted at the specified starting time.
The records to transmit on time tag must be placed in chronological order in the array. The same time tag must not appear more than once in the array. When the start time is specified the time tag of the first record or the start time should be at least 50 msec in advance to be relatively precise otherwise it will be sent as soon as possible. Also, the cumulative time of all record's time tag and the start time must be smaller than 30 seconds.
[in] | buffer | buffer handle. |
[in] | options | options for controlling the transmitter before sending the data records. The details of the options are explained below.
|
[in] | startTime | start time based on the timebase. This is the time at which the data held in the first record is transmitted by the device. The time is either expressed accordingly to the process time base or relative to the current real-time clock value (i.e. offset in the future). If the bit MXF_TXAPERIODIC_FLAG_ABSOLUTE_START_TIME of the transmit flag is set, then the start time is specified in absolute time (rather than relative). MXF_TXAPERIODIC_FLAG_USE_RECORD_ABSOLUTE_TIME or MXF_TXAPERIODIC_FLAG_USE_RECORD_RELATIVE_TIME options cannot be used with a start time. |
[in] | count | number of records to write. |
[in] | rec | pointer to MXF_PULSE_DATAREC records to write. The records in the buffer need to be indexed using the mxfPulseNextDataRecordPtrGet() function. |
The options modifies the transmission scheme as described below;
This flag can't be used with MXF_TXAPERIODIC_FLAG_USE_RECORD_ABSOLUTE_TIME, MXF_TXAPERIODIC_FLAG_ABSOLUTE_START_TIME or a start time.Time rec1 = Transmission offset (min 50 msec)
Time rec2 = Time rec1 + (rec2 time tag - rec1 time tag )
Time rec3 = Time rec2 + (rec3 time tag - rec2 time tag )
...
Time recN = Time recN-1 + (recN time tag - recN-1 time tag )
uint32 mxfPulseNextDataRecordPtrGet | ( | MXF_PULSE_DATAREC * | currentRec, |
MXF_PULSE_DATAREC ** | nextRec | ||
) |
Returns the next buffer address in a MXF_PULSE_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. |