microsd 2.1.0.0
microsd.h File Reference

This file contains API for microSD Click Driver. More...

#include "drv_digital_in.h"
#include "MikroSDK.PhysicalDrive"
#include "MikroSDK.FileSystem"

Go to the source code of this file.

Data Structures

struct  microsd_t
 microSD Click context object. More...
 
struct  microsd_cfg_t
 microSD Click configuration object. More...
 

Macros

#define MICROSD_SET_DATA_SAMPLE_EDGE   SET_SPI_DATA_SAMPLE_EDGE
 Data sample selection.
 
#define MICROSD_SET_DATA_SAMPLE_MIDDLE   SET_SPI_DATA_SAMPLE_MIDDLE
 
#define MICROSD_MAP_MIKROBUS(cfg, mikrobus)
 MikroBUS pin mapping.
 

Enumerations

enum  microsd_return_value_t { MICROSD_OK = 0 , MICROSD_ERROR = -1 }
 microSD Click return value data. More...
 

Functions

void microsd_cfg_setup (microsd_cfg_t *cfg)
 microSD configuration object setup function.
 
err_t microsd_init (microsd_t *ctx, microsd_cfg_t *cfg)
 microSD initialization function.
 
uint8_t microsd_get_card_detect (microsd_t *ctx)
 microSD get card detect function.
 

Detailed Description

This file contains API for microSD Click Driver.

Enumeration Type Documentation

◆ microsd_return_value_t

microSD Click return value data.

Predefined enum values for driver return values.

Enumerator
MICROSD_OK 
MICROSD_ERROR