Modularizando o src
Dependencies: EALib EthernetInterface_vz mbed-rtos mbed
Fork of header_main_colinas_V0-20-09-14 by
Diff: vz_protocol.h
- Revision:
- 34:f19d9735428e
- Parent:
- 29:7246460b73f8
- Child:
- 36:728498a78e1e
diff -r 735fd60e96d8 -r f19d9735428e vz_protocol.h --- a/vz_protocol.h Tue Sep 30 11:37:31 2014 +0000 +++ b/vz_protocol.h Tue Sep 30 14:28:01 2014 +0000 @@ -12,6 +12,7 @@ #define __VZ_HEADER_OFFSET__ 7 #define __CB_BUFFER_SIZE__ 300 +#define __UDP_ETH_BUFFER_SIZE__ 300 #define __TELEMETRY_SIZE__ __CB_BUFFER_SIZE__ - __VZ_HEADER_OFFSET__ #define __ETH_BUFFER_SIZE__ __CB_BUFFER_SIZE__ + __RTP_HEADER_SIZE__ + 1 // 313 #define __CB_AUDIO_DATA_SIZE__ 240 @@ -57,7 +58,7 @@ uint16_t __checksum__( uint8_t * buffer, size_t length ); /* incorporar a parte de cc */ -uint8_t * __parse_cb_buffer__( int * ext, int * port, volatile uint8_t * type, uint8_t * cb_buffer ); +uint8_t * __parse_vz_pkg__( int * ext, int * port, volatile uint8_t * type, uint8_t * cb_buffer ); uint8_t * __build_cb_package__( int ext, int port, uint8_t type, char * cb_buffer, uint8_t seq_num, int length, uint8_t * pkg ); char * __build_eth__package__( void ); void __print_clock__( uint8_t * buffer );