iSensor-SPI-Buffer  1.15
Firmware for the iSensor-SPI-Buffer board to enable full throughput buffered data capture on Analog Devices IMUs
Macros | Variables
sd_card.h File Reference

Header file for iSensor-SPI-Buffer SD card interfacing and script execution module. More...

#include <stdint.h>
#include "stm32f3xx_hal.h"
Include dependency graph for sd_card.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define SCRIPT_MAX_ENTRIES   64
 
#define INVALID_LOOP_INDEX   0xFFFFFFFF
 
#define SCR_NO_SD   (1 << 0)
 
#define SCR_MOUNT_ERROR   (1 << 1)
 
#define SCR_SCRIPT_OPEN_ERROR   (1 << 2)
 
#define SCR_RESULT_OPEN_ERROR   (1 << 3)
 
#define SCR_PARSE_INVALID_CMD   (1 << 4)
 
#define SCR_PARSE_INVALID_ARGS   (1 << 5)
 
#define SCR_PARSE_INVALID_LOOP   (1 << 6)
 
#define SCR_WRITE_FAIL   (1 << 7)
 

Variables

SPI_HandleTypeDef g_spi3
 

Detailed Description

Header file for iSensor-SPI-Buffer SD card interfacing and script execution module.

Copyright (c) Analog Devices Inc, 2020 All Rights Reserved.

Date
7/28/2020
Author
A. Nolan (alex..nosp@m.nola.nosp@m.n@ana.nosp@m.log..nosp@m.com)

Macro Definition Documentation

◆ INVALID_LOOP_INDEX

#define INVALID_LOOP_INDEX   0xFFFFFFFF

Invalid loop index constant (used in parsing)

◆ SCR_MOUNT_ERROR

#define SCR_MOUNT_ERROR   (1 << 1)

FAT drive mount failure

◆ SCR_NO_SD

#define SCR_NO_SD   (1 << 0)

No SD card detected

◆ SCR_PARSE_INVALID_ARGS

#define SCR_PARSE_INVALID_ARGS   (1 << 5)

Valid command with bad arguments provided in script.txt

◆ SCR_PARSE_INVALID_CMD

#define SCR_PARSE_INVALID_CMD   (1 << 4)

Invalid command provided in script.txt

◆ SCR_PARSE_INVALID_LOOP

#define SCR_PARSE_INVALID_LOOP   (1 << 6)

Invalid loop parameters

◆ SCR_RESULT_OPEN_ERROR

#define SCR_RESULT_OPEN_ERROR   (1 << 3)

result.txt failed to open for write

◆ SCR_SCRIPT_OPEN_ERROR

#define SCR_SCRIPT_OPEN_ERROR   (1 << 2)

script.txt does not exist failed to open for read

◆ SCR_WRITE_FAIL

#define SCR_WRITE_FAIL   (1 << 7)

SD card write failure occurred during script run

◆ SCRIPT_MAX_ENTRIES

#define SCRIPT_MAX_ENTRIES   64

Maximum script file size supported

Variable Documentation

◆ g_spi3

SPI_HandleTypeDef g_spi3
extern

SPI handle for SD card master port (global scope)