Reading from SD card

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Reading from SD card

853件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by james on Tue Jan 17 19:32:25 MST 2012
Hi,

I am trying to read characters from the SD card and process them before copying them back into the SD card.

Using the efsl demo provided from code red cmsis examples i am able to write/read from the SD card, but how can i store the buffer from reading of a SD card into an array[] and return it from a function?

Sorry that this is a C programming question and not very relevant in this forum.

I have goggled for ways to 'return' array[] from functions but cant really work it out, and some of the files (pictures) are too big.

Basically I am trying to read a picture file, do some processing, for example adding red filter and write a new file into the SD card. Anyone have any good method to do this?
0 件の賞賛
返信
2 返答(返信)

820件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by liza on Sun Apr 08 05:13:04 MST 2012
Hi
Did you use LPC1768 (as in the demo) or did you port it to another micro ?
0 件の賞賛
返信

820件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Ex-Zero on Wed Jan 18 01:09:05 MST 2012

Quote: james
...this is a C programming question...



Yes, so google for "array pointer C" and you should find something readable like

http://pw1.netcom.com/~tjensen/ptr/ch8x.htm


Quote: james
I have goggled for ways to 'return' array[] from functions but cant  really work it out, and some of the files (pictures) are too big.



Then return a pointer :)
0 件の賞賛
返信