ar_assign_scheduler_start_offsets

int ar_assign_scheduler_start_offsets (short board);

Purpose

This function determines the appropriate start offset values for each transmit channel message scenario as a best estimate to avoid rate skew on the respective channel.  It first reads all defined messages from the message scheduler table (any message having a non-zero rate attribute), determines the appropriate start offset value for all messages on a channel-by-channel basis, then updates the respective start offset values in the table.  This function should be called immediately following the last invocation of ar_define_msg or ar_define_msg_block, and must be called prior to the invocation of ar_go.  The transmit channel bus speed for all channels referenced in the message scheduler table entries must also be assigned prior to calling this routine.

The start offset values defined by this function do not account for bus timing issues and/or message rate skew due to bursts of aperiodic messages invoked by the host application. 

All start offset values assigned assume a continuous transmission of all messages defined in the message scheduler table.

Parameters

Input

Name

Type

Description

board

short

(input) Device Number of the board to reference, (valid range is 0-127).

Return Value

Name

Type

Description

status

int

status of the function call, with valid values of:
ARS_NORMAL            Success.
ARS_INVBOARD        Invalid or uninitialized board.
ARS_BOARD_MUTEX Access to the Board Lock timed-out/failed.
ARS_FAILURE           Message processing was active on the board.

References

Transmit Data Processing Functions
Alphabetical Function Index
Hierarchical Function Index

CEI-x30 API Description