furi_hal_sd.h 549 B

123456789101112131415161718192021222324252627282930313233
  1. /**
  2. * @file furi_hal_sd.h
  3. * SD Card HAL API
  4. */
  5. #include <stdint.h>
  6. #include <stdbool.h>
  7. #include <furi_hal_spi_types.h>
  8. #ifdef __cplusplus
  9. extern "C" {
  10. #endif
  11. /** Init SD card detect
  12. */
  13. void hal_sd_detect_init(void);
  14. /** Set SD card detect pin to low
  15. */
  16. void hal_sd_detect_set_low(void);
  17. /** Get SD card status
  18. *
  19. * @return true if SD card present, false if SD card not present
  20. */
  21. bool hal_sd_detect(void);
  22. /** Pointer to currently used SPI Handle */
  23. extern FuriHalSpiBusHandle* furi_hal_sd_spi_handle;
  24. #ifdef __cplusplus
  25. }
  26. #endif