sdcard.h 415 Bytes
Newer Older
1
2
3
4
5
6
7
// this is a fixed size and should not be changed
#define SDCARD_BLOCK_SIZE (512)

void sdcard_init(void);
bool sdcard_is_present(void);
bool sdcard_power_on(void);
void sdcard_power_off(void);
8
uint64_t sdcard_get_capacity_in_bytes(void);
9
10
11
12
bool sdcard_read_block(uint8_t *dest, uint32_t block_num);
bool sdcard_write_block(const uint8_t *src, uint32_t block_num);

extern const struct _mp_obj_base_t pyb_sdcard_obj;