Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
network.h@0:7225ff529d1c, 2011-04-27 (annotated)
- Committer:
- t_lark
- Date:
- Wed Apr 27 17:11:08 2011 +0000
- Revision:
- 0:7225ff529d1c
.00000001
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| t_lark | 0:7225ff529d1c | 1 | ////////////////////////////////////////////////////////////////////////////// |
| t_lark | 0:7225ff529d1c | 2 | // Model: Network.qm |
| t_lark | 0:7225ff529d1c | 3 | // File: ./network.h |
| t_lark | 0:7225ff529d1c | 4 | // |
| t_lark | 0:7225ff529d1c | 5 | // This file has been generated automatically by QP Modeler (QM). |
| t_lark | 0:7225ff529d1c | 6 | // DO NOT EDIT THIS FILE MANUALLY. |
| t_lark | 0:7225ff529d1c | 7 | // |
| t_lark | 0:7225ff529d1c | 8 | // Please visit www.state-machine.com/qm for more information. |
| t_lark | 0:7225ff529d1c | 9 | ////////////////////////////////////////////////////////////////////////////// |
| t_lark | 0:7225ff529d1c | 10 | #ifndef network_h |
| t_lark | 0:7225ff529d1c | 11 | #define network_h |
| t_lark | 0:7225ff529d1c | 12 | |
| t_lark | 0:7225ff529d1c | 13 | enum PelicanSignals { |
| t_lark | 0:7225ff529d1c | 14 | PEDS_WAITING_SIG = Q_USER_SIG, |
| t_lark | 0:7225ff529d1c | 15 | SENSE1_N1_UP_SIG, //the sense1 signal goes high |
| t_lark | 0:7225ff529d1c | 16 | SENSE1_N1_DOWN_SIG,//the sense signal goes low |
| t_lark | 0:7225ff529d1c | 17 | SENSE_N1_SIG,//indicates to senses on N1 bus to look out for a toggle |
| t_lark | 0:7225ff529d1c | 18 | MAX_PUB_SIG, // the last published signal |
| t_lark | 0:7225ff529d1c | 19 | |
| t_lark | 0:7225ff529d1c | 20 | ON_SIG, |
| t_lark | 0:7225ff529d1c | 21 | OFF_SIG, |
| t_lark | 0:7225ff529d1c | 22 | TIMEOUT_SIG, |
| t_lark | 0:7225ff529d1c | 23 | MAX_SIG |
| t_lark | 0:7225ff529d1c | 24 | }; |
| t_lark | 0:7225ff529d1c | 25 | |
| t_lark | 0:7225ff529d1c | 26 | static QEvent const sense1_N1_Up_Evt = { SENSE1_N1_UP_SIG, 0 }; |
| t_lark | 0:7225ff529d1c | 27 | static QEvent const sense1_N1_Down_Evt = { SENSE1_N1_DOWN_SIG, 0 }; |
| t_lark | 0:7225ff529d1c | 28 | static QEvent const sense_N1_Evt = { SENSE_N1_SIG, 0 }; |
| t_lark | 0:7225ff529d1c | 29 | |
| t_lark | 0:7225ff529d1c | 30 | // active objects .................................................. |
| t_lark | 0:7225ff529d1c | 31 | extern QActive * const AO_Pelican; // "opaque" pointer to Pelican AO |
| t_lark | 0:7225ff529d1c | 32 | extern QActive * const AO_Poll; // "opaque" pointer to IO Poll AO |
| t_lark | 0:7225ff529d1c | 33 | extern QActive * const AO_Sense1_N1; // "opaque" pointer to Ped AO |
| t_lark | 0:7225ff529d1c | 34 | |
| t_lark | 0:7225ff529d1c | 35 | #endif // network_h |