| 630 | /* Special purpose functions */ |
| 631 | |
| 632 | LogicalSegmentLogicalFormat 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 | |
| 645 | size_t CipEpathEncodeConnectionEpath( |
| 646 | const CipConnectionPathEpath *const connection_epath, |
no outgoing calls
no test coverage detected