|
microsd 2.2.0
|
API for configuring and manipulating microSD Click driver. More...
Topics | |
| microSD Registers Settings | |
| Settings for registers of microSD Click driver. | |
| microSD MikroBUS Map | |
| MikroBUS pin mapping of microSD Click driver. | |
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. | |
API for configuring and manipulating microSD Click driver.
Any initialization code needed for MCU to function properly. Do not remove this line or clock might not be set correctly.
| void microsd_cfg_setup | ( | microsd_cfg_t * | cfg | ) |
microSD configuration object setup function.
This function initializes Click configuration structure to initial values.
| [out] | cfg | : Click configuration structure. See microsd_cfg_t object definition for detailed explanation. |
| uint8_t microsd_get_card_detect | ( | microsd_t * | ctx | ) |
microSD get card detect function.
This function returns the card detect pin logic state.
| [in] | ctx | : Click context object. See microsd_t object definition for detailed explanation. |
0 - Card detected, 1 - Card not detected. | err_t microsd_init | ( | microsd_t * | ctx, |
| microsd_cfg_t * | cfg ) |
microSD initialization function.
This function initializes all necessary pins and peripherals used for this Click board.
| [out] | ctx | : Click context object. See microsd_t object definition for detailed explanation. |
| [in] | cfg | : Click configuration structure. See microsd_cfg_t object definition for detailed explanation. |
0 - Success, -1 - Error. See #err_t definition for detailed explanation.