Visible to Intel only — GUID: iga1401400981875
Ixiasoft
Visible to Intel only — GUID: iga1401400981875
Ixiasoft
40.7.13. data_source_send_data()
Prototype: | int data_source_send_data(alt_u32 cmd_base, alt_u16 channel, alt_u16 size, alt_u32 flags, alt_u16 error, alt_u8 data_error_mask); |
Thread-safe: | No. |
Include: | <data_source_util.h> |
Parameters: | cmd_base—The base address of the command agent. channel—The channel to send the data on. size—The data size. flags —Specifies whether to send or suppress SOP and EOP signals. Valid values are DATA_SOURCE_SEND_SOP, DATA_SOURCE_SEND_EOP, DATA_SOURCE_SEND_SUPRESS_SOP and DATA_SOURCE_SEND_SUPRESS_EOP. error—The value asserted on the error signal on the output interface. data_error_mask—This parameter and the data are XORed together to produce erroneous data. |
Returns: | Always returns 1. |
Description: | This function sends a data fragment to the specified channel. If packets are supported, user applications must ensure the following conditions are met: SOP and EOP are used consistently in each channel. Except for the last segment in a packet, the length of each segment is a multiple of the data width. If packets are not supported, user applications must ensure the following conditions are met: No SOP and EOP indicators in the data. The length of each segment in a packet is a multiple of the data width. |