MCPcopy Create free account
hub / github.com/EIPStackGroup/OpENer / IsConnectedOutputAssembly

Function IsConnectedOutputAssembly

source/src/cip/cipconnectionmanager.c:1424–1441  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1422}
1423
1424EipBool8 IsConnectedOutputAssembly(const EipUint32 instance_number) {
1425 EipBool8 is_connected = false;
1426
1427 DoublyLinkedListNode *node = connection_list.first;
1428
1429 while (NULL != node) {
1430 CipConnectionObject *connection_object = (CipConnectionObject *)node->data;
1431 CipDword consumed_connection_point =
1432 connection_object->consumed_path.instance_id;
1433 if (instance_number == consumed_connection_point &&
1434 true == ConnectionObjectIsTypeIOConnection(connection_object) ) {
1435 is_connected = true;
1436 break;
1437 }
1438 node = node->next;
1439 }
1440 return is_connected;
1441}
1442
1443EipStatus AddConnectableObject(
1444 const EipUint32 class_id,

Callers 1

Calls 1

Tested by

no test coverage detected