Builds a swiSendPattern message to send a fixed pattern on the specified switch block outputs. For more information, refer to swiSendPattern in the Switching Service Developer's Reference Manual.
U32 txswiSendPattern ( CPIPKT *pkt, BYTE pattern[], SWI_TERMINUS output[], unsigned count)
Argument |
Description |
pkt |
Pointer to the CPI packet to be formatted into a TX SWI request message. NULL = Return the byte length of the CPI packet required to send the request. |
pattern |
Array of patterns to output. |
output |
Array of output terminus descriptors. |
count |
Number of output patterns to define. |
Return value |
Description |
SUCCESS |
If pkt is NULL, the size of the required CPI packet is returned. If pkt is not NULL, 0 is returned to indicate a successful request, or an error code is returned if the request failed. |
MVIP95_ERR_INVALID_PARAMETER |
Invalid count. |