![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
Modularizando o src
Dependencies: EALib EthernetInterface_vz mbed-rtos mbed
Fork of header_main_colinas_V0-20-09-14 by
flood.h@121:ee02790d00b7, 2015-05-08 (annotated)
- Committer:
- klauss
- Date:
- Fri May 08 04:15:23 2015 +0000
- Revision:
- 121:ee02790d00b7
- Parent:
- 74:81c47fff88a5
- Child:
- 135:2f4290590e51
compiling
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
klauss | 69:65665afbad5d | 1 | /** |
klauss | 69:65665afbad5d | 2 | * @file flood.h |
klauss | 69:65665afbad5d | 3 | * @Synopsis Instrumenta o teste de envio recebimento de pacotes que simulam o envio, recebimento de pacotes em uma ligação. |
klauss | 69:65665afbad5d | 4 | * @author Pedro |
klauss | 69:65665afbad5d | 5 | * @version 1 |
klauss | 69:65665afbad5d | 6 | * @date 2014-11-05 |
klauss | 69:65665afbad5d | 7 | */ |
Cola | 21:0bd688722e81 | 8 | #ifndef _FLOOD_H__ |
Cola | 21:0bd688722e81 | 9 | #define _FLOOD_H__ |
Cola | 21:0bd688722e81 | 10 | |
klauss | 121:ee02790d00b7 | 11 | #include <stdint.h> |
klauss | 74:81c47fff88a5 | 12 | #include "mbed.h" |
klauss | 121:ee02790d00b7 | 13 | #include "vz_protocol.h" |
klauss | 121:ee02790d00b7 | 14 | #include "shared_variables.h" |
klauss | 121:ee02790d00b7 | 15 | #include "debug.h" |
klauss | 74:81c47fff88a5 | 16 | #include "parallelcpld.h" |
klauss | 74:81c47fff88a5 | 17 | |
klauss | 69:65665afbad5d | 18 | extern uint8_t pflood; |
klauss | 69:65665afbad5d | 19 | ///< Variável de controle que liga/desliga o flood da Header. |
Cola | 21:0bd688722e81 | 20 | extern Timer tflood; |
klauss | 69:65665afbad5d | 21 | ///< Timer de controle para envio dos pacotes de forma temporizada ( 20 ms ) |
Cola | 21:0bd688722e81 | 22 | extern int floodcount; |
klauss | 69:65665afbad5d | 23 | ///< Variável de controle que junto com o tflood, organiza a temporização do envio de pacotes da Header pro CBx. |
Cola | 21:0bd688722e81 | 24 | |
klauss | 69:65665afbad5d | 25 | /** |
klauss | 69:65665afbad5d | 26 | * @Synopsis Funçao que efetivamente monta e envia os pacotes do tipo flood para os CBx |
klauss | 69:65665afbad5d | 27 | */ |
Cola | 21:0bd688722e81 | 28 | void flood(); |
Cola | 21:0bd688722e81 | 29 | |
Cola | 21:0bd688722e81 | 30 | #endif |