mikroElektronika PIC Microcontrollers PIC12 User Manual page 258

Mikroc user's manual
Table of Contents

Advertisement

mikroC - C Compiler for Microchip PIC microcontrollers
Sd_Read_Sector
Prototype
unsigned short Sd_Read_Sector(unsigned long sector, char *data);
Returns
Returns 0 if read was successful, or 1 if an error occurred.
Description
Function reads one sector (512 bytes) from SD card at sector address
data is stored in the array
error occurred.
Requires
Library needs to be initialized, see
Example
error = Sd_Read_Sector(sector, data);
Sd_Write_Sector
Prototype
unsigned short Sd_Write_Sector(unsigned long sector,char *data);
Returns
Returns 0 if write was successful; returns 1 if there was an error in sending write com-
mand; returns 2 if there was an error in writing.
Description
Function writes 512 bytes of data to SD card at sector address sector. Function returns 0
if write was successful, or 1 if there was an error in sending write command, or 2 if
there was an error in writing.
Requires
Library needs to be initialized, see
Example
error = Sd_Write_Sector(sector, data);
page
250
. Function returns 0 if read was successful, or 1 if an
data
.
Sd_Init
.
Sd_Init
MikroElektronika: Development tools - Books - Compilers
mikroC
making it simple...
. Read
sector

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the PIC Microcontrollers PIC12 and is the answer not in the manual?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Pic microcontrollers pic16Pic microcontrollers pic18

Table of Contents