MyBeoChipListener Class Reference

Our own little BeoChipListener. More...

Inheritance diagram for MyBeoChipListener:
Inheritance graph
[legend]
Collaboration diagram for MyBeoChipListener:
Collaboration graph
[legend]

List of all members.

Public Member Functions

virtual void event (const BeoChipEventType t, const int valint, const float valfloat)
 An event was received.
 MyBeoChipListener (nub::soft_ref< BeoChip > bc)
virtual void event (const BeoChipEventType t, const int valint, const float valfloat)
 An event was received.
 MyBeoChipListener (nub::soft_ref< BeoChip > bc)
virtual void event (const BeoChipEventType t, const int valint, const float valfloat)
 An event was received.
 MyBeoChipListener (nub::soft_ref< BeoChip > bc)
virtual void event (const BeoChipEventType t, const int valint, const float valfloat)
 An event was received.
 MyBeoChipListener (nub::soft_ref< BeoSubBallast > &ballast, nub::soft_ref< BeoChip > &beochip)
virtual void event (const BeoChipEventType t, const int valint, const float valfloat)
 An event was received.
virtual void setQtForm (BeoChipMainForm *form)
virtual void event (const BeoChipEventType t, const int valint, const float valfloat)
 An event was received.
 MyBeoChipListener (nub::soft_ref< BeoChip > bc)
virtual void event (const BeoChipEventType t, const int valint, const float valfloat)
 An event was received.

Public Attributes

volatile int rawpwm [2]
volatile int rawadc [2]
volatile int kbd
nub::soft_ref< BeoChipitsBeoChip
int minp0
int maxp0
int minp1
int maxp1
int counter0
int counter1
int kbd
bool performCommand

Protected Attributes

BeoChipMainFormitsForm
 our Qt form

Detailed Description

Our own little BeoChipListener.

Definition at line 47 of file test-BeoChip.C.


Member Function Documentation

virtual void MyBeoChipListener::event ( const BeoChipEventType  t,
const int  valint,
const float  valfloat 
) [inline, virtual]

An event was received.

This function will be called by the BeoChip once you have registered your BeoChipListener derivative with the BeoChip using BeoChip::setListener(). Beware that the call to event() will ve from a thread running in the BeoChip and thus will operate in parallel with your main thread and main loop. See test-BeoChip.C for an example of how to synchronize a main loop with these asynchronous event calls. The following data will be passed along with the event type:

    Type            valint                        valfloat
    ----------------------------------------------------------------------
    NONE         0                             0.0F
    PWM0         pulse 0 width, 1.6us units    calibrated width in [-1..1]
    PWM1         pulse 1 width, 1.6us units    calibrated width in [-1..1]
    KBD          5 LSB show the 5 keys         0.0F
    ADC0         A/D 0 value                   calibrated value in [-1..1]
    ADC1         A/D 0 value                   calibrated value in [-1..1]
    all others   0                             0.0F
    

Implements BeoChipListener.

Definition at line 69 of file remoteBeoChip.C.

virtual void MyBeoChipListener::event ( const BeoChipEventType  t,
const int  valint,
const float  valfloat 
) [inline, virtual]

An event was received.

This function will be called by the BeoChip once you have registered your BeoChipListener derivative with the BeoChip using BeoChip::setListener(). Beware that the call to event() will ve from a thread running in the BeoChip and thus will operate in parallel with your main thread and main loop. See test-BeoChip.C for an example of how to synchronize a main loop with these asynchronous event calls. The following data will be passed along with the event type:

    Type            valint                        valfloat
    ----------------------------------------------------------------------
    NONE         0                             0.0F
    PWM0         pulse 0 width, 1.6us units    calibrated width in [-1..1]
    PWM1         pulse 1 width, 1.6us units    calibrated width in [-1..1]
    KBD          5 LSB show the 5 keys         0.0F
    ADC0         A/D 0 value                   calibrated value in [-1..1]
    ADC1         A/D 0 value                   calibrated value in [-1..1]
    all others   0                             0.0F
    

Implements BeoChipListener.

Definition at line 25 of file test-BeoChipQt.C.

References itsForm.

virtual void MyBeoChipListener::event ( const BeoChipEventType  t,
const int  valint,
const float  valfloat 
) [inline, virtual]

An event was received.

This function will be called by the BeoChip once you have registered your BeoChipListener derivative with the BeoChip using BeoChip::setListener(). Beware that the call to event() will ve from a thread running in the BeoChip and thus will operate in parallel with your main thread and main loop. See test-BeoChip.C for an example of how to synchronize a main loop with these asynchronous event calls. The following data will be passed along with the event type:

    Type            valint                        valfloat
    ----------------------------------------------------------------------
    NONE         0                             0.0F
    PWM0         pulse 0 width, 1.6us units    calibrated width in [-1..1]
    PWM1         pulse 1 width, 1.6us units    calibrated width in [-1..1]
    KBD          5 LSB show the 5 keys         0.0F
    ADC0         A/D 0 value                   calibrated value in [-1..1]
    ADC1         A/D 0 value                   calibrated value in [-1..1]
    all others   0                             0.0F
    

Implements BeoChipListener.

Definition at line 57 of file test-BeoSubBallast.C.

References nub::soft_ref< T >::get().

virtual void MyBeoChipListener::event ( const BeoChipEventType  t,
const int  valint,
const float  valfloat 
) [inline, virtual]

An event was received.

This function will be called by the BeoChip once you have registered your BeoChipListener derivative with the BeoChip using BeoChip::setListener(). Beware that the call to event() will ve from a thread running in the BeoChip and thus will operate in parallel with your main thread and main loop. See test-BeoChip.C for an example of how to synchronize a main loop with these asynchronous event calls. The following data will be passed along with the event type:

    Type            valint                        valfloat
    ----------------------------------------------------------------------
    NONE         0                             0.0F
    PWM0         pulse 0 width, 1.6us units    calibrated width in [-1..1]
    PWM1         pulse 1 width, 1.6us units    calibrated width in [-1..1]
    KBD          5 LSB show the 5 keys         0.0F
    ADC0         A/D 0 value                   calibrated value in [-1..1]
    ADC1         A/D 0 value                   calibrated value in [-1..1]
    all others   0                             0.0F
    

Implements BeoChipListener.

Definition at line 54 of file beobot-remote.C.

virtual void MyBeoChipListener::event ( const BeoChipEventType  t,
const int  valint,
const float  valfloat 
) [inline, virtual]

An event was received.

This function will be called by the BeoChip once you have registered your BeoChipListener derivative with the BeoChip using BeoChip::setListener(). Beware that the call to event() will ve from a thread running in the BeoChip and thus will operate in parallel with your main thread and main loop. See test-BeoChip.C for an example of how to synchronize a main loop with these asynchronous event calls. The following data will be passed along with the event type:

    Type            valint                        valfloat
    ----------------------------------------------------------------------
    NONE         0                             0.0F
    PWM0         pulse 0 width, 1.6us units    calibrated width in [-1..1]
    PWM1         pulse 1 width, 1.6us units    calibrated width in [-1..1]
    KBD          5 LSB show the 5 keys         0.0F
    ADC0         A/D 0 value                   calibrated value in [-1..1]
    ADC1         A/D 0 value                   calibrated value in [-1..1]
    all others   0                             0.0F
    

Implements BeoChipListener.

Definition at line 73 of file beobot-collectFrames.C.

virtual void MyBeoChipListener::event ( const BeoChipEventType  t,
const int  valint,
const float  valfloat 
) [inline, virtual]

An event was received.

This function will be called by the BeoChip once you have registered your BeoChipListener derivative with the BeoChip using BeoChip::setListener(). Beware that the call to event() will ve from a thread running in the BeoChip and thus will operate in parallel with your main thread and main loop. See test-BeoChip.C for an example of how to synchronize a main loop with these asynchronous event calls. The following data will be passed along with the event type:

    Type            valint                        valfloat
    ----------------------------------------------------------------------
    NONE         0                             0.0F
    PWM0         pulse 0 width, 1.6us units    calibrated width in [-1..1]
    PWM1         pulse 1 width, 1.6us units    calibrated width in [-1..1]
    KBD          5 LSB show the 5 keys         0.0F
    ADC0         A/D 0 value                   calibrated value in [-1..1]
    ADC1         A/D 0 value                   calibrated value in [-1..1]
    all others   0                             0.0F
    

Implements BeoChipListener.

Definition at line 74 of file beobot-BeobotControl.C.

virtual void MyBeoChipListener::event ( const BeoChipEventType  t,
const int  valint,
const float  valfloat 
) [inline, virtual]

An event was received.

This function will be called by the BeoChip once you have registered your BeoChipListener derivative with the BeoChip using BeoChip::setListener(). Beware that the call to event() will ve from a thread running in the BeoChip and thus will operate in parallel with your main thread and main loop. See test-BeoChip.C for an example of how to synchronize a main loop with these asynchronous event calls. The following data will be passed along with the event type:

    Type            valint                        valfloat
    ----------------------------------------------------------------------
    NONE         0                             0.0F
    PWM0         pulse 0 width, 1.6us units    calibrated width in [-1..1]
    PWM1         pulse 1 width, 1.6us units    calibrated width in [-1..1]
    KBD          5 LSB show the 5 keys         0.0F
    ADC0         A/D 0 value                   calibrated value in [-1..1]
    ADC1         A/D 0 value                   calibrated value in [-1..1]
    all others   0                             0.0F
    

Implements BeoChipListener.

Definition at line 56 of file test-BeoChip.C.


Member Data Documentation

our Qt form

Definition at line 90 of file test-BeoChipQt.C.

Referenced by event().


The documentation for this class was generated from the following files:
Generated on Sun May 8 08:23:27 2011 for iLab Neuromorphic Vision Toolkit by  doxygen 1.6.3