test
Dependencies: Nanopb iSerial mbed BaseJpegDecode FatFileSystem SDFileSystem RingBuffer Camera_LS_Y201
vocit4.pb.c
- Committer:
- cgraham
- Date:
- 2014-09-18
- Revision:
- 0:d69efd0ee139
File content as of revision 0:d69efd0ee139:
/* Automatically generated nanopb constant definitions */ /* Generated by nanopb-0.2.6 at Mon Aug 18 13:42:41 2014. */ #include "vocit4.pb.h" const pb_field_t BaseMessage_fields[8] = { PB_FIELD2( 1, ENUM , REQUIRED, STATIC , FIRST, BaseMessage, messageType, messageType, 0), PB_FIELD2( 2, MESSAGE , OPTIONAL, STATIC , OTHER, BaseMessage, time, messageType, &Time_fields), PB_FIELD2( 3, MESSAGE , OPTIONAL, STATIC , OTHER, BaseMessage, request, time, &RequestImages_fields), PB_FIELD2( 4, MESSAGE , OPTIONAL, STATIC , OTHER, BaseMessage, images, request, &Images_fields), PB_FIELD2( 5, MESSAGE , OPTIONAL, STATIC , OTHER, BaseMessage, packet, images, &ImagePacket_fields), PB_FIELD2( 6, MESSAGE , OPTIONAL, STATIC , OTHER, BaseMessage, preferences, packet, &Preferences_fields), PB_FIELD2( 7, MESSAGE , OPTIONAL, STATIC , OTHER, BaseMessage, ack, preferences, &Ack_fields), PB_LAST_FIELD }; const pb_field_t Time_fields[2] = { PB_FIELD2( 1, INT32 , REQUIRED, STATIC , FIRST, Time, remainingTime, remainingTime, 0), PB_LAST_FIELD }; const pb_field_t Images_fields[4] = { PB_FIELD2( 1, BOOL , REQUIRED, STATIC , FIRST, Images, isFirstImage, isFirstImage, 0), PB_FIELD2( 2, INT32 , REQUIRED, STATIC , OTHER, Images, fileSize, isFirstImage, 0), PB_FIELD2( 3, INT32 , REQUIRED, STATIC , OTHER, Images, numberOfPackets, fileSize, 0), PB_LAST_FIELD }; const pb_field_t ImagePacket_fields[3] = { PB_FIELD2( 1, INT32 , REQUIRED, STATIC , FIRST, ImagePacket, packetNumber, packetNumber, 0), PB_FIELD2( 2, BYTES , REQUIRED, STATIC , OTHER, ImagePacket, image, packetNumber, 0), PB_LAST_FIELD }; const pb_field_t Preferences_fields[2] = { PB_FIELD2( 1, INT32 , REQUIRED, STATIC , FIRST, Preferences, timeInterval, timeInterval, 0), PB_LAST_FIELD }; const pb_field_t Ack_fields[2] = { PB_FIELD2( 1, BOOL , REQUIRED, STATIC , FIRST, Ack, ok, ok, 0), PB_LAST_FIELD }; const pb_field_t RequestImages_fields[2] = { PB_FIELD2( 1, BOOL , REQUIRED, STATIC , FIRST, RequestImages, request, request, 0), PB_LAST_FIELD }; /* Check that field information fits in pb_field_t */ #if !defined(PB_FIELD_32BIT) /* If you get an error here, it means that you need to define PB_FIELD_32BIT * compile-time option. You can do that in pb.h or on compiler command line. * * The reason you need to do this is that some of your messages contain tag * numbers or field sizes that are larger than what can fit in 8 or 16 bit * field descriptors. */ STATIC_ASSERT((pb_membersize(BaseMessage, time) < 65536 && pb_membersize(BaseMessage, request) < 65536 && pb_membersize(BaseMessage, images) < 65536 && pb_membersize(BaseMessage, packet) < 65536 && pb_membersize(BaseMessage, preferences) < 65536 && pb_membersize(BaseMessage, ack) < 65536), YOU_MUST_DEFINE_PB_FIELD_32BIT_FOR_MESSAGES_BaseMessage_Time_Images_ImagePacket_Preferences_Ack_RequestImages) #endif #if !defined(PB_FIELD_16BIT) && !defined(PB_FIELD_32BIT) #error Field descriptor for ImagePacket.image is too large. Define PB_FIELD_16BIT to fix this. #endif