watchdogdrv
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 _watchdogdrv as _watchdogdrv 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 57 58def Watchdog_initialize(major, minor, arguments): 59 r""" 60 This macro defines the watchdog device driver entry points. 61 62 Watchdog Driver Initialization 63 64 This method initializes the watchdog hardware device. The device 65 should be initialized as DISABLED since BSP initialization may 66 take longer than the timeout period for the watchdog. 67 68 :type major: rtems_device_major_number, in 69 :param major: is the watchdog device major number 70 :type minor: rtems_device_minor_number, in 71 :param minor: is the watchdog device minor number 72 :type arguments: void, in 73 :param arguments: points to device driver arguments 74 """ 75 return _watchdogdrv.Watchdog_initialize(major, minor, arguments) 76 77def Watchdog_control(major, minor, arguments): 78 r""" 79 Watchdog Driver IO Control 80 81 This method implements the IO Control device driver entry 82 point for the watchdog hardware device. 83 84 :type major: rtems_device_major_number, in 85 :param major: is the watchdog device major number 86 :type minor: rtems_device_minor_number, in 87 :param minor: is the watchdog device minor number 88 :type arguments: void, in 89 :param arguments: points to device driver arguments 90 """ 91 return _watchdogdrv.Watchdog_control(major, minor, arguments)
def
Watchdog_initialize(major, minor, arguments):
59def Watchdog_initialize(major, minor, arguments): 60 r""" 61 This macro defines the watchdog device driver entry points. 62 63 Watchdog Driver Initialization 64 65 This method initializes the watchdog hardware device. The device 66 should be initialized as DISABLED since BSP initialization may 67 take longer than the timeout period for the watchdog. 68 69 :type major: rtems_device_major_number, in 70 :param major: is the watchdog device major number 71 :type minor: rtems_device_minor_number, in 72 :param minor: is the watchdog device minor number 73 :type arguments: void, in 74 :param arguments: points to device driver arguments 75 """ 76 return _watchdogdrv.Watchdog_initialize(major, minor, arguments)
This macro defines the watchdog device driver entry points.
Watchdog Driver Initialization
This method initializes the watchdog hardware device. The device should be initialized as DISABLED since BSP initialization may take longer than the timeout period for the watchdog.
Parameters
- major: is the watchdog device major number
- minor: is the watchdog device minor number
- arguments: points to device driver arguments
def
Watchdog_control(major, minor, arguments):
78def Watchdog_control(major, minor, arguments): 79 r""" 80 Watchdog Driver IO Control 81 82 This method implements the IO Control device driver entry 83 point for the watchdog hardware device. 84 85 :type major: rtems_device_major_number, in 86 :param major: is the watchdog device major number 87 :type minor: rtems_device_minor_number, in 88 :param minor: is the watchdog device minor number 89 :type arguments: void, in 90 :param arguments: points to device driver arguments 91 """ 92 return _watchdogdrv.Watchdog_control(major, minor, arguments)
Watchdog Driver IO Control
This method implements the IO Control device driver entry point for the watchdog hardware device.
Parameters
- major: is the watchdog device major number
- minor: is the watchdog device minor number
- arguments: points to device driver arguments