Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: EALib EthernetInterface_vz mbed-rtos mbed
Fork of header_main_colinas_V0-20-09-14 by
fw.h
00001 #ifndef __FW_H__ 00002 #define __FW_H__ 00003 00004 #include <stdint.h> 00005 #include "debug.h" 00006 %: include "config_manager.h" 00007 %: include "shared_variables.h" 00008 00009 extern const uint16_t CB_BUFFER_SIZE; 00010 00011 const uint16_t __FW_HEADER_PORT__ = 9482; 00012 ///< Estabelece a porta default da Header, de onde os pacotes de telemetria são enviados. 00013 00014 const uint16_t __FW_SIZE__ = CB_BUFFER_SIZE; 00015 00016 extern uint16_t miss_fw_send_pkg; 00017 00018 /** 00019 * @Synopsis 00020 */ 00021 int init_fw_handler( void ); 00022 00023 /** 00024 * @Synopsis 00025 */ 00026 void re_start_fw( void ); 00027 00028 /** 00029 * @Synopsis Responsavel por formatar e enviar o pacote de telemetria para o servidor de interesse. 00030 * 00031 * @param ext Ramal do CBx emissor do pacote de telemetria. 00032 * @param port Porta do CBx emissor do pacote de telemetria. 00033 * @param data Vetor contendo os dados de telemetria em si. 00034 * 00035 * Exemplo: 00036 * @code 00037 * ... 00038 * ext = 5160; 00039 * port = 5060; 00040 * //assumindo que data_from_cb contém os dados vindos do Call_box. 00041 * build_telemetry_report( ext, port, ( char * )data_from_cb ); 00042 * ... 00043 * @endcode 00044 */ 00045 void fw_cbx_pkg ( const int ext, char * data ); 00046 00047 extern UDPSocket fw_sock; 00048 ///< Canal de entrada/saida de dados entre Header/Server 00049 extern Endpoint fw_server; 00050 ///< Representação do link com o server pro qual os pacotes são enviados. 00051 00052 #endif
Generated on Tue Jul 12 2022 16:25:04 by
