Public Member Functions | Public Attributes | Private Member Functions | Private Attributes | List of all members
pigpio._event Class Reference

Public Member Functions

def __init__ (self, notify, event, func=None)
 
def cancel (self)
 
def reset_tally (self)
 
def tally (self)
 

Public Attributes

 callb
 
 count
 

Private Member Functions

def _tally (self, event, tick)
 

Private Attributes

 _notify
 
 _reset
 

Detailed Description

A class to provide event callbacks.

Definition at line 1236 of file pigpio.py.

Constructor & Destructor Documentation

def pigpio._event.__init__ (   self,
  notify,
  event,
  func = None 
)
Initialise an event and adds it to the notification thread.

Definition at line 1239 of file pigpio.py.

Member Function Documentation

def pigpio._event._tally (   self,
  event,
  tick 
)
private
Increment the event callback called count.

Definition at line 1258 of file pigpio.py.

def pigpio._event.cancel (   self)
Cancels a event callback by removing it from the
notification thread.

Definition at line 1251 of file pigpio.py.

def pigpio._event.reset_tally (   self)
Resets the tally count to zero.

Definition at line 1275 of file pigpio.py.

def pigpio._event.tally (   self)
Provides a count of how many times the default tally
callback has triggered.

The count will be zero if the user has supplied their own
callback function.

Definition at line 1265 of file pigpio.py.

Member Data Documentation

pigpio._event._notify
private

Definition at line 1243 of file pigpio.py.

pigpio._event._reset
private

Definition at line 1245 of file pigpio.py.

pigpio._event.callb

Definition at line 1248 of file pigpio.py.

pigpio._event.count

Definition at line 1244 of file pigpio.py.


The documentation for this class was generated from the following file:


cob_hand_bridge
Author(s): Mathias Lüdtke
autogenerated on Tue Oct 20 2020 03:35:58