/var/www/restricted/ssh/stm32/www/stm32circle/ STM CircleOS forum / parsing text file

Username:     
Password:     
             

Forum

# 1   2012-02-07 21:58:22 parsing text file

erazor667
New member
Registered: 2011-11-27
Posts: 7

parsing text file

I'm trying to parse text file placed on sd card. In the file I have sample voltage values which I want to copy to DMA buffer, but I don't know how to parse these values. Is there any parse function which I can use?
My text file looks like this:
0x0
0x33
0x66
0x99
0xCC
0xFF ...

I have read the file using:
FS_ReadFile(&file_info, (u8 *)TextBuffer, &i, sizeof(TextBuffer));

Offline

 

Board footer