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

Function CipEpathGetNeededLogicalFormatForValue

source/src/cip/cipepath.c:632–643  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

630/* Special purpose functions */
631
632LogicalSegmentLogicalFormat CipEpathGetNeededLogicalFormatForValue(
633 CipDword value) {
634 LogicalSegmentLogicalFormat logical_format =
635 kLogicalSegmentLogicalFormatEightBit;
636 if(0xFF < value) {
637 logical_format = kLogicalSegmentLogicalFormatSixteenBit;
638 }
639 if(0xFFFF < value) {
640 logical_format = kLogicalSegmentLogicalFormatThirtyTwoBit;
641 }
642 return logical_format;
643}
644
645size_t CipEpathEncodeConnectionEpath(
646 const CipConnectionPathEpath *const connection_epath,

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected