rtc
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 _rtc as _rtc 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 57RTC_DEVICE_NAME = _rtc.RTC_DEVICE_NAME 58r""" 59 * 60 Device file name path. 61 """ 62 63def rtc_initialize(arg1, arg2, arg3): 64 r""" 65 Device driver table entry. 66 67 Initializes the real-time clock device and sets the time of day for the 68 system. 69 70 If the real-time clock provides an invalid time of day value the system time 71 of day must remain untouched. 72 """ 73 return _rtc.rtc_initialize(arg1, arg2, arg3) 74 75def rtc_open(arg1, arg2, arg3): 76 r"""Opens the real-time clock device.""" 77 return _rtc.rtc_open(arg1, arg2, arg3) 78 79def rtc_close(arg1, arg2, arg3): 80 r"""Closes the real-time clock device.""" 81 return _rtc.rtc_close(arg1, arg2, arg3) 82 83def rtc_read(arg1, arg2, arg3): 84 r""" 85 Reads the real-time clock value. 86 87 The value will be returned in a 'rtems_time_of_day' structure. 88 """ 89 return _rtc.rtc_read(arg1, arg2, arg3) 90 91def rtc_write(arg1, arg2, arg3): 92 r""" 93 Sets the real-time clock value. 94 95 The value will be set from a 'rtems_time_of_day' structure. 96 """ 97 return _rtc.rtc_write(arg1, arg2, arg3) 98 99def rtc_control(arg1, arg2, arg3): 100 r"""Controls the real-time clock.""" 101 return _rtc.rtc_control(arg1, arg2, arg3)
RTC_DEVICE_NAME =
See C documentation
* Device file name path.
def
rtc_initialize(arg1, arg2, arg3):
64def rtc_initialize(arg1, arg2, arg3): 65 r""" 66 Device driver table entry. 67 68 Initializes the real-time clock device and sets the time of day for the 69 system. 70 71 If the real-time clock provides an invalid time of day value the system time 72 of day must remain untouched. 73 """ 74 return _rtc.rtc_initialize(arg1, arg2, arg3)
Device driver table entry.
Initializes the real-time clock device and sets the time of day for the system.
If the real-time clock provides an invalid time of day value the system time of day must remain untouched.
def
rtc_open(arg1, arg2, arg3):
76def rtc_open(arg1, arg2, arg3): 77 r"""Opens the real-time clock device.""" 78 return _rtc.rtc_open(arg1, arg2, arg3)
Opens the real-time clock device.
def
rtc_close(arg1, arg2, arg3):
80def rtc_close(arg1, arg2, arg3): 81 r"""Closes the real-time clock device.""" 82 return _rtc.rtc_close(arg1, arg2, arg3)
Closes the real-time clock device.
def
rtc_read(arg1, arg2, arg3):
84def rtc_read(arg1, arg2, arg3): 85 r""" 86 Reads the real-time clock value. 87 88 The value will be returned in a 'rtems_time_of_day' structure. 89 """ 90 return _rtc.rtc_read(arg1, arg2, arg3)
Reads the real-time clock value.
The value will be returned in a 'rtems_time_of_day' structure.
def
rtc_write(arg1, arg2, arg3):
92def rtc_write(arg1, arg2, arg3): 93 r""" 94 Sets the real-time clock value. 95 96 The value will be set from a 'rtems_time_of_day' structure. 97 """ 98 return _rtc.rtc_write(arg1, arg2, arg3)
Sets the real-time clock value.
The value will be set from a 'rtems_time_of_day' structure.
def
rtc_control(arg1, arg2, arg3):
100def rtc_control(arg1, arg2, arg3): 101 r"""Controls the real-time clock.""" 102 return _rtc.rtc_control(arg1, arg2, arg3)
Controls the real-time clock.