STAR
Cal STAR — firmware, DAQ server, and engine design
Loading...
Searching...
No Matches
test_emmc_card.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "emmc_card.h"
Include dependency graph for test_emmc_card.c:

Go to the source code of this file.

Macros

#define CHECK(condition)

Functions

static void datasheet_cid (uint32_t cid[4])
static void datasheet_ext_csd (uint8_t e[512])
static void test_datasheet_part (void)
static void test_each_issue (void)
int main (void)

Macro Definition Documentation

◆ CHECK

#define CHECK ( condition)
Value:
do { \
if (!(condition)) { \
fprintf(stderr, "%s:%d: %s\n", __FILE__, __LINE__, #condition); \
exit(1); \
} \
} while (0)

Definition at line 8 of file test_emmc_card.c.

Referenced by test_datasheet_part(), and test_each_issue().

Function Documentation

◆ datasheet_cid()

void datasheet_cid ( uint32_t cid[4])
static

Definition at line 17 of file test_emmc_card.c.

Referenced by test_datasheet_part(), and test_each_issue().

◆ datasheet_ext_csd()

◆ main()

int main ( void )

Definition at line 108 of file test_emmc_card.c.

References test_datasheet_part(), and test_each_issue().

◆ test_datasheet_part()

void test_datasheet_part ( void )
static

Definition at line 41 of file test_emmc_card.c.

References CHECK, datasheet_cid(), datasheet_ext_csd(), emmc_card_check(), EMMC_CARD_OK, emmc_card_parse(), and info.

Referenced by main().

◆ test_each_issue()