ATmega8GPSLoggerBasismodul
20131018
|
#include "mmc.h"
Go to the source code of this file.
Functions | |
unsigned char | mmc_init () |
unsigned char | mmc_write_command (unsigned char *cmd) |
unsigned char | mmc_read_byte (void) |
void | mmc_write_byte (unsigned char Byte) |
unsigned char | mmc_write_sector (unsigned long addr, unsigned char *Buffer) |
void | mmc_read_block (unsigned char *cmd, unsigned char *Buffer, unsigned int Bytes) |
unsigned char | mmc_read_sector (unsigned long addr, unsigned char *Buffer) |
unsigned char | mmc_read_cid (unsigned char *Buffer) |
unsigned char | mmc_read_csd (unsigned char *Buffer) |
unsigned char mmc_init | ( | void | ) |
Definition at line 32 of file mmc.c.
References MMC_Direction_REG, MMC_Disable, MMC_Write, mmc_write_byte(), mmc_write_command(), and nop.
Referenced by main().
void mmc_read_block | ( | unsigned char * | cmd, |
unsigned char * | Buffer, | ||
unsigned int | Bytes | ||
) |
Definition at line 254 of file mmc.c.
References MMC_Disable, mmc_read_byte(), and mmc_write_command().
Referenced by mmc_read_cid(), mmc_read_csd(), and mmc_read_sector().
unsigned char mmc_read_byte | ( | void | ) |
Definition at line 135 of file mmc.c.
References MMC_Read, and MMC_Write.
Referenced by mmc_read_block(), mmc_write_command(), and mmc_write_sector().
unsigned char mmc_read_cid | ( | unsigned char * | Buffer | ) |
Definition at line 309 of file mmc.c.
References mmc_read_block().
unsigned char mmc_read_csd | ( | unsigned char * | Buffer | ) |
Definition at line 322 of file mmc.c.
References mmc_read_block().
unsigned char mmc_read_sector | ( | unsigned long | addr, |
unsigned char * | Buffer | ||
) |
Definition at line 286 of file mmc.c.
References mmc_read_block().
void mmc_write_byte | ( | unsigned char | Byte | ) |
Definition at line 166 of file mmc.c.
References MMC_Write.
Referenced by mmc_init(), mmc_write_command(), and mmc_write_sector().
unsigned char mmc_write_command | ( | unsigned char * | cmd | ) |
Definition at line 99 of file mmc.c.
References MMC_Disable, MMC_Enable, mmc_read_byte(), and mmc_write_byte().
Referenced by mmc_init(), mmc_read_block(), and mmc_write_sector().
unsigned char mmc_write_sector | ( | unsigned long | addr, |
unsigned char * | Buffer | ||
) |
Definition at line 195 of file mmc.c.
References MMC_Disable, mmc_read_byte(), mmc_write_byte(), and mmc_write_command().