Microchip® Advanced Software Framework

_asf_v1/mci.c File Reference
#include "mci.h"

Macros

#define MCI_SR_ERROR
 Global Error Mask. More...
 

Functions

void mci_disable (volatile avr32_mci_t *mci)
 Disables the MCI controller. More...
 
void mci_enable (volatile avr32_mci_t *mci)
 Enables the MCI controller. More...
 
int mci_init (volatile avr32_mci_t *mci, uint8_t card_slot, uint32_t pbb_hz)
 Initialize the MCI controller. More...
 
unsigned int mci_read_response (volatile avr32_mci_t *mci)
 Read command argument response. More...
 
void mci_reset (volatile avr32_mci_t *mci)
 Resets the MCI controller. More...
 
int mci_select_card (volatile avr32_mci_t *mci, uint8_t card_slot, uint8_t bus_width)
 Mci Select slot Card. More...
 
int mci_send_cmd (volatile avr32_mci_t *mci, unsigned int cmd, unsigned int arg)
 Generic function to send a command to the MMC or SDCard. More...
 
void mci_set_block_count (volatile avr32_mci_t *mci, uint16_t cnt)
 Set Block Count. More...
 
void mci_set_block_size (volatile avr32_mci_t *mci, uint16_t length)
 Set Block Size. More...
 
int mci_set_bus_size (volatile avr32_mci_t *mci, uint8_t busWidth)
 Set SDIO Bus Width. More...
 
void mci_set_speed (volatile avr32_mci_t *mci, uint32_t pbb_hz, uint32_t card_speed)
 Set Speed Card. More...
 
void mci_stop (volatile avr32_mci_t *mci)
 Stop the MCI controller. More...
 
void mci_wait_busy_signal (volatile avr32_mci_t *mci)
 Mci Busy Status. More...
 

Variables

int shadow_sr =0
 

#define MCI_SR_ERROR
Value:
( AVR32_MCI_SR_UNRE_MASK |\
AVR32_MCI_SR_OVRE_MASK |\
AVR32_MCI_SR_DTOE_MASK |\
AVR32_MCI_SR_DCRCE_MASK |\
AVR32_MCI_SR_RTOE_MASK |\
AVR32_MCI_SR_RENDE_MASK |\
AVR32_MCI_SR_RCRCE_MASK |\
AVR32_MCI_SR_RDIRE_MASK |\
AVR32_MCI_SR_RINDE_MASK)

Global Error Mask.

Referenced by mci_send_cmd().