Transmission with record timing means the records are scheduled on the time tag set for each record.
Each time tag specifies a clock value defining when the record must be transmitted.
The option MXF_TXAPERIODIC_FLAG_USE_RECORD_ABSOLUTE_TIME
must be used for this type of transmission.
In the example below, the records are sent based on the absolute clock timing specified in the time tag field for each record.
ar708_aperiodic.c
uint32 rc;
size_t txBufferSize;
HMXF_CHANNEL txChannel;
HMXF_BUFFER txBuffer;
uint32 delay100ms = 100000000;
uint64 currentTime;
uint64 data, word;
...
if(!rc)
{
txBufferSize = 4*1024;
if(!rc)
{
if(!txHostBuffer)
rc = MAXT_ERROR_MEM;
}
}
...
rec=txHostBuffer;
printf("\nAperiodic transmission (Absolute with timetag)\n");
if (rc)
return rc;
currentTime+=100000000;
if(!rc)
{
for(data=0; data<MAX_TX_RECORDS_TO_TRANSMIT; data++)
{
rec->
timeTag = currentTime+(data*5000000);
for(word=0; word < rec->
dataSize/2; word++)
{
switch(word)
{
case 0:
break;
case 1:
case 2:
case 3:
rec->
data[word] = 0x0000;
break;
default:
rec->
data[word] = (uint16)(0x0101*data);
}
}
}
}
if(!rc)
{
printf("Transmitting ...\n");
rc =
mxfA708TxAperiodicWrite(txBuffer, MXF_TXAPERIODIC_FLAG_USE_RECORD_ABSOLUTE_TIME, 0, MAX_TX_RECORDS_TO_TRANSMIT, txHostBuffer);
}
...