<< Previous | Next >> | |
|
int sf_initDevice( sf_device * dev, int cs_port, char * cs_shadow, int cs_pin );
Description
Parameters
- dev
- Pointer to an empty
sf_device
struct that will be filled in on return. The struct will then act as a handle for the device.
- cs_port
- I/O port for the active low chip select pin for the device.
- cs_shadow
- Pointer to the shadow variable for
cs_port
.
- cs_pin
- I/O port pin number for the chip select signal.
Return Value
- 0 for success
-1if no flash chip detected
-2 if error communicating with flash chip
-3 if unknown flash chip typeLibrary
- SFLASH.LIB
Dynamic C Functions | << Previous | Next >> | rabbit.com |