This function requests the configurations of a Streaming Port.
- Parameters
-
self | The UNICENS instance pointer |
destination_address | Device address of the target. Use the UCS_ADDR_LOCAL_DEV macro to target the local device.
The following address ranges are supported:
- [0x10 ... 0x2FF]
- [0x500 ... 0xFEF]
- UCS_ADDR_LOCAL_DEV
|
index | Streaming Port instance.
|
result_fptr | Required result callback |
- Returns
- Possible return values are shown in the table below.
Value | Description |
UCS_RET_SUCCESS | No error |
UCS_RET_ERR_PARAM | At least one parameter is wrong |
UCS_RET_ERR_BUFFER_OVERFLOW | No message buffer available |
UCS_RET_ERR_API_LOCKED | API is currently locked |
UCS_RET_ERR_NOT_INITIALIZED | UNICENS is not initialized |
Example
void main()
{
}
static void App_XrmStreamPortCfgResCb(uint16_t node_address,
uint8_t index,
void *user_ptr)
{
{
}
}