VZTECH / Mbed 2 deprecated main_src

Dependencies:   EALib EthernetInterface_vz mbed-rtos mbed

Fork of header_main_colinas_V0-20-09-14 by VZTECH

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers file_system_manager.h Source File

file_system_manager.h

00001 #ifndef __FILE_SYSTEM_MANAGER_H__
00002 #define __FILE_SYSTEM_MANAGER_H__
00003 
00004 #include "QSPIFileSystem.h"
00005 %: include "bits.h"
00006 
00007 const uint16_t FILE_BUFFER_SIZE = 1024;
00008 
00009 extern QSPIFileSystem qspifs;
00010 
00011 /**
00012  * @Synopsis Altera o valor default contido no arquivo /qspi/myip.txt
00013  *
00014  * @param new_header_ip Atualiza o valor de /qspi/myip.txt sobrescrevendo-o com o valor de new_header_ip
00015  *
00016  * Exemplo:
00017  * @code
00018  * ...
00019  *  set_ip( "192.168.120.2" );
00020  * ...
00021  * @endcode
00022  */
00023 int fset_header_ip ( const char * new_header_ip );
00024 int fget_ip ( char * header_ip, const size_t length );
00025 
00026 /**
00027  * @Synopsis Altera o valor default contido no arquivo /qspi/myext.txt
00028  *
00029  * @param new_header_ext Atualiza o valor de /qspi/myext.txt sobrescrevendo-o com o valor de new_header_ext
00030  *
00031  * Exemplo:
00032  * @code
00033  * ...
00034  *  set_header_ext( 912 );
00035  * ...
00036  * @endcode
00037  */
00038 int fset_header_ext ( const int new_header_ext );
00039 int fget_header_ext ( void );
00040 
00041 /**
00042  * @Synopsis Altera o valor default contido no arquivo /qspi/mysipport.txt
00043  *
00044  * @param new_header_sip_port Atualiza o valor de /qspi/mysipport.txt sobrescrevendo-o com o valor de new_header_sip_port
00045  *
00046  * Exemplo:
00047  * @code
00048  * ...
00049  *  set_header_sip_port( 820 );
00050  * ...
00051  * @endcode
00052  */
00053 int fset_header_sip_port ( const int new_header_sip_port );
00054 int fget_header_sip_port ( void );
00055 
00056 
00057 /**
00058  * @Synopsis Altera o valor default contido no arquivo /qspi/serverip.txt
00059  *
00060  * @param new_server_ip Atualiza o valor de /qspi/serverip.txt sobrescrevendo-o com o valor de new_server_ip
00061  *
00062  * Exemplo:
00063  * @code
00064  * ...
00065  *  set_header_sip_port( "192.168.120.231" );
00066  * ...
00067  * @endcode
00068  */
00069 int fset_server_ip ( const char * new_server_ip );
00070 int fget_server_ip ( char * server_ip, const size_t length );
00071 
00072 /**
00073  * @Synopsis Altera o valor default contido no arquivo /qspi/peerext.txt
00074  *
00075  * @param new_server_ext Atualiza o valor de /qspi/peerext.txt sobrescrevendo-o com o valor de new_server_ext
00076  *
00077  * Exemplo:
00078  * @code
00079  * ...
00080  *  set_header_sip_port( 1011 );
00081  * ...
00082  * @endcode
00083  */
00084 int fset_server_ext ( const int new_server_ext );
00085 int fget_server_ext ( void );
00086 
00087 /**
00088  * @Synopsis Altera o valor default contido no arquivo /qspi/serverport.txt
00089  *
00090  * @param new_server_port Atualiza o valor de /qspi/serverport.txt sobrescrevendo-o com o valor de new_server_port
00091  *
00092  * Exemplo:
00093  * @code
00094  * ...
00095  *  set_header_sip_port( 1562 );
00096  * ...
00097  * @endcode
00098  */
00099 int fset_server_port ( const int new_server_port );
00100 int fget_server_port ( void );
00101 
00102 /**
00103  * @Synopsis Altera o valor default contido no arquivo /qspi/udpport.txt
00104  *
00105  * @param new_udp_port_listener Atualiza o valor de /qspi/udpport.txt sobrescrevendo-o com o valor de new_udp_port_listener
00106  *
00107  * Exemplo:
00108  * @code
00109  * ...
00110  *  set_udp_port_listener( 11147 );
00111  * ...
00112  * @endcode
00113  */
00114 int set_udp_port_listener ( const int new_udp_port_listener );
00115 int fget_udp_port_listener ( void );
00116 
00117 /**
00118  * @Synopsis Altera o valor default contido no arquivo /qspi/tcpport.txt
00119  *
00120  * @param new_tcp_port_listener Atualiza o valor de /qspi/tcpport.txt sobrescrevendo-o com o valor de new_tcp_port_listener
00121  *
00122  * Exemplo:
00123  * @code
00124  * ...
00125  *  set_tcp_port_listener( 7178 );
00126  * ...
00127  * @endcode
00128  */
00129 int set_tcp_port_listener ( const int new_tcp_port_listener );
00130 int fget_tcp_port_listener ( void );
00131 
00132 /**
00133  * @Synopsis Altera o valor default contido no arquivo /qspi/mymask.txt
00134  *
00135  * @param new_mask Atualiza o valor de /qspi/mymask.txt sobrescrevendo-o com o valor de new_mask
00136  *
00137  * Exemplo:
00138  * @code
00139  * ...
00140  *  set_mask( "255.255.0.0" );
00141  * ...
00142  * @endcode
00143  */
00144 int fset_mask( const char * new_mask );
00145 int fget_mask ( char * eth_mask, const size_t length );
00146 
00147 /**
00148  * @Synopsis Altera o valor default contido no arquivo /qspi/mygateway.txt
00149  *
00150  * @param new_gateway Atualiza o valor de /qspi/mygateway.txt sobrescrevendo-o com o valor de new_gateway
00151  *
00152  * Exemplo:
00153  * @code
00154  * ...
00155  *  set_gateway( "192.168.118.2" );
00156  * ...
00157  * @endcode
00158  */
00159 int fset_gateway ( const char * new_gateway );
00160 int fget_gateway ( char * eth_gw, const size_t length );
00161 
00162 int fset_max_ext ( const int new_max_ext );
00163 int fget_max_ext ( void );
00164 
00165 int fset_min_ext ( const int new_min_ext );
00166 int fget_min_ext ( void );
00167 
00168 int cat( const char * fname );
00169 
00170 int files( const char type );
00171 
00172 int fset_fw_ip ( const char * new_fw_ip );
00173 int fget_fw_ip ( char * fw_ip, const size_t length );
00174 
00175 int fset_fw_port ( const int new_fw_port );
00176 int fget_fw_port ( void );
00177 
00178 int fset_shift_port ( const int new_shift_port );
00179 int fget_shift_port ( void );
00180 
00181 int fset_acceptable_delay ( const int new_acceptable_delay );
00182 int fget_acceptable_delay ( void );
00183 
00184 int fset_cbx_detach_mode ( const bool new_cbx_detach_mode );
00185 bool fget_cbx_detach_mode ( int * err );
00186 
00187 int fset_cbx_wake_mode ( const bool new_cbx_wake_mode );
00188 bool fget_cbx_wake_mode ( int * err );
00189 
00190 int fset_cbx_mode ( const uint8_t new_cbx_mode );
00191 int fget_cbx_mode ( void );
00192 
00193 int init_fsystem ( void );
00194 
00195 #endif