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

Function GetCipService

source/src/cip/cipcommon.c:692–703  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

690}
691
692CipServiceStruct *GetCipService(const CipInstance *const instance,
693 CipUsint service_number) {
694 CipServiceStruct *service = instance->cip_class->services;
695 for (size_t i = 0; i < instance->cip_class->number_of_services; i++) /* hunt for the GET_ATTRIBUTE_SINGLE service*/
696 {
697 if (service->service_number == service_number) {
698 return service; /* found the service */
699 }
700 service++;
701 }
702 return NULL; /* didn't find the service */
703}
704
705EipStatus GetAttributeAll(CipInstance *instance,
706 CipMessageRouterRequest *message_router_request,

Callers 1

GetAttributeAllFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected