5 #ifndef _NB_STREAM_UP_H 6 #define _NB_STREAM_UP_H 8 #define STREAM_UP_OK (1) 9 #define STREAM_UP_FAIL (0) 11 #include <basictypes.h> 47 int SendUserFlashToStreamAsBinary(
int fd);
68 int SendUserFlashToStreamAsS19(
int fd);
89 int ReadS19UserFlashFromStream(
int fd);
109 int ReadBinaryUserFlashFromStream(
int fd);
135 int ReadS19ApplicationCodeFromStream(
int fd);
137 int SendApplicationCodeAsS19(
int fd);
139 int ReadBinaryApplicationCodeFromStream(
int fd);
142 int ProcessS3(
const char *cp, uint32_t base_Addr, puint8_t CopyTo, uint32_t &cur_pos, uint32_t maxlen);
145 struct TwoPartUpdateStruct
147 uint8_t S0Record[24];
152 TwoPartUpdateStruct()
155 Result = STREAM_UP_FAIL;
161 int ReadTwoPartAppUdate(
int fd, TwoPartUpdateStruct &us);
166 int DoTwoPartAppUpdate(TwoPartUpdateStruct &us);
169 void AbortTwoPartAppUpdate(TwoPartUpdateStruct &us);