regulatorimpl
1# This file was automatically generated by SWIG (https://www.swig.org). 2# Version 4.2.1 3# 4# Do not make changes to this file unless you know what you are doing - modify 5# the SWIG interface file instead. 6 7from sys import version_info as _swig_python_version_info 8from mock_rtems import _regulatorimpl as _regulatorimpl 9 10try: 11 import builtins as __builtin__ 12except ImportError: 13 import __builtin__ 14 15def _swig_repr(self): 16 try: 17 strthis = "proxy of " + self.this.__repr__() 18 except __builtin__.Exception: 19 strthis = "" 20 return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,) 21 22 23def _swig_setattr_nondynamic_instance_variable(set): 24 def set_instance_attr(self, name, value): 25 if name == "this": 26 set(self, name, value) 27 elif name == "thisown": 28 self.this.own(value) 29 elif hasattr(self, name) and isinstance(getattr(type(self), name), property): 30 set(self, name, value) 31 else: 32 raise AttributeError("You cannot add instance attributes to %s" % self) 33 return set_instance_attr 34 35 36def _swig_setattr_nondynamic_class_variable(set): 37 def set_class_attr(cls, name, value): 38 if hasattr(cls, name) and not isinstance(getattr(cls, name), property): 39 set(cls, name, value) 40 else: 41 raise AttributeError("You cannot add class attributes to %s" % cls) 42 return set_class_attr 43 44 45def _swig_add_metaclass(metaclass): 46 """Class decorator for adding a metaclass to a SWIG wrapped class - a slimmed down version of six.add_metaclass""" 47 def wrapper(cls): 48 return metaclass(cls.__name__, cls.__bases__, cls.__dict__.copy()) 49 return wrapper 50 51 52class _SwigNonDynamicMeta(type): 53 """Meta class to enforce nondynamic attributes (no new attributes) for a class""" 54 __setattr__ = _swig_setattr_nondynamic_class_variable(type.__setattr__) 55 56 57REGULATOR_INITIALIZED = _regulatorimpl.REGULATOR_INITIALIZED 58r"""This constant is used to indicate the regulator instance is initialized.""" 59class _Regulator_Message_t(object): 60 r"""Regulator Message Instance Management Structure""" 61 62 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag") 63 __repr__ = _swig_repr 64 buffer = property(_regulatorimpl._Regulator_Message_t_buffer_get, _regulatorimpl._Regulator_Message_t_buffer_set, doc=r""" This points to the message contents.""") 65 length = property(_regulatorimpl._Regulator_Message_t_length_get, _regulatorimpl._Regulator_Message_t_length_set, doc=r""" This is the length of the message.""") 66 67 def __init__(self): 68 r"""__init__(_Regulator_Message_t self) -> _Regulator_Message_t""" 69 _regulatorimpl._Regulator_Message_t_swiginit(self, _regulatorimpl.new__Regulator_Message_t()) 70 __swig_destroy__ = _regulatorimpl.delete__Regulator_Message_t 71 72# Register _Regulator_Message_t in _regulatorimpl: 73_regulatorimpl._Regulator_Message_t_swigregister(_Regulator_Message_t) 74class _Regulator_Statistics(object): 75 r""" 76 Regulator Statistics Private Structure 77 78 An instance of this structure is allocated per regulator instance. 79 """ 80 81 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag") 82 __repr__ = _swig_repr 83 obtained = property(_regulatorimpl._Regulator_Statistics_obtained_get, _regulatorimpl._Regulator_Statistics_obtained_set, doc=r""" Number of successfully obtained buffers.""") 84 released = property(_regulatorimpl._Regulator_Statistics_released_get, _regulatorimpl._Regulator_Statistics_released_set, doc=r""" Number of successfully released buffers.""") 85 delivered = property(_regulatorimpl._Regulator_Statistics_delivered_get, _regulatorimpl._Regulator_Statistics_delivered_set, doc=r""" Number of successfully delivered buffers.""") 86 87 def __init__(self): 88 r"""__init__(_Regulator_Statistics self) -> _Regulator_Statistics""" 89 _regulatorimpl._Regulator_Statistics_swiginit(self, _regulatorimpl.new__Regulator_Statistics()) 90 __swig_destroy__ = _regulatorimpl.delete__Regulator_Statistics 91 92# Register _Regulator_Statistics in _regulatorimpl: 93_regulatorimpl._Regulator_Statistics_swigregister(_Regulator_Statistics) 94class _Regulator_Control(object): 95 r""" 96 Regulator Instance Private Structure 97 98 An instance of this structure is allocated per regulator instance. 99 """ 100 101 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag") 102 __repr__ = _swig_repr 103 initialized = property(_regulatorimpl._Regulator_Control_initialized_get, _regulatorimpl._Regulator_Control_initialized_set, doc=r""" Has magic value when instance is usable""") 104 Attributes = property(_regulatorimpl._Regulator_Control_Attributes_get, _regulatorimpl._Regulator_Control_Attributes_set, doc=r""" Attributes for this instance -- copied from user""") 105 message_memory = property(_regulatorimpl._Regulator_Control_message_memory_get, _regulatorimpl._Regulator_Control_message_memory_set, doc=r""" Pointer to allocated message memory""") 106 message_queue_storage = property(_regulatorimpl._Regulator_Control_message_queue_storage_get, _regulatorimpl._Regulator_Control_message_queue_storage_set, doc=r""" Pointer to allocated memory for RTEMS Message Queue for pending buffers""") 107 queue_id = property(_regulatorimpl._Regulator_Control_queue_id_get, _regulatorimpl._Regulator_Control_queue_id_set, doc=r""" RTEMS Message Queue of pending outgoing messages""") 108 messages_partition_id = property(_regulatorimpl._Regulator_Control_messages_partition_id_get, _regulatorimpl._Regulator_Control_messages_partition_id_set, doc=r""" RTEMS Partition for pool of unused messages""") 109 delivery_thread_id = property(_regulatorimpl._Regulator_Control_delivery_thread_id_get, _regulatorimpl._Regulator_Control_delivery_thread_id_set, doc=r""" RTEMS Task for performing output""") 110 delivery_thread_period_id = property(_regulatorimpl._Regulator_Control_delivery_thread_period_id_get, _regulatorimpl._Regulator_Control_delivery_thread_period_id_set, doc=r""" Id of period used by output thread""") 111 delivery_thread_is_running = property(_regulatorimpl._Regulator_Control_delivery_thread_is_running_get, _regulatorimpl._Regulator_Control_delivery_thread_is_running_set, doc=r""" Indicates Delivery thread is running""") 112 delivery_thread_request_exit = property(_regulatorimpl._Regulator_Control_delivery_thread_request_exit_get, _regulatorimpl._Regulator_Control_delivery_thread_request_exit_set, doc=r""" Indicates Delivery thread has been requested to exit""") 113 delivery_thread_has_exited = property(_regulatorimpl._Regulator_Control_delivery_thread_has_exited_get, _regulatorimpl._Regulator_Control_delivery_thread_has_exited_set, doc=r""" Indicates Delivery thread has exited""") 114 Statistics = property(_regulatorimpl._Regulator_Control_Statistics_get, _regulatorimpl._Regulator_Control_Statistics_set, doc=r""" Internal Statistics""") 115 116 def __init__(self): 117 r"""__init__(_Regulator_Control self) -> _Regulator_Control""" 118 _regulatorimpl._Regulator_Control_swiginit(self, _regulatorimpl.new__Regulator_Control()) 119 __swig_destroy__ = _regulatorimpl.delete__Regulator_Control 120 121# Register _Regulator_Control in _regulatorimpl: 122_regulatorimpl._Regulator_Control_swigregister(_Regulator_Control)
REGULATOR_INITIALIZED =
See C documentation
This constant is used to indicate the regulator instance is initialized.