Abl-electronic PIC Microcontrollers PIC16 Bedienungsanleitung Seite 233

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 312
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 232
MikroElektronika:
Development
tools
-
Books
-
Compilers
225
page
mikroC
- C Compiler for Microchip PIC microcontrollers
mikroC
making it simple...
Prototype
unsigned short Mmc_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 MMC 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 Mmc_Init.
Example
error = Mmc_Read_Sector(sector, data);
Mmc_Read_Sector
Prototype
unsigned short Mmc_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 MMC 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 Mmc_Init.
Example
error = Mmc_Write_Sector(sector, data);
Mmc_Write_Sector
Seitenansicht 232
1 2 ... 228 229 230 231 232 233 234 235 236 237 238 ... 311 312

Kommentare zu diesen Handbüchern

Keine Kommentare