assoc

  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 _assoc as _assoc
  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
 57class rtems_assoc_t(object):
 58    r"""Proxy of C rtems_assoc_t struct."""
 59
 60    thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
 61    __repr__ = _swig_repr
 62    name = property(_assoc.rtems_assoc_t_name_get, _assoc.rtems_assoc_t_name_set, doc=r"""name : p.q(const).char""")
 63    local_value = property(_assoc.rtems_assoc_t_local_value_get, _assoc.rtems_assoc_t_local_value_set, doc=r"""local_value : uint32_t""")
 64    remote_value = property(_assoc.rtems_assoc_t_remote_value_get, _assoc.rtems_assoc_t_remote_value_set, doc=r"""remote_value : uint32_t""")
 65
 66    def __init__(self):
 67        r"""__init__(rtems_assoc_t self) -> rtems_assoc_t"""
 68        _assoc.rtems_assoc_t_swiginit(self, _assoc.new_rtems_assoc_t())
 69    __swig_destroy__ = _assoc.delete_rtems_assoc_t
 70
 71# Register rtems_assoc_t in _assoc:
 72_assoc.rtems_assoc_t_swigregister(rtems_assoc_t)
 73RTEMS_ASSOC_DEFAULT_NAME = _assoc.RTEMS_ASSOC_DEFAULT_NAME
 74
 75
 76def rtems_assoc_ptr_by_name(arg1, arg2):
 77    r""" RTEMS Associate Pointer by Name"""
 78    return _assoc.rtems_assoc_ptr_by_name(arg1, arg2)
 79
 80def rtems_assoc_ptr_by_remote(arg1, arg2):
 81    r""" RTEMS Associate Pointer by Remote"""
 82    return _assoc.rtems_assoc_ptr_by_remote(arg1, arg2)
 83
 84def rtems_assoc_remote_by_local(arg1, arg2):
 85    r"""
 86    rtems_assoc_remote_by_local(rtems_assoc_t arg1, uint32_t arg2) -> uint32_t
 87
 88    Parameters
 89    ----------
 90    arg1: rtems_assoc_t const *
 91    arg2: uint32_t
 92
 93    """
 94    return _assoc.rtems_assoc_remote_by_local(arg1, arg2)
 95
 96def rtems_assoc_local_by_remote(arg1, arg2):
 97    r""" RTEMS Associate Local by Remote"""
 98    return _assoc.rtems_assoc_local_by_remote(arg1, arg2)
 99
100def rtems_assoc_remote_by_name(arg1, arg2):
101    r""" RTEMS Associate Remote by Name"""
102    return _assoc.rtems_assoc_remote_by_name(arg1, arg2)
103
104def rtems_assoc_local_by_name(arg1, arg2):
105    r""" RTEMS Associate Local by Name"""
106    return _assoc.rtems_assoc_local_by_name(arg1, arg2)
107
108def rtems_assoc_name_by_local(arg1, arg2):
109    r""" RTEMS Associate Name by Local"""
110    return _assoc.rtems_assoc_name_by_local(arg1, arg2)
111
112def rtems_assoc_name_by_remote(arg1, arg2):
113    r""" RTEMS Associate Name by Remote"""
114    return _assoc.rtems_assoc_name_by_remote(arg1, arg2)
115
116def rtems_assoc_remote_by_local_bitfield(arg1, arg2):
117    r""" RTEMS Assoc Routines"""
118    return _assoc.rtems_assoc_remote_by_local_bitfield(arg1, arg2)
119
120def rtems_assoc_name_by_local_bitfield(arg1, arg2, arg3):
121    r""" RTEMS Associate Name by Local Bitfield"""
122    return _assoc.rtems_assoc_name_by_local_bitfield(arg1, arg2, arg3)
123
124def rtems_assoc_name_by_remote_bitfield(arg1, arg2, arg3):
125    r""" RTEMS Associate Name by Remote Bitfield"""
126    return _assoc.rtems_assoc_name_by_remote_bitfield(arg1, arg2, arg3)
127
128def rtems_assoc_local_by_remote_bitfield(arg1, arg2):
129    r"""
130    rtems_assoc_local_by_remote_bitfield(rtems_assoc_t arg1, uint32_t arg2) -> uint32_t
131
132    Parameters
133    ----------
134    arg1: rtems_assoc_t const *
135    arg2: uint32_t
136
137    """
138    return _assoc.rtems_assoc_local_by_remote_bitfield(arg1, arg2)
139
140def rtems_assoc_ptr_by_local(ap, local_value):
141    r""" RTEMS Associate Pointer by Local"""
142    return _assoc.rtems_assoc_ptr_by_local(ap, local_value)
143class rtems_assoc_32_pair(object):
144    r"""Proxy of C rtems_assoc_32_pair struct."""
145
146    thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
147    __repr__ = _swig_repr
148    bits = property(_assoc.rtems_assoc_32_pair_bits_get, _assoc.rtems_assoc_32_pair_bits_set, doc=r"""bits : uint32_t""")
149    name = property(_assoc.rtems_assoc_32_pair_name_get, _assoc.rtems_assoc_32_pair_name_set, doc=r"""name : p.q(const).char""")
150
151    def __init__(self):
152        r"""__init__(rtems_assoc_32_pair self) -> rtems_assoc_32_pair"""
153        _assoc.rtems_assoc_32_pair_swiginit(self, _assoc.new_rtems_assoc_32_pair())
154    __swig_destroy__ = _assoc.delete_rtems_assoc_32_pair
155
156# Register rtems_assoc_32_pair in _assoc:
157_assoc.rtems_assoc_32_pair_swigregister(rtems_assoc_32_pair)
158
159def rtems_assoc_32_to_string(value, buffer, buffer_size, pairs, pair_count, separator, fallback):
160    r"""
161    Converts the specified value into a text representation.
162
163    :type value: uint32_t, in
164    :param value: The value to convert.
165    :type buffer: string, in
166    :param buffer: The buffer for the text representation.
167    :type buffer_size: int, in
168    :param buffer_size: The buffer size in characters.
169    :type pairs: :py:class:`rtems_assoc_32_pair`, in
170    :param pairs: Names for particular bits.
171    :type pair_count: int, in
172    :param pair_count: Count of pairs.
173    :type separator: string, in
174    :param separator: Separator between individual names.
175    :type fallback: string, in
176    :param fallback: Fallback value in case no bits contained in the pairs
177          are set in the value.
178    """
179    return _assoc.rtems_assoc_32_to_string(value, buffer, buffer_size, pairs, pair_count, separator, fallback)
180
181def rtems_assoc_thread_states_to_string(states, buffer, buffer_size):
182    r"""
183    Converts the specified thread states into a text representation.
184
185    :type states: uint32_t, in
186    :param states: The thread states to convert.
187    :type buffer: string, in
188    :param buffer: The buffer for the text representation.
189    :type buffer_size: int, in
190    :param buffer_size: The buffer size in characters.
191    """
192    return _assoc.rtems_assoc_thread_states_to_string(states, buffer, buffer_size)
class rtems_assoc_t:
58class rtems_assoc_t(object):
59    r"""Proxy of C rtems_assoc_t struct."""
60
61    thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
62    __repr__ = _swig_repr
63    name = property(_assoc.rtems_assoc_t_name_get, _assoc.rtems_assoc_t_name_set, doc=r"""name : p.q(const).char""")
64    local_value = property(_assoc.rtems_assoc_t_local_value_get, _assoc.rtems_assoc_t_local_value_set, doc=r"""local_value : uint32_t""")
65    remote_value = property(_assoc.rtems_assoc_t_remote_value_get, _assoc.rtems_assoc_t_remote_value_set, doc=r"""remote_value : uint32_t""")
66
67    def __init__(self):
68        r"""__init__(rtems_assoc_t self) -> rtems_assoc_t"""
69        _assoc.rtems_assoc_t_swiginit(self, _assoc.new_rtems_assoc_t())
70    __swig_destroy__ = _assoc.delete_rtems_assoc_t

Proxy of C rtems_assoc_t struct.

rtems_assoc_t()
67    def __init__(self):
68        r"""__init__(rtems_assoc_t self) -> rtems_assoc_t"""
69        _assoc.rtems_assoc_t_swiginit(self, _assoc.new_rtems_assoc_t())

__init__(rtems_assoc_t self) -> rtems_assoc_t

thisown
61    thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")

The membership flag

name
local_value
remote_value
RTEMS_ASSOC_DEFAULT_NAME = See C documentation
def rtems_assoc_ptr_by_name(arg1, arg2):
77def rtems_assoc_ptr_by_name(arg1, arg2):
78    r""" RTEMS Associate Pointer by Name"""
79    return _assoc.rtems_assoc_ptr_by_name(arg1, arg2)

RTEMS Associate Pointer by Name

def rtems_assoc_ptr_by_remote(arg1, arg2):
81def rtems_assoc_ptr_by_remote(arg1, arg2):
82    r""" RTEMS Associate Pointer by Remote"""
83    return _assoc.rtems_assoc_ptr_by_remote(arg1, arg2)

RTEMS Associate Pointer by Remote

def rtems_assoc_remote_by_local(arg1, arg2):
85def rtems_assoc_remote_by_local(arg1, arg2):
86    r"""
87    rtems_assoc_remote_by_local(rtems_assoc_t arg1, uint32_t arg2) -> uint32_t
88
89    Parameters
90    ----------
91    arg1: rtems_assoc_t const *
92    arg2: uint32_t
93
94    """
95    return _assoc.rtems_assoc_remote_by_local(arg1, arg2)

rtems_assoc_remote_by_local(rtems_assoc_t arg1, uint32_t arg2) -> uint32_t

Parameters

arg1: rtems_assoc_t const * arg2: uint32_t

def rtems_assoc_local_by_remote(arg1, arg2):
97def rtems_assoc_local_by_remote(arg1, arg2):
98    r""" RTEMS Associate Local by Remote"""
99    return _assoc.rtems_assoc_local_by_remote(arg1, arg2)

RTEMS Associate Local by Remote

def rtems_assoc_remote_by_name(arg1, arg2):
101def rtems_assoc_remote_by_name(arg1, arg2):
102    r""" RTEMS Associate Remote by Name"""
103    return _assoc.rtems_assoc_remote_by_name(arg1, arg2)

RTEMS Associate Remote by Name

def rtems_assoc_local_by_name(arg1, arg2):
105def rtems_assoc_local_by_name(arg1, arg2):
106    r""" RTEMS Associate Local by Name"""
107    return _assoc.rtems_assoc_local_by_name(arg1, arg2)

RTEMS Associate Local by Name

def rtems_assoc_name_by_local(arg1, arg2):
109def rtems_assoc_name_by_local(arg1, arg2):
110    r""" RTEMS Associate Name by Local"""
111    return _assoc.rtems_assoc_name_by_local(arg1, arg2)

RTEMS Associate Name by Local

def rtems_assoc_name_by_remote(arg1, arg2):
113def rtems_assoc_name_by_remote(arg1, arg2):
114    r""" RTEMS Associate Name by Remote"""
115    return _assoc.rtems_assoc_name_by_remote(arg1, arg2)

RTEMS Associate Name by Remote

def rtems_assoc_remote_by_local_bitfield(arg1, arg2):
117def rtems_assoc_remote_by_local_bitfield(arg1, arg2):
118    r""" RTEMS Assoc Routines"""
119    return _assoc.rtems_assoc_remote_by_local_bitfield(arg1, arg2)

RTEMS Assoc Routines

def rtems_assoc_name_by_local_bitfield(arg1, arg2, arg3):
121def rtems_assoc_name_by_local_bitfield(arg1, arg2, arg3):
122    r""" RTEMS Associate Name by Local Bitfield"""
123    return _assoc.rtems_assoc_name_by_local_bitfield(arg1, arg2, arg3)

RTEMS Associate Name by Local Bitfield

def rtems_assoc_name_by_remote_bitfield(arg1, arg2, arg3):
125def rtems_assoc_name_by_remote_bitfield(arg1, arg2, arg3):
126    r""" RTEMS Associate Name by Remote Bitfield"""
127    return _assoc.rtems_assoc_name_by_remote_bitfield(arg1, arg2, arg3)

RTEMS Associate Name by Remote Bitfield

def rtems_assoc_local_by_remote_bitfield(arg1, arg2):
129def rtems_assoc_local_by_remote_bitfield(arg1, arg2):
130    r"""
131    rtems_assoc_local_by_remote_bitfield(rtems_assoc_t arg1, uint32_t arg2) -> uint32_t
132
133    Parameters
134    ----------
135    arg1: rtems_assoc_t const *
136    arg2: uint32_t
137
138    """
139    return _assoc.rtems_assoc_local_by_remote_bitfield(arg1, arg2)

rtems_assoc_local_by_remote_bitfield(rtems_assoc_t arg1, uint32_t arg2) -> uint32_t

Parameters

arg1: rtems_assoc_t const * arg2: uint32_t

def rtems_assoc_ptr_by_local(ap, local_value):
141def rtems_assoc_ptr_by_local(ap, local_value):
142    r""" RTEMS Associate Pointer by Local"""
143    return _assoc.rtems_assoc_ptr_by_local(ap, local_value)

RTEMS Associate Pointer by Local

class rtems_assoc_32_pair:
144class rtems_assoc_32_pair(object):
145    r"""Proxy of C rtems_assoc_32_pair struct."""
146
147    thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
148    __repr__ = _swig_repr
149    bits = property(_assoc.rtems_assoc_32_pair_bits_get, _assoc.rtems_assoc_32_pair_bits_set, doc=r"""bits : uint32_t""")
150    name = property(_assoc.rtems_assoc_32_pair_name_get, _assoc.rtems_assoc_32_pair_name_set, doc=r"""name : p.q(const).char""")
151
152    def __init__(self):
153        r"""__init__(rtems_assoc_32_pair self) -> rtems_assoc_32_pair"""
154        _assoc.rtems_assoc_32_pair_swiginit(self, _assoc.new_rtems_assoc_32_pair())
155    __swig_destroy__ = _assoc.delete_rtems_assoc_32_pair

Proxy of C rtems_assoc_32_pair struct.

rtems_assoc_32_pair()
152    def __init__(self):
153        r"""__init__(rtems_assoc_32_pair self) -> rtems_assoc_32_pair"""
154        _assoc.rtems_assoc_32_pair_swiginit(self, _assoc.new_rtems_assoc_32_pair())

__init__(rtems_assoc_32_pair self) -> rtems_assoc_32_pair

thisown
147    thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")

The membership flag

bits
name
def rtems_assoc_32_to_string(value, buffer, buffer_size, pairs, pair_count, separator, fallback):
160def rtems_assoc_32_to_string(value, buffer, buffer_size, pairs, pair_count, separator, fallback):
161    r"""
162    Converts the specified value into a text representation.
163
164    :type value: uint32_t, in
165    :param value: The value to convert.
166    :type buffer: string, in
167    :param buffer: The buffer for the text representation.
168    :type buffer_size: int, in
169    :param buffer_size: The buffer size in characters.
170    :type pairs: :py:class:`rtems_assoc_32_pair`, in
171    :param pairs: Names for particular bits.
172    :type pair_count: int, in
173    :param pair_count: Count of pairs.
174    :type separator: string, in
175    :param separator: Separator between individual names.
176    :type fallback: string, in
177    :param fallback: Fallback value in case no bits contained in the pairs
178          are set in the value.
179    """
180    return _assoc.rtems_assoc_32_to_string(value, buffer, buffer_size, pairs, pair_count, separator, fallback)

Converts the specified value into a text representation.

Parameters
  • value: The value to convert.
  • buffer: The buffer for the text representation.
  • buffer_size: The buffer size in characters.
  • pairs: Names for particular bits.
  • pair_count: Count of pairs.
  • separator: Separator between individual names.
  • fallback: Fallback value in case no bits contained in the pairs are set in the value.
def rtems_assoc_thread_states_to_string(states, buffer, buffer_size):
182def rtems_assoc_thread_states_to_string(states, buffer, buffer_size):
183    r"""
184    Converts the specified thread states into a text representation.
185
186    :type states: uint32_t, in
187    :param states: The thread states to convert.
188    :type buffer: string, in
189    :param buffer: The buffer for the text representation.
190    :type buffer_size: int, in
191    :param buffer_size: The buffer size in characters.
192    """
193    return _assoc.rtems_assoc_thread_states_to_string(states, buffer, buffer_size)

Converts the specified thread states into a text representation.

Parameters
  • states: The thread states to convert.
  • buffer: The buffer for the text representation.
  • buffer_size: The buffer size in characters.