RtfwecatConfigureInstance
RtfwecatConfigureInstance configures an E-CAT MainDevice instance.
Syntax
bool RtfwecatConfigureInstance(
[in] unsigned int Instance,
[in] RTFWECAT_INSTANCE_CONFIGURATION Configuration
);
Parameters
[in] Instance
The instance number to create, in the range 0-62.
[in] Configuration
The parameters for the instance to create.
Return Value
If the function succeeds, it returns TRUE. If the function fails, it returns FALSE. Call GetLastError to obtain an error code.
Possible error codes:
| Error code | Meaning |
|---|---|
|
ERROR_INVALID_PARAMETER |
One of the following conditions occurred:
|
|
ERROR_NOT_ENOUGH_MEMORY |
Internal memory allocation failed. |
|
ERROR_ALREADY_ASSIGNED |
Configuration.IdealProcessor, Configuration.DisplayName, Configuration.PrimaryNicName, or Configuration.SecondaryNicName is used by another instance. |
|
ERROR_NOT_FOUND |
One of the following conditions occurred:
|
Requirements
| Minimum supported version | Header | Library |
|---|---|---|
|
wRTOS 1.0 SDK |
RtfwecatApi.h |
RtfwecatApi.lib |
See Also: