diff --git a/libsdc.c b/libsdc.c index a8873ab..8a7eb0b 100644 --- a/libsdc.c +++ b/libsdc.c @@ -178,7 +178,7 @@ return response; } -bool initSDCard(void) { +bool sdcInit(void) { uint8_t response[5]; // power on @@ -243,7 +243,7 @@ return true; } -bool readSingleBlock(uint32_t address, uint8_t *block) { +bool sdcReadSingleBlock(uint32_t address, uint8_t *block) { select(); command(CMD17, address, CMD17_CRC); @@ -276,7 +276,7 @@ return success; } -bool readMultiBlock(uint32_t address, SDConsumer consume) { +bool sdcReadMultiBlock(uint32_t address, SDConsumer consume) { select(); command(CMD18, address, CMD18_CRC); @@ -333,7 +333,7 @@ return success; } -bool writeSingleBlock(uint32_t address, uint8_t *block) { +bool sdcWriteSingleBlock(uint32_t address, uint8_t *block) { select(); command(CMD24, address, CMD24_CRC); diff --git a/libsdc.h b/libsdc.h index bf144f8..acb45f6 100644 --- a/libsdc.h +++ b/libsdc.h @@ -95,7 +95,7 @@ * * @return true on success, false otherwise */ -bool initSDCard(void); +bool sdcInit(void); /** * Reads a single block of 512 bytes at the given address into @@ -105,7 +105,7 @@ * @param block 512 byte buffer * @return success */ -bool readSingleBlock(uint32_t address, uint8_t *block); +bool sdcReadSingleBlock(uint32_t address, uint8_t *block); /** * Reads multiple blocks of 512 bytes starting at the given address @@ -116,7 +116,7 @@ * @param consume * @return success */ -bool readMultiBlock(uint32_t address, SDConsumer consume); +bool sdcReadMultiBlock(uint32_t address, SDConsumer consume); /** * Writes a single block of 512 bytes starting at the given address @@ -126,6 +126,6 @@ * @param block 512 byte buffer * @return success */ -bool writeSingleBlock(uint32_t address, uint8_t *block); +bool sdcWriteSingleBlock(uint32_t address, uint8_t *block); #endif /* LIBSDC_H */