3/5/2024 0 Comments Sd card writer![]() ![]() the flush() also seems to take about 8-10ms.Ī close() seems to the be the same as a flush, except that after a close() no further writes() can be done until it's re-opened.Ĭan I write() a buffer of more than 512 bytes to the SD cards in one go? This does what I think of as a 'soft write' - it's on the disk, but if I loose power before a close() then the data's lost.Įvery now and again I have to do a flush() - this is like a 'commit' in database parlance, once the flush() is done, then even if I loose power then the data should still be in the file. First I'll start with what I think I know about using SD cards, (based on experimentation and what I've picked up on this forum)Įach time I have 512 bytes of data in my buffer I do a write() - this takes typically 7-8ms, effectively this copies my data into the SD cards own buffer.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |