STAR
Cal STAR — firmware, DAQ server, and engine design
Loading...
Searching...
No Matches
sd_spi.c File Reference
#include "sd_spi.h"
Include dependency graph for sd_spi.c:

Go to the source code of this file.

Functions

uint8_t sd_crc7 (const uint8_t *data, uint8_t len)
void sd_command_frame (uint8_t out[6], uint8_t index, uint32_t argument)
bool sd_r7_ok (const uint8_t r7[4])
bool sd_cid_ok (const uint8_t cid[16])

Function Documentation

◆ sd_cid_ok()

bool sd_cid_ok ( const uint8_t cid[16])

Definition at line 31 of file sd_spi.c.

References sd_crc7().

Referenced by sd_nand_probe(), and test_cid().

◆ sd_command_frame()

void sd_command_frame ( uint8_t out[6],
uint8_t index,
uint32_t argument )

Definition at line 17 of file sd_spi.c.

References sd_crc7().

Referenced by sd_command(), sd_read_cid(), and test_command_frames().

◆ sd_crc7()

uint8_t sd_crc7 ( const uint8_t * data,
uint8_t len )

Definition at line 3 of file sd_spi.c.

Referenced by sd_cid_ok(), and sd_command_frame().

◆ sd_r7_ok()

bool sd_r7_ok ( const uint8_t r7[4])

Definition at line 26 of file sd_spi.c.

References SD_CMD8_ARG.

Referenced by sd_nand_probe(), and test_r7().