Home | History | Annotate | Download | only in inc

Lines Matching refs:Segment

87 #define FL_APP_HDR_VOLATILE        0x0008 // volatile content, segment shall be deleted after operation is complete
110 #define SEG_ID_ERASED 0x0 // segment erased
117 struct Segment {
118 uint8_t state; // 0xFF: empty; bit7=0: segment present; bit6=0: size valid; bit5=0: CRC-32 valid; bit4=0:segment erased;
184 bool osSegmentSetSize(struct Segment *seg, uint32_t size);
186 struct Segment *osGetSegment(const struct AppHdr *app);
187 struct Segment *osSegmentGetEnd();
189 static inline int32_t osSegmentGetSize(const struct Segment *seg)
194 static inline uint32_t osSegmentGetState(const struct Segment *seg)
199 static inline struct AppHdr *osSegmentGetData(const struct Segment *seg)
221 static inline const struct Segment *osSegmentSizeGetNext(const struct Segment *seg, uint32_t size)
223 struct Segment *next = (struct Segment *)(((uint8_t*)seg) +
230 static inline const struct Segment *osSegmentGetNext(const struct Segment *seg)
241 const struct Segment *shared;
242 const struct Segment *sharedEnd;
243 const struct Segment *seg;
250 const struct Segment *seg = it->shared;
251 const struct Segment *next = seg < it->sharedEnd ? osSegmentGetNext(seg) : it->sharedEnd;