Abl-electronic PIC Microcontrollers PIC16 Manuel d'utilisateur Page 258

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 312
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 257
mikroC
- C Compiler for Microchip PIC microcontrollers
mikroC
making it simple...
250
MikroElektronika:
Development
tools
-
Books
-
Compilers
page
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 sector. Read
data is stored in the array
data. Function returns 0 if read was successful, or 1 if an
error occurred.
Requires Library needs to be initialized, see Sd_Init.
Example
error = Sd_Read_Sector(sector, data);
Sd_Read_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 Sd_Init.
Example
error = Sd_Write_Sector(sector, data);
Sd_Write_Sector
Vue de la page 257
1 2 ... 253 254 255 256 257 258 259 260 261 262 263 ... 311 312

Commentaires sur ces manuels

Pas de commentaire