libpandac  0.0.0
A library designed for a comm.ai Panda.
Public Member Functions | Protected Member Functions | Friends | List of all members
Panda::CanListener Class Referenceabstract

An abstract class for new data notifications for new CAN data. More...

#include <can.h>

Inheritance diagram for Panda::CanListener:
Inheritance graph
Collaboration diagram for Panda::CanListener:
Collaboration graph

Public Member Functions

void addToBlacklistBus (const int &busToBlock)
 Adds a BUS number to the blacklist. More...
 
void addToBlacklistMessageId (const int &idToBlock)
 Adds a message ID number to the blacklist. More...
 

Protected Member Functions

virtual void newDataNotification (CanFrame *canFrame)=0
 Called on a successful RMC message parse Overload this to get instant updates form freshly parsed CAN frames. Be efficient in this method! This will block further CAN reads and parsings. More...
 
void newDataNotificationProxy (CanFrame *canFrame)
 

Friends

class Can
 

Detailed Description

An abstract class for new data notifications for new CAN data.

This is the intended methodology for reading CAN data.

Member Function Documentation

void Panda::CanListener::addToBlacklistBus ( const int &  busToBlock)

Adds a BUS number to the blacklist.

Parameters
busToBlockThe bus to be blockes
void Panda::CanListener::addToBlacklistMessageId ( const int &  idToBlock)

Adds a message ID number to the blacklist.

Parameters
idToBlockThe message ID to be blocked
virtual void Panda::CanListener::newDataNotification ( CanFrame canFrame)
protectedpure virtual

Called on a successful RMC message parse Overload this to get instant updates form freshly parsed CAN frames. Be efficient in this method! This will block further CAN reads and parsings.

Parameters
canFrameThe most recent CAN frame.

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