Loading...
Searching...
No Matches
furi_hal_sd.h File Reference

SD Card HAL API. More...

#include <furi.h>

Go to the source code of this file.

Data Structures

struct  FuriHalSdInfo
 

Functions

void furi_hal_sd_presence_init (void)
 Init SD card presence detection.
 
bool furi_hal_sd_is_present (void)
 Get SD card status.
 
uint8_t furi_hal_sd_max_mount_retry_count (void)
 SD card max mount retry count.
 
FuriStatus furi_hal_sd_init (bool power_reset)
 Init SD card.
 
FuriStatus furi_hal_sd_read_blocks (uint32_t *buff, uint32_t sector, uint32_t count)
 Read blocks from SD card.
 
FuriStatus furi_hal_sd_write_blocks (const uint32_t *buff, uint32_t sector, uint32_t count)
 Write blocks to SD card.
 
FuriStatus furi_hal_sd_info (FuriHalSdInfo *info)
 Get SD card info.
 
FuriStatus furi_hal_sd_get_card_state (void)
 Get SD card state.
 

Detailed Description

SD Card HAL API.

Function Documentation

◆ furi_hal_sd_get_card_state()

FuriStatus furi_hal_sd_get_card_state ( void )

Get SD card state.

Returns
FuriStatus

◆ furi_hal_sd_info()

FuriStatus furi_hal_sd_info ( FuriHalSdInfo * info)

Get SD card info.

Parameters
info
Returns
FuriStatus

◆ furi_hal_sd_init()

FuriStatus furi_hal_sd_init ( bool power_reset)

Init SD card.

Parameters
power_resetreset card power
Returns
FuriStatus

◆ furi_hal_sd_is_present()

bool furi_hal_sd_is_present ( void )

Get SD card status.

Returns
true if SD card is present

◆ furi_hal_sd_max_mount_retry_count()

uint8_t furi_hal_sd_max_mount_retry_count ( void )

SD card max mount retry count.

Returns
uint8_t

◆ furi_hal_sd_read_blocks()

FuriStatus furi_hal_sd_read_blocks ( uint32_t * buff,
uint32_t sector,
uint32_t count )

Read blocks from SD card.

Parameters
buff
sector
count
Returns
FuriStatus

◆ furi_hal_sd_write_blocks()

FuriStatus furi_hal_sd_write_blocks ( const uint32_t * buff,
uint32_t sector,
uint32_t count )

Write blocks to SD card.

Parameters
buff
sector
count
Returns
FuriStatus