Download MCF5272 USB SW Developer Manual. Stand
Transcript
Freescale Semiconductor, Inc. 9.4.10. write_file. Call(s): uint32 write_file(uint32 fnum, uint8* dest, int32 length, int32 position); Arguments: Freescale Semiconductor, Inc... fnum dest length position Table 9-18. write_file arguments. in Index of file in which data must be written inout Pointer to buffer from where data must be read in Number of bytes to be written in Offset in a given file. It is a position in a file from which function must start placing the data in it. Description: This function copies length bytes from the buffer pointed by dest parameter to a file having index fnum. A writing to file starts from position offset. Assembler version is also provided. Returns: Number of written bytes. Code example: /* Write data from previous buffer into the file. */ write_file(fpos, bufptr, buf_size, pos); M Appendix 1: File Transfer Application. PRELIMINARY—SUBJECT TO CHANGE WITHOUT NOTICE For More Information On This Product, Go to: www.freescale.com 9-29