| Ucs_Return_t Ucs_Xrm_Stream_SetPortConfig | ( | Ucs_Inst_t * | self, | 
| uint16_t | destination_address, | ||
| uint8_t | index, | ||
| Ucs_Stream_PortOpMode_t | op_mode, | ||
| Ucs_Stream_PortOption_t | port_option, | ||
| Ucs_Stream_PortClockMode_t | clock_mode, | ||
| Ucs_Stream_PortClockDataDelay_t | clock_data_delay, | ||
| Ucs_Xrm_Stream_PortCfgResCb_t | result_fptr | ||
| ) | 
This function is used to configure a Streaming Port.
| This function corresponds with the INIC function INIC.StreamPortConfiguration. | 
| self | The UNICENS instance pointer | ||
| destination_address | Device address of the target. Use the UCS_ADDR_LOCAL_DEVmacro to target the local device.The following address ranges are supported: 
 | ||
| index | Streaming Port instance. 
 | ||
| op_mode | Operation mode of the Streaming Port. 
 | ||
| port_option | Direction of the Streaming Port. 
 | ||
| clock_mode | Configuration of the FSY/SCK signals. 
 | ||
| clock_data_delay | Configuration of the FSY/SCK signals for Generic Streaming. 
 | ||
| result_fptr | Required result callback | 
| Value | Description | 
|---|---|
| UCS_RET_SUCCESS | No error | 
| UCS_RET_ERR_PARAM | The given UNICENS instance pointer is NULL | 
| UCS_RET_ERR_BUFFER_OVERFLOW | No message buffer available | 
| UCS_RET_ERR_NOT_INITIALIZED | UNICENS is not initialized | 
 Example