26 lines
617 B
C
26 lines
617 B
C
// This file is part of the CircuitPython project: https://circuitpython.org
|
|
//
|
|
// SPDX-FileCopyrightText: Copyright (c) 2020 Jeff Epler for Adafruit Industries
|
|
//
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
#pragma once
|
|
|
|
#include "py/obj.h"
|
|
#include "py/objproperty.h"
|
|
#include "py/runtime.h"
|
|
#include "py/objarray.h"
|
|
|
|
#include "common-hal/busio/SPI.h"
|
|
#include "common-hal/digitalio/DigitalInOut.h"
|
|
|
|
typedef struct {
|
|
mp_obj_base_t base;
|
|
busio_spi_obj_t *bus;
|
|
digitalio_digitalinout_obj_t cs;
|
|
int cdv;
|
|
int baudrate;
|
|
uint32_t sectors;
|
|
uint32_t next_block;
|
|
bool in_cmd25;
|
|
} sdcardio_sdcard_obj_t;
|