xip_status
xip_array_<type>_set_chan(
xip_array_<type>* p
const <type> value,
size_t path,
size_t chan,
size_t index
xip_fir_v7_2_pattern pattern
);
This function maps an array index for one channel, specified by path and chan , onto the 3-D structure of xip_array_<type> structure expected by the xip_fir_v7_2_data_send (see Send DATA Packet ) and xip_fir_v7_2_data_get (see Get DATA Packet ) functions of the model.
This function should be particularly useful for the Advanced Interleaved Channels feature; where locations in the input array are remapped to duplicate entries for some channels. This Figure shows this requirement.
pattern should be set to P_BASIC for a Basic Interleaved Channel model configuration and set to the current pattern ID for an Advanced Interleaved Channel model configuration. See Table: Advanced Interleaved Data Channel Patterns for a list of all the supported patterns and see fir_compiler_v7_2_bitacc_cmodel.h for the enumerated pattern IDs.
Note: If the value of index exceeds the current capacity (data_capacity) of p then the function issues a XIP_STATUS_ERROR. If the value of index exceeds number of elements (data_size) of p then the function sets the new size of the array.