crc7_sd_card

Library for communicating with SD memory cards

Author Matthew Schinkel, copyright © 2009..2022, all rights reserved.
Adapted-by
Compiler 2.5r9

Description

this library provides functions for SD memory cards.


Sources

SanDisk Secure Digital Card - http://www.cs.ucr.edu/~amitra/sdcard/ProdManualSDCardv1.9.pdf
How to use MMC/SDC - http://forums.parallax.com/forums/attach.aspx?a=32012
http://www.rjhcoding.com/avrc-sd-interface-3.php


Notes

SD card SPI mode is 1,1


Dependencies

No dependency found



Summary

Global variables/contants

Procedures

Functions


API details

Global variables/contants

Procedures

  • crc7_calculate_bytes(byte in data)

    Calculate CRC7 for a single byte (incremental processing)
    Parameters: data - single byte to process
    Updates internal CRC state with new data byte
    
    

  • crc7_start(word in expected_bytes)

    Start CRC7 calculation with expected byte count
    Parameters: expected_bytes - total number of bytes to be processed
    Initializes CRC calculation state and sets up for incremental processing
    
    

  • crc7_reset()

    Reset CRC7 calculation state
    Clears all internal state and error flags
    Call this to start fresh after an error or to reuse the library
    
    

Functions


Related samples

Here are the list of samples which use this library:

18f67j5018f67j50_crc7_bitwise.jal