Modularizando o src
Dependencies: EALib EthernetInterface_vz mbed-rtos mbed
Fork of header_main_colinas_V0-20-09-14 by
file_system_manager.h@81:3656f00ab3db, 2014-12-30 (annotated)
- Committer:
- klauss
- Date:
- Tue Dec 30 12:37:40 2014 +0000
- Revision:
- 81:3656f00ab3db
- Parent:
- 78:1353744f01e1
- Child:
- 99:e80850c51106
tentando resolver o bug de apertar duas vezes o botao pra fazer uma call
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
klauss | 74:81c47fff88a5 | 1 | #ifndef __FILE_SYSTEM_MANAGER_H__ |
klauss | 74:81c47fff88a5 | 2 | #define __FILE_SYSTEM_MANAGER_H__ |
klauss | 74:81c47fff88a5 | 3 | |
klauss | 78:1353744f01e1 | 4 | #include "mbed.h" |
klauss | 74:81c47fff88a5 | 5 | #include "QSPIFileSystem.h" |
klauss | 81:3656f00ab3db | 6 | #include "shared_variables.h" |
klauss | 81:3656f00ab3db | 7 | #include "telemetry.h" |
klauss | 81:3656f00ab3db | 8 | #include "vz_protocol.h" |
klauss | 74:81c47fff88a5 | 9 | |
klauss | 74:81c47fff88a5 | 10 | extern QSPIFileSystem qspifs; |
klauss | 74:81c47fff88a5 | 11 | |
klauss | 81:3656f00ab3db | 12 | /** |
klauss | 81:3656f00ab3db | 13 | * @Synopsis Altera o valor default contido no arquivo /qspi/myip.txt |
klauss | 81:3656f00ab3db | 14 | * |
klauss | 81:3656f00ab3db | 15 | * @param new_header_ip Atualiza o valor de /qspi/myip.txt sobrescrevendo-o com o valor de new_header_ip |
klauss | 81:3656f00ab3db | 16 | * |
klauss | 81:3656f00ab3db | 17 | * Exemplo: |
klauss | 81:3656f00ab3db | 18 | * @code |
klauss | 81:3656f00ab3db | 19 | * ... |
klauss | 81:3656f00ab3db | 20 | * set_ip( "192.168.120.2" ); |
klauss | 81:3656f00ab3db | 21 | * ... |
klauss | 81:3656f00ab3db | 22 | * @endcode |
klauss | 81:3656f00ab3db | 23 | */ |
klauss | 81:3656f00ab3db | 24 | void set_ip( char * new_header_ip ); |
klauss | 81:3656f00ab3db | 25 | |
klauss | 81:3656f00ab3db | 26 | /** |
klauss | 81:3656f00ab3db | 27 | * @Synopsis Altera o valor default contido no arquivo /qspi/myext.txt |
klauss | 81:3656f00ab3db | 28 | * |
klauss | 81:3656f00ab3db | 29 | * @param new_header_ext Atualiza o valor de /qspi/myext.txt sobrescrevendo-o com o valor de new_header_ext |
klauss | 81:3656f00ab3db | 30 | * |
klauss | 81:3656f00ab3db | 31 | * Exemplo: |
klauss | 81:3656f00ab3db | 32 | * @code |
klauss | 81:3656f00ab3db | 33 | * ... |
klauss | 81:3656f00ab3db | 34 | * set_header_ext( 912 ); |
klauss | 81:3656f00ab3db | 35 | * ... |
klauss | 81:3656f00ab3db | 36 | * @endcode |
klauss | 81:3656f00ab3db | 37 | */ |
klauss | 81:3656f00ab3db | 38 | void set_header_ext( int new_header_ext ); |
klauss | 81:3656f00ab3db | 39 | |
klauss | 81:3656f00ab3db | 40 | /** |
klauss | 81:3656f00ab3db | 41 | * @Synopsis Altera o valor default contido no arquivo /qspi/mysipport.txt |
klauss | 81:3656f00ab3db | 42 | * |
klauss | 81:3656f00ab3db | 43 | * @param new_header_sip_port Atualiza o valor de /qspi/mysipport.txt sobrescrevendo-o com o valor de new_header_sip_port |
klauss | 81:3656f00ab3db | 44 | * |
klauss | 81:3656f00ab3db | 45 | * Exemplo: |
klauss | 81:3656f00ab3db | 46 | * @code |
klauss | 81:3656f00ab3db | 47 | * ... |
klauss | 81:3656f00ab3db | 48 | * set_header_sip_port( 820 ); |
klauss | 81:3656f00ab3db | 49 | * ... |
klauss | 81:3656f00ab3db | 50 | * @endcode |
klauss | 81:3656f00ab3db | 51 | */ |
klauss | 81:3656f00ab3db | 52 | void set_header_sip_port( int new_header_sip_port ); |
klauss | 81:3656f00ab3db | 53 | |
klauss | 81:3656f00ab3db | 54 | /** |
klauss | 81:3656f00ab3db | 55 | * @Synopsis Altera o valor default contido no arquivo /qspi/serverip.txt |
klauss | 81:3656f00ab3db | 56 | * |
klauss | 81:3656f00ab3db | 57 | * @param new_server_ip Atualiza o valor de /qspi/serverip.txt sobrescrevendo-o com o valor de new_server_ip |
klauss | 81:3656f00ab3db | 58 | * |
klauss | 81:3656f00ab3db | 59 | * Exemplo: |
klauss | 81:3656f00ab3db | 60 | * @code |
klauss | 81:3656f00ab3db | 61 | * ... |
klauss | 81:3656f00ab3db | 62 | * set_header_sip_port( "192.168.120.231" ); |
klauss | 81:3656f00ab3db | 63 | * ... |
klauss | 81:3656f00ab3db | 64 | * @endcode |
klauss | 81:3656f00ab3db | 65 | */ |
klauss | 81:3656f00ab3db | 66 | void set_server_ip( char * new_server_ip ); |
klauss | 81:3656f00ab3db | 67 | |
klauss | 81:3656f00ab3db | 68 | /** |
klauss | 81:3656f00ab3db | 69 | * @Synopsis Altera o valor default contido no arquivo /qspi/peerext.txt |
klauss | 81:3656f00ab3db | 70 | * |
klauss | 81:3656f00ab3db | 71 | * @param new_server_ext Atualiza o valor de /qspi/peerext.txt sobrescrevendo-o com o valor de new_server_ext |
klauss | 81:3656f00ab3db | 72 | * |
klauss | 81:3656f00ab3db | 73 | * Exemplo: |
klauss | 81:3656f00ab3db | 74 | * @code |
klauss | 81:3656f00ab3db | 75 | * ... |
klauss | 81:3656f00ab3db | 76 | * set_header_sip_port( 1011 ); |
klauss | 81:3656f00ab3db | 77 | * ... |
klauss | 81:3656f00ab3db | 78 | * @endcode |
klauss | 81:3656f00ab3db | 79 | */ |
klauss | 81:3656f00ab3db | 80 | void set_server_ext( int new_server_ext ); |
klauss | 81:3656f00ab3db | 81 | |
klauss | 81:3656f00ab3db | 82 | /** |
klauss | 81:3656f00ab3db | 83 | * @Synopsis Altera o valor default contido no arquivo /qspi/serverport.txt |
klauss | 81:3656f00ab3db | 84 | * |
klauss | 81:3656f00ab3db | 85 | * @param new_server_port Atualiza o valor de /qspi/serverport.txt sobrescrevendo-o com o valor de new_server_port |
klauss | 81:3656f00ab3db | 86 | * |
klauss | 81:3656f00ab3db | 87 | * Exemplo: |
klauss | 81:3656f00ab3db | 88 | * @code |
klauss | 81:3656f00ab3db | 89 | * ... |
klauss | 81:3656f00ab3db | 90 | * set_header_sip_port( 1562 ); |
klauss | 81:3656f00ab3db | 91 | * ... |
klauss | 81:3656f00ab3db | 92 | * @endcode |
klauss | 81:3656f00ab3db | 93 | */ |
klauss | 81:3656f00ab3db | 94 | void set_server_port( int new_server_port ); |
klauss | 81:3656f00ab3db | 95 | |
klauss | 81:3656f00ab3db | 96 | /** |
klauss | 81:3656f00ab3db | 97 | * @Synopsis Altera o valor default contido no arquivo /qspi/udpport.txt |
klauss | 81:3656f00ab3db | 98 | * |
klauss | 81:3656f00ab3db | 99 | * @param new_udp_port_listener Atualiza o valor de /qspi/udpport.txt sobrescrevendo-o com o valor de new_udp_port_listener |
klauss | 81:3656f00ab3db | 100 | * |
klauss | 81:3656f00ab3db | 101 | * Exemplo: |
klauss | 81:3656f00ab3db | 102 | * @code |
klauss | 81:3656f00ab3db | 103 | * ... |
klauss | 81:3656f00ab3db | 104 | * set_udp_port_listener( 11147 ); |
klauss | 81:3656f00ab3db | 105 | * ... |
klauss | 81:3656f00ab3db | 106 | * @endcode |
klauss | 81:3656f00ab3db | 107 | */ |
klauss | 81:3656f00ab3db | 108 | void set_udp_port_listener( int new_udp_port_listener ); |
klauss | 81:3656f00ab3db | 109 | |
klauss | 81:3656f00ab3db | 110 | /** |
klauss | 81:3656f00ab3db | 111 | * @Synopsis Altera o valor default contido no arquivo /qspi/tcpport.txt |
klauss | 81:3656f00ab3db | 112 | * |
klauss | 81:3656f00ab3db | 113 | * @param new_tcp_port_listener Atualiza o valor de /qspi/tcpport.txt sobrescrevendo-o com o valor de new_tcp_port_listener |
klauss | 81:3656f00ab3db | 114 | * |
klauss | 81:3656f00ab3db | 115 | * Exemplo: |
klauss | 81:3656f00ab3db | 116 | * @code |
klauss | 81:3656f00ab3db | 117 | * ... |
klauss | 81:3656f00ab3db | 118 | * set_tcp_port_listener( 7178 ); |
klauss | 81:3656f00ab3db | 119 | * ... |
klauss | 81:3656f00ab3db | 120 | * @endcode |
klauss | 81:3656f00ab3db | 121 | */ |
klauss | 81:3656f00ab3db | 122 | void set_tcp_port_listener( int new_tcp_port_listener ); |
klauss | 81:3656f00ab3db | 123 | |
klauss | 81:3656f00ab3db | 124 | /** |
klauss | 81:3656f00ab3db | 125 | * @Synopsis Altera o valor default contido no arquivo /qspi/telemetry_ip.txt |
klauss | 81:3656f00ab3db | 126 | * |
klauss | 81:3656f00ab3db | 127 | * @param new_telemetry_ip Atualiza o valor de /qspi/telemetry_ip.txt sobrescrevendo-o com o valor de new_telemetry_ip |
klauss | 81:3656f00ab3db | 128 | * |
klauss | 81:3656f00ab3db | 129 | * Exemplo: |
klauss | 81:3656f00ab3db | 130 | * @code |
klauss | 81:3656f00ab3db | 131 | * ... |
klauss | 81:3656f00ab3db | 132 | * set_telemetry_ip( "192.154.123.7" ) |
klauss | 81:3656f00ab3db | 133 | * ... |
klauss | 81:3656f00ab3db | 134 | * @endcode |
klauss | 81:3656f00ab3db | 135 | */ |
klauss | 81:3656f00ab3db | 136 | void set_telemetry_ip( char * new_telemetry_ip ); |
klauss | 81:3656f00ab3db | 137 | |
klauss | 81:3656f00ab3db | 138 | /** |
klauss | 81:3656f00ab3db | 139 | * @Synopsis Altera o valor default contido no arquivo /qspi/telemetry_port.txt |
klauss | 81:3656f00ab3db | 140 | * |
klauss | 81:3656f00ab3db | 141 | * @param new_telemetry_port Atualiza o valor de /qspi/telemetry_port.txt sobrescrevendo-o com o valor de new_telemetry_port |
klauss | 81:3656f00ab3db | 142 | * |
klauss | 81:3656f00ab3db | 143 | * Exemplo: |
klauss | 81:3656f00ab3db | 144 | * @code |
klauss | 81:3656f00ab3db | 145 | * ... |
klauss | 81:3656f00ab3db | 146 | * set_telemetry_port( 9193 ); |
klauss | 81:3656f00ab3db | 147 | * ... |
klauss | 81:3656f00ab3db | 148 | * @endcode |
klauss | 81:3656f00ab3db | 149 | */ |
klauss | 81:3656f00ab3db | 150 | void set_telemetry_port( int new_telemetry_port ); |
klauss | 81:3656f00ab3db | 151 | |
klauss | 81:3656f00ab3db | 152 | /** |
klauss | 81:3656f00ab3db | 153 | * @Synopsis Altera o valor default contido no arquivo /qspi/mymask.txt |
klauss | 81:3656f00ab3db | 154 | * |
klauss | 81:3656f00ab3db | 155 | * @param new_mask Atualiza o valor de /qspi/mymask.txt sobrescrevendo-o com o valor de new_mask |
klauss | 81:3656f00ab3db | 156 | * |
klauss | 81:3656f00ab3db | 157 | * Exemplo: |
klauss | 81:3656f00ab3db | 158 | * @code |
klauss | 81:3656f00ab3db | 159 | * ... |
klauss | 81:3656f00ab3db | 160 | * set_mask( "255.255.0.0" ); |
klauss | 81:3656f00ab3db | 161 | * ... |
klauss | 81:3656f00ab3db | 162 | * @endcode |
klauss | 81:3656f00ab3db | 163 | */ |
klauss | 81:3656f00ab3db | 164 | void set_mask( char * new_mask ); |
klauss | 81:3656f00ab3db | 165 | |
klauss | 81:3656f00ab3db | 166 | /** |
klauss | 81:3656f00ab3db | 167 | * @Synopsis Altera o valor default contido no arquivo /qspi/mygateway.txt |
klauss | 81:3656f00ab3db | 168 | * |
klauss | 81:3656f00ab3db | 169 | * @param new_gateway Atualiza o valor de /qspi/mygateway.txt sobrescrevendo-o com o valor de new_gateway |
klauss | 81:3656f00ab3db | 170 | * |
klauss | 81:3656f00ab3db | 171 | * Exemplo: |
klauss | 81:3656f00ab3db | 172 | * @code |
klauss | 81:3656f00ab3db | 173 | * ... |
klauss | 81:3656f00ab3db | 174 | * set_gateway( "192.168.118.2" ); |
klauss | 81:3656f00ab3db | 175 | * ... |
klauss | 81:3656f00ab3db | 176 | * @endcode |
klauss | 81:3656f00ab3db | 177 | */ |
klauss | 81:3656f00ab3db | 178 | void set_gateway( char * new_gateway ); |
klauss | 81:3656f00ab3db | 179 | |
klauss | 81:3656f00ab3db | 180 | void set_max_ext( int new_max_ext ); |
klauss | 81:3656f00ab3db | 181 | void set_min_ext( int new_min_ext ); |
klauss | 81:3656f00ab3db | 182 | void cat( const char * fname ); |
klauss | 81:3656f00ab3db | 183 | void files( const char type ); |
klauss | 81:3656f00ab3db | 184 | |
klauss | 74:81c47fff88a5 | 185 | #endif |