Skip to content

Commit bf5eca5

Browse files
committed
Add docs
1 parent 469f2c9 commit bf5eca5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/sdcard/sd_card_device.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,8 @@ where
155155
}
156156
}
157157

158+
/// Perform a transaction against the device. This sends a dummy `0xFF` byte to the device after
159+
/// deasserting the CS pin but before unlocking the bus.
158160
fn bus_transaction<BUS, CS>(
159161
bus: &mut BUS,
160162
cs: &mut CS,
@@ -195,6 +197,7 @@ where
195197
Ok(())
196198
}
197199

200+
/// Send 80 clock pulses to the device with CS deasserted. This is needed to initialize the SD card.
198201
fn send_clock_pulses<BUS, CS>(bus: &mut BUS, cs: &mut CS) -> Result<(), SdCardDeviceError>
199202
where
200203
BUS: SpiBus,

0 commit comments

Comments
 (0)