![](/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
Diff: file_system_manager.h
- Revision:
- 122:480c44b0e205
- Parent:
- 121:ee02790d00b7
- Child:
- 132:05cd37f7e007
--- a/file_system_manager.h Fri May 08 04:15:23 2015 +0000 +++ b/file_system_manager.h Mon May 11 15:16:36 2015 +0000 @@ -4,8 +4,6 @@ #include "QSPIFileSystem.h" #include "debug.h" #include "vz_protocol.h" -#include "clock.h" -#include "bootloader.h" #include "fw.h" const uint16_t FILE_BUFFER_SIZE = 1024; @@ -25,8 +23,10 @@ * @endcode */ void set_ip( const char * new_header_ip ); +int get_ip ( char * header_ip, const size_t length ); -int get_ip ( char * header_ip, const size_t length ); +void set_clock_server_ip ( const char * new_server_ip ); +int get_clock_server_ip ( char * clock_server_ip, const size_t length ); /** * @Synopsis Altera o valor default contido no arquivo /qspi/myext.txt @@ -40,7 +40,8 @@ * ... * @endcode */ -void set_header_ext( const int new_header_ext ); +void set_header_ext ( const int new_header_ext ); +int get_header_ext ( void ); /** * @Synopsis Altera o valor default contido no arquivo /qspi/mysipport.txt @@ -54,7 +55,9 @@ * ... * @endcode */ -void set_header_sip_port( const int new_header_sip_port ); +void set_header_sip_port ( const int new_header_sip_port ); +int get_header_sip_port ( void ); + /** * @Synopsis Altera o valor default contido no arquivo /qspi/serverip.txt @@ -68,7 +71,8 @@ * ... * @endcode */ -void set_server_ip( const char * new_server_ip ); +void set_server_ip ( const char * new_server_ip ); +int get_server_ip ( char * server_ip, const size_t length ); /** * @Synopsis Altera o valor default contido no arquivo /qspi/peerext.txt @@ -82,7 +86,8 @@ * ... * @endcode */ -void set_server_ext( const int new_server_ext ); +void set_server_ext ( const int new_server_ext ); +int get_server_ext ( void ); /** * @Synopsis Altera o valor default contido no arquivo /qspi/serverport.txt @@ -96,7 +101,8 @@ * ... * @endcode */ -void set_server_port( const int new_server_port ); +void set_server_port ( const int new_server_port ); +int get_server_port ( void ); /** * @Synopsis Altera o valor default contido no arquivo /qspi/udpport.txt @@ -110,7 +116,8 @@ * ... * @endcode */ -void set_udp_port_listener( const int new_udp_port_listener ); +void set_udp_port_listener ( const int new_udp_port_listener ); +int get_udp_port_listener ( void ); /** * @Synopsis Altera o valor default contido no arquivo /qspi/tcpport.txt @@ -124,7 +131,8 @@ * ... * @endcode */ -void set_tcp_port_listener( const int new_tcp_port_listener ); +void set_tcp_port_listener ( const int new_tcp_port_listener ); +int get_tcp_port_listener ( void ); /** * @Synopsis Altera o valor default contido no arquivo /qspi/mymask.txt @@ -139,6 +147,7 @@ * @endcode */ void set_mask( const char * new_mask ); +int get_mask ( char * eth_mask, const size_t length ); /** * @Synopsis Altera o valor default contido no arquivo /qspi/mygateway.txt @@ -152,18 +161,27 @@ * ... * @endcode */ -void set_gateway( const char * new_gateway ); +void set_gateway ( const char * new_gateway ); +int get_gateway ( char * eth_gw, const size_t length ); + +void set_max_ext ( const int new_max_ext ); +int get_max_ext ( void ); -void set_max_ext( const int new_max_ext ); -void set_min_ext( const int new_min_ext ); +void set_min_ext ( const int new_min_ext ); +int get_min_ext ( void ); + void cat( const char * fname ); + void files( const char type ); +void set_fw_ip( const char * new_fw_ip ); +int get_ip ( char * fw_ip, const size_t length ); -void set_fw_ip( const char * new_fw_ip ); -void set_fw_port( const int new_fw_port ); +void set_fw_port ( const int new_fw_port ); +int get_fw_port ( void ); -void set_shift_port( const int new_shift_port ); +void set_shift_port ( const int new_shift_port ); +int get_shift_port ( void ); int init_fsystem ( void );