2
0

sdmmc-internal.h 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. /*
  2. * SD/MMC cards common
  3. *
  4. * Copyright (c) 2018 Philippe Mathieu-Daudé <f4bug@amsat.org>
  5. *
  6. * This work is licensed under the terms of the GNU GPL, version 2 or later.
  7. * See the COPYING file in the top-level directory.
  8. * SPDX-License-Identifier: GPL-2.0-or-later
  9. */
  10. #ifndef SDMMC_INTERNAL_H
  11. #define SDMMC_INTERNAL_H
  12. #define SDMMC_CMD_MAX 64
  13. /**
  14. * sd_cmd_name:
  15. * @cmd: A SD "normal" command, up to SDMMC_CMD_MAX.
  16. *
  17. * Returns a human-readable name describing the command.
  18. * The return value is always a static string which does not need
  19. * to be freed after use.
  20. *
  21. * Returns: The command name of @cmd or "UNKNOWN_CMD".
  22. */
  23. const char *sd_cmd_name(uint8_t cmd);
  24. /**
  25. * sd_acmd_name:
  26. * @cmd: A SD "Application-Specific" command, up to SDMMC_CMD_MAX.
  27. *
  28. * Returns a human-readable name describing the application command.
  29. * The return value is always a static string which does not need
  30. * to be freed after use.
  31. *
  32. * Returns: The application command name of @cmd or "UNKNOWN_ACMD".
  33. */
  34. const char *sd_acmd_name(uint8_t cmd);
  35. #endif