Modularizando o src

Dependencies:   EALib EthernetInterface_vz mbed-rtos mbed

Fork of header_main_colinas_V0-20-09-14 by VZTECH

Committer:
klauss
Date:
Thu Oct 30 19:26:41 2014 +0000
Revision:
67:cdedc64d9921
Parent:
65:0b653cfe95db
Child:
69:65665afbad5d
implementacao do protocolo de comunicacao eth->header->cbx_bootloader

Who changed what in which revision?

UserRevisionLine numberNew contents of line
klauss 17:67a6b557eda5 1 #ifndef _PROMPT_H
klauss 17:67a6b557eda5 2 #define _PROMPT_H
klauss 17:67a6b557eda5 3
klauss 44:cc4996469404 4 #include "mbed.h"
klauss 44:cc4996469404 5 #include "stdint.h"
klauss 44:cc4996469404 6 #include "configs.h"
klauss 44:cc4996469404 7 #include "vz_protocol.h"
klauss 44:cc4996469404 8 #include "parallelcpld.h"
klauss 44:cc4996469404 9 #include "flood.h"
klauss 44:cc4996469404 10
klauss 53:bb492a8f115a 11 #define TCP_IDLE_MAX_TIME 45
klauss 58:af7e8788f106 12 #define DEBUGBUFSIZE 50
klauss 44:cc4996469404 13
klauss 27:98f824719d1c 14 extern uint8_t debug_sip;
klauss 17:67a6b557eda5 15 extern uint8_t debug_alive;
klauss 17:67a6b557eda5 16 extern uint8_t debug_prompt;
klauss 29:7246460b73f8 17 extern uint8_t debug_vector;
klauss 30:8dfb6d8de53d 18 extern uint8_t debug_cb;
klauss 31:bb5fb28a77df 19 extern uint8_t debug_main;
klauss 31:bb5fb28a77df 20 extern uint8_t debug_cks;
klauss 31:bb5fb28a77df 21 extern uint8_t debug_cb_rx;
klauss 31:bb5fb28a77df 22 extern uint8_t debug_cb_tx;
klauss 31:bb5fb28a77df 23 extern uint8_t debug_eth_rx;
klauss 31:bb5fb28a77df 24 extern uint8_t debug_eth_tx;
klauss 43:455522f98de5 25 extern uint8_t debug_prompt_eth;
klauss 31:bb5fb28a77df 26 extern uint8_t debug_file;
klauss 67:cdedc64d9921 27 extern bool dbl;
klauss 29:7246460b73f8 28
klauss 28:94aec56c6329 29 extern uint8_t test_debug;
klauss 29:7246460b73f8 30
Cola 22:d2a4b5939115 31 extern uint8_t pcks_s;
Cola 24:270b436a1bb0 32 extern uint8_t pshowcb;
klauss 17:67a6b557eda5 33 extern uint8_t dog;
klauss 17:67a6b557eda5 34
klauss 28:94aec56c6329 35 extern FILE *fmask; // mascara de rede
klauss 28:94aec56c6329 36 extern FILE *fgate; // gateway ip
klauss 28:94aec56c6329 37
klauss 28:94aec56c6329 38 extern FILE *fip; // header ip
klauss 28:94aec56c6329 39 extern FILE *fext; // header ext
klauss 28:94aec56c6329 40 extern FILE *fport; // header sip port
klauss 28:94aec56c6329 41
klauss 28:94aec56c6329 42 extern FILE *fsip; // server sip ip
klauss 28:94aec56c6329 43 extern FILE *fserext; // server sip ext
klauss 28:94aec56c6329 44 extern FILE *fsport; // server sip port
klauss 28:94aec56c6329 45
klauss 56:c64bcbaa621a 46 extern FILE *fudpport; // porta udp que a header escuta
klauss 56:c64bcbaa621a 47 extern FILE *ftcpport; // porta tcp que a header escuta
klauss 56:c64bcbaa621a 48 extern FILE *ftip; // IP do servidor para envio de telemetria
klauss 56:c64bcbaa621a 49 extern FILE *ftport; // Porta UDP do servidor para envio de telemetria
klauss 45:c80574f24dc3 50
klauss 36:728498a78e1e 51 char * prompt_process( char * ethernet_pkg );
klauss 17:67a6b557eda5 52 void init_fsystem();
klauss 43:455522f98de5 53 void init_prompt();
klauss 55:2f5e7374af9d 54 void set_ip( char * new_header_ip );
klauss 55:2f5e7374af9d 55 void set_header_ext( int new_header_ext );
klauss 55:2f5e7374af9d 56 void set_header_sip_port( int new_header_sip_port );
klauss 55:2f5e7374af9d 57 void set_server_ip( char * new_server_ip );
klauss 55:2f5e7374af9d 58 void set_server_ext( int new_server_ext );
klauss 55:2f5e7374af9d 59 void set_server_port( int new_server_port );
klauss 56:c64bcbaa621a 60 void set_udp_port_listener( int new_udp_port_listener );
klauss 56:c64bcbaa621a 61 void set_tcp_port_listener( int new_tcp_port_listener );
klauss 56:c64bcbaa621a 62 void set_telemetry_ip( char * new_telemetry_ip );
klauss 56:c64bcbaa621a 63 void set_telemetry_port( int new_telemetry_port );
klauss 55:2f5e7374af9d 64 void set_mask( char * new_mask );
klauss 55:2f5e7374af9d 65 void set_gateway( char * new_gateway );
klauss 17:67a6b557eda5 66
klauss 38:af5ecd6997ab 67 extern bool from_eth;
klauss 44:cc4996469404 68 extern bool tcp_session;
klauss 45:c80574f24dc3 69 extern TCPSocketServer tcp_server;
klauss 45:c80574f24dc3 70 extern TCPSocketConnection tcp_client;
klauss 41:69bf7091c2ca 71 extern Timer tcp_timer;
klauss 45:c80574f24dc3 72
klauss 45:c80574f24dc3 73 extern UDPSocket udp_server;
klauss 45:c80574f24dc3 74 extern Endpoint udp_client;
klauss 45:c80574f24dc3 75
klauss 44:cc4996469404 76 extern bool from_eth;
klauss 44:cc4996469404 77 extern bool udp_request;
klauss 44:cc4996469404 78 extern char * debug_buf;
klauss 17:67a6b557eda5 79
klauss 48:195c97f12e8e 80 extern bool cb_session;
klauss 48:195c97f12e8e 81 extern bool cb_status;
klauss 52:12930cef17c4 82 extern bool reset_cks;
klauss 53:bb492a8f115a 83 extern bool debug_telemetry;
klauss 54:448d57291be6 84 extern bool main_test;
klauss 62:07e5bdc9f8f7 85 extern bool list;
klauss 62:07e5bdc9f8f7 86 extern bool rx;
klauss 63:0d95da692bb4 87 extern bool tx;
klauss 63:0d95da692bb4 88 extern bool stats;
klauss 63:0d95da692bb4 89 extern bool r_stats;
klauss 65:0b653cfe95db 90 extern bool delayed_flood;
klauss 63:0d95da692bb4 91
klauss 63:0d95da692bb4 92 extern uint16_t boot_counter;
klauss 63:0d95da692bb4 93 extern uint16_t registry_counter;
klauss 63:0d95da692bb4 94 extern uint16_t invite_counter;
klauss 63:0d95da692bb4 95 extern uint16_t audio_counter;
klauss 63:0d95da692bb4 96 extern uint16_t telemetry_counter;
klauss 63:0d95da692bb4 97 extern uint16_t cb_bye_counter;
klauss 63:0d95da692bb4 98 extern uint16_t prompt_counter;
klauss 67:cdedc64d9921 99 extern uint16_t flood_counter;
klauss 67:cdedc64d9921 100 extern uint16_t bootloader_cbx_counter;
klauss 67:cdedc64d9921 101
klauss 67:cdedc64d9921 102 extern Timer udp_timer;
klauss 48:195c97f12e8e 103
klauss 50:d9b6577a70f5 104 int convert_ext_to_port( int );
klauss 50:d9b6577a70f5 105
klauss 17:67a6b557eda5 106 #endif