CardSight 0.1.0
C API reference for the CardSight firmware and application
Loading...
Searching...
No Matches
core.h
Go to the documentation of this file.
1/* SPDX-License-Identifier: GPL-2.0-or-later */
9
10#ifndef CARDSIGHT_MMC_CORE_H
11#define CARDSIGHT_MMC_CORE_H
12
13#include <hal/mmc/card.h>
14#include <hal/mmc/host.h>
15
22bool mmc_card_ready(const struct mmc_card *card);
23
31int mmc_card_info(const struct mmc_card *card, struct mmc_card_info *info);
32
41int mmc_blk_init(void);
42
48const char *mmc_last_error(void);
51
59
66
67#endif /* CARDSIGHT_MMC_CORE_H */
The card as the application sees it: what it is, how it is accessed and what the host found.
int mmc_probe_error(void)
The last identification result.
const char * mmc_last_error(void)
The last command-level card failure.
int mmc_blk_init(void)
Register the disk driver.
int mmc_card_info(const struct mmc_card *card, struct mmc_card_info *info)
Copy what the card reports.
bool mmc_card_ready(const struct mmc_card *card)
Whether the card was identified and has not been removed.
void mmc_last_error_clear(void)
Forget the last command-level failure.
bool mmc_slot_detecting(void)
Whether a card is in the slot but has not been identified yet.
The cards of the board.
What the host found out about the card.
Definition card.h:25
A card known to the mmc core.
Definition card.h:43