Beispiel #1
0
    def xIntegerImposeMin(self, min_value):

        min_value = int64_t(min_value)
        # AC_ERROR acIntegerImposeMin(
        #   acNode hNode,
        #   int64_t imposedMinimum)
        harenac.acIntegerImposeMin(self.hxnode, min_value)
Beispiel #2
0
    def xEnumerationSetByIntValue(self, value):

        value = int64_t(value)
        # AC_ERROR acEnumerationSetByIntValue(
        #   acNode hNode,
        #   int64_t value)
        harenac.acEnumerationSetByIntValue(self.hxnode, value)
Beispiel #3
0
    def xIntegerImposeMax(self, max_value):

        max_value = int64_t(max_value)
        # AC_ERROR acIntegerImposeMax(
        #   acNode hNode,
        #   int64_t imposedMaximum)
        harenac.acIntegerImposeMax(self.hxnode, max_value)
Beispiel #4
0
    def xIntegerSetValue(self, value):

        value = int64_t(value)
        # AC_ERROR acIntegerSetValue(
        #   acNode hNode,
        #   int64_t value)
        harenac.acIntegerSetValue(self.hxnode, value)
Beispiel #5
0
    def xIntegerGetInc(self):

        increment = int64_t(0)
        # AC_ERROR acIntegerGetInc(
        #   acNode hNode,
        #   int64_t* pIncrement)
        harenac.acIntegerGetInc(self.hxnode, byref(increment))

        return increment.value
Beispiel #6
0
    def xIntegerGetMin(self):

        min_value = int64_t(0)
        # AC_ERROR acIntegerGetMin(
        #   acNode hNode,
        #   int64_t* pMinimum)
        harenac.acIntegerGetMin(self.hxnode, byref(min_value))

        return min_value.value
Beispiel #7
0
    def xIntegerGetMax(self):

        max_value = int64_t(0)
        # AC_ERROR acIntegerGetMax(
        #   acNode hNode,
        #   int64_t* pMaximum)
        harenac.acIntegerGetMax(self.hxnode, byref(max_value))

        return max_value.value
Beispiel #8
0
    def xIntegerGetValue(self):

        value = int64_t(0)
        # AC_ERROR acIntegerGetValue(
        #   acNode hNode,
        #   int64_t* pValue)
        harenac.acIntegerGetValue(self.hxnode, byref(value))

        return value.value
Beispiel #9
0
    def xStringGetMaxLength(self):

        length = int64_t(0)
        # AC_ERROR acStringGetMaxLength(
        #   acNode hNode,
        #   int64_t* pMaxLength)
        harenac.acStringGetMaxLength(self.hxnode, byref(length))

        return length.value
Beispiel #10
0
    def xNodeGetPollingTime(self):

        polling_time = int64_t(0)
        # AC_ERROR acNodeGetPollingTime(
        #   acNode hNode,
        #   int64_t* pPollingTime)
        harenac.acNodeGetPollingTime(self.hxnode, byref(polling_time))

        return polling_time.value
Beispiel #11
0
    def xEnumEntryGetIntValue(self):

        int_value = int64_t(0)
        # AC_ERROR acEnumEntryGetIntValue(
        #   acNode hNode,
        #   int64_t* pValue)
        harenac.acEnumEntryGetIntValue(self.hxnode, byref(int_value))

        return int_value.value
Beispiel #12
0
    def xFloatGetDisplayPrecision(self):

        display_precision = int64_t(0)
        # AC_ERROR acFloatGetDisplayPrecision(
        #   acNode hNode,
        #   int64_t* pDisplayPrecision)
        harenac.acFloatGetDisplayPrecision(self.hxnode,
                                           byref(display_precision))

        return display_precision.value
Beispiel #13
0
    def xRegisterGet(self, register_len):

        buffer_p = uint8_t(0)
        buffer_len = int64_t(register_len)
        # AC_ERROR acRegisterGet(
        #   acNode hNode,
        #   uint8_t* pBuf,
        #   int64_t bufLen)
        harenac.acRegisterGet(self.hxnode, byref(buffer_p), buffer_len)

        return buffer_p.value