Tom Larkworthy / Mbed 2 deprecated MeshNetwork

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers network.h Source File

network.h

00001 //////////////////////////////////////////////////////////////////////////////
00002 // Model: Network.qm
00003 // File:  ./network.h
00004 //
00005 // This file has been generated automatically by QP Modeler (QM).
00006 // DO NOT EDIT THIS FILE MANUALLY.
00007 //
00008 // Please visit www.state-machine.com/qm for more information.
00009 //////////////////////////////////////////////////////////////////////////////
00010 #ifndef network_h
00011 #define network_h
00012 
00013 enum PelicanSignals {
00014     PEDS_WAITING_SIG = Q_USER_SIG,
00015     SENSE1_N1_UP_SIG, //the sense1 signal goes high
00016     SENSE1_N1_DOWN_SIG,//the sense signal goes low
00017     SENSE_N1_SIG,//indicates to senses on N1 bus to look out for a toggle
00018     MAX_PUB_SIG,  // the last published signal
00019 
00020     ON_SIG,
00021     OFF_SIG,
00022     TIMEOUT_SIG,
00023     MAX_SIG
00024 };
00025 
00026 static QEvent const sense1_N1_Up_Evt = { SENSE1_N1_UP_SIG, 0 };
00027 static QEvent const sense1_N1_Down_Evt = { SENSE1_N1_DOWN_SIG, 0 };
00028 static QEvent const sense_N1_Evt = { SENSE_N1_SIG, 0 };
00029 
00030 // active objects ..................................................
00031 extern QActive * const AO_Pelican;  // "opaque" pointer to Pelican AO
00032 extern QActive * const AO_Poll;      // "opaque" pointer to IO Poll AO
00033 extern QActive * const AO_Sense1_N1;      // "opaque" pointer to Ped AO
00034 
00035 #endif // network_h