Ordinateur de bord pour voiture de collection 7.1
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
CANBusClass Class Reference

Classe d'utilisation du bus CAN, est utilisé par les modules logiques. More...

Public Member Functions

def __init__ (self)
 The constructor. More...
 
def get (self, arbitration_id)
 envoie une requête puis reçoit la réponse. More...
 
def send (self, arbitration_id, data=[])
 envoie des données sur le bus CAN. More...
 
def stop (self)
 arret des fonctions can More...
 

Public Attributes

 Bus
 
 CanRep
 
 extended_id
 
 InitOK
 
 Msg
 
 notifier
 
 TimeOut
 

Static Public Attributes

bool InitOK = False
 

Detailed Description

Classe d'utilisation du bus CAN, est utilisé par les modules logiques.

Date
  • 22/09/2016 Création
  • 5.3 fevrier 2019 modification test du bus a l'initialisation, recupere par main.py

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self)

The constructor.

Member Function Documentation

◆ get()

def get (   self,
  arbitration_id 
)

envoie une requête puis reçoit la réponse.

Parameters
arbitration_id(= adresse)
Returns
data = [0 à 8 octets]

◆ send()

def send (   self,
  arbitration_id,
  data = [] 
)

envoie des données sur le bus CAN.

Parameters
arbitration_id(= adresse)
data= 8 table of octets max

◆ stop()

def stop (   self)

arret des fonctions can

Member Data Documentation

◆ Bus

Bus

◆ CanRep

CanRep

◆ extended_id

extended_id

◆ InitOK [1/2]

bool InitOK = False
static

◆ InitOK [2/2]

InitOK

◆ Msg

Msg

◆ notifier

notifier

◆ TimeOut

TimeOut

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