console
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 _console as _console 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 57CONSOLE_DEVICE_NAME = _console.CONSOLE_DEVICE_NAME 58r""" 59 This macro defines the standard name for the console device 60 that is available to applications. 61 """ 62 63def console_initialize(major, minor, arg): 64 r""" 65 This macro defines the standard device driver table entry for 66 a console device driver. 67 68 Console initialization entry point. 69 70 This method initializes the console device driver. 71 72 :type major: rtems_device_major_number, in 73 :param major: is the device driver major number. 74 :type minor: rtems_device_minor_number, in 75 :param minor: is the device driver minor number. 76 :type arg: void, in 77 :param arg: is the parameters to this call. 78 """ 79 return _console.console_initialize(major, minor, arg) 80 81def console_open(major, minor, arg): 82 r""" 83 Console open entry point. 84 85 This method opens a specific device supported by the 86 console device driver. 87 88 :type major: rtems_device_major_number, in 89 :param major: is the device driver major number 90 :type minor: rtems_device_minor_number, in 91 :param minor: is the device driver minor number 92 :type arg: void, in 93 :param arg: is the parameters to this call 94 """ 95 return _console.console_open(major, minor, arg) 96 97def console_close(major, minor, arg): 98 r""" 99 Console close entry point. 100 101 This method closes a specific device supported by the 102 console device driver. 103 104 :type major: rtems_device_major_number, in 105 :param major: is the device driver major number 106 :type minor: rtems_device_minor_number, in 107 :param minor: is the device driver minor number 108 :type arg: void, in 109 :param arg: is the parameters to this call 110 """ 111 return _console.console_close(major, minor, arg) 112 113def console_read(major, minor, arg): 114 r""" 115 Console read entry point. 116 117 This method reads from a specific device supported by the 118 console device driver. 119 120 :type major: rtems_device_major_number, in 121 :param major: is the device driver major number 122 :type minor: rtems_device_minor_number, in 123 :param minor: is the device driver minor number 124 :type arg: void, in 125 :param arg: is the parameters to this call 126 """ 127 return _console.console_read(major, minor, arg) 128 129def console_write(major, minor, arg): 130 r""" 131 Console write entry point. 132 133 This method writes to a specific device supported by the 134 console device driver. 135 136 :type major: rtems_device_major_number, in 137 :param major: is the device driver major number 138 :type minor: rtems_device_minor_number, in 139 :param minor: is the device driver minor number 140 :type arg: void, in 141 :param arg: is the parameters to this call 142 """ 143 return _console.console_write(major, minor, arg) 144 145def console_control(major, minor, arg): 146 r""" 147 Console IO control entry point. 148 149 This method performs an IO Control operation on a 150 specific device supported by the console device driver. 151 152 :type major: rtems_device_major_number, in 153 :param major: is the device driver major number 154 :type minor: rtems_device_minor_number, in 155 :param minor: is the device driver minor number 156 :type arg: void, in 157 :param arg: is the parameters to this call 158 """ 159 return _console.console_control(major, minor, arg) 160 161def _Console_simple_Initialize(): 162 r""" 163 Initializes a simple console device. 164 165 See CONFIGURE_APPLICATION_NEEDS_SIMPLE_CONSOLE_DRIVER documentation in the 166 "RTEMS Classic API Guide". 167 """ 168 return _console._Console_simple_Initialize() 169 170def _Console_simple_task_Initialize(): 171 r""" 172 Initializes a simple task console device. 173 174 See CONFIGURE_APPLICATION_NEEDS_SIMPLE_TASK_CONSOLE_DRIVER documentation in 175 the "RTEMS Classic API Guide". 176 """ 177 return _console._Console_simple_task_Initialize()
This macro defines the standard name for the console device that is available to applications.
64def console_initialize(major, minor, arg): 65 r""" 66 This macro defines the standard device driver table entry for 67 a console device driver. 68 69 Console initialization entry point. 70 71 This method initializes the console device driver. 72 73 :type major: rtems_device_major_number, in 74 :param major: is the device driver major number. 75 :type minor: rtems_device_minor_number, in 76 :param minor: is the device driver minor number. 77 :type arg: void, in 78 :param arg: is the parameters to this call. 79 """ 80 return _console.console_initialize(major, minor, arg)
This macro defines the standard device driver table entry for a console device driver.
Console initialization entry point.
This method initializes the console device driver.
Parameters
- major: is the device driver major number.
- minor: is the device driver minor number.
- arg: is the parameters to this call.
82def console_open(major, minor, arg): 83 r""" 84 Console open entry point. 85 86 This method opens a specific device supported by the 87 console device driver. 88 89 :type major: rtems_device_major_number, in 90 :param major: is the device driver major number 91 :type minor: rtems_device_minor_number, in 92 :param minor: is the device driver minor number 93 :type arg: void, in 94 :param arg: is the parameters to this call 95 """ 96 return _console.console_open(major, minor, arg)
Console open entry point.
This method opens a specific device supported by the console device driver.
Parameters
- major: is the device driver major number
- minor: is the device driver minor number
- arg: is the parameters to this call
98def console_close(major, minor, arg): 99 r""" 100 Console close entry point. 101 102 This method closes a specific device supported by the 103 console device driver. 104 105 :type major: rtems_device_major_number, in 106 :param major: is the device driver major number 107 :type minor: rtems_device_minor_number, in 108 :param minor: is the device driver minor number 109 :type arg: void, in 110 :param arg: is the parameters to this call 111 """ 112 return _console.console_close(major, minor, arg)
Console close entry point.
This method closes a specific device supported by the console device driver.
Parameters
- major: is the device driver major number
- minor: is the device driver minor number
- arg: is the parameters to this call
114def console_read(major, minor, arg): 115 r""" 116 Console read entry point. 117 118 This method reads from a specific device supported by the 119 console device driver. 120 121 :type major: rtems_device_major_number, in 122 :param major: is the device driver major number 123 :type minor: rtems_device_minor_number, in 124 :param minor: is the device driver minor number 125 :type arg: void, in 126 :param arg: is the parameters to this call 127 """ 128 return _console.console_read(major, minor, arg)
Console read entry point.
This method reads from a specific device supported by the console device driver.
Parameters
- major: is the device driver major number
- minor: is the device driver minor number
- arg: is the parameters to this call
130def console_write(major, minor, arg): 131 r""" 132 Console write entry point. 133 134 This method writes to a specific device supported by the 135 console device driver. 136 137 :type major: rtems_device_major_number, in 138 :param major: is the device driver major number 139 :type minor: rtems_device_minor_number, in 140 :param minor: is the device driver minor number 141 :type arg: void, in 142 :param arg: is the parameters to this call 143 """ 144 return _console.console_write(major, minor, arg)
Console write entry point.
This method writes to a specific device supported by the console device driver.
Parameters
- major: is the device driver major number
- minor: is the device driver minor number
- arg: is the parameters to this call
146def console_control(major, minor, arg): 147 r""" 148 Console IO control entry point. 149 150 This method performs an IO Control operation on a 151 specific device supported by the console device driver. 152 153 :type major: rtems_device_major_number, in 154 :param major: is the device driver major number 155 :type minor: rtems_device_minor_number, in 156 :param minor: is the device driver minor number 157 :type arg: void, in 158 :param arg: is the parameters to this call 159 """ 160 return _console.console_control(major, minor, arg)
Console IO control entry point.
This method performs an IO Control operation on a specific device supported by the console device driver.
Parameters
- major: is the device driver major number
- minor: is the device driver minor number
- arg: is the parameters to this call