![]() |
iSensor-SPI-Buffer
1.15
Firmware for the iSensor-SPI-Buffer board to enable full throughput buffered data capture on Analog Devices IMUs
|
Header file for iSensor-SPI-Buffer SD card interfacing and script execution module. More...
#include <stdint.h>
#include "stm32f3xx_hal.h"
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 |
Header file for iSensor-SPI-Buffer SD card interfacing and script execution module.
Copyright (c) Analog Devices Inc, 2020 All Rights Reserved.
#define INVALID_LOOP_INDEX 0xFFFFFFFF |
Invalid loop index constant (used in parsing)
#define SCR_MOUNT_ERROR (1 << 1) |
FAT drive mount failure
#define SCR_NO_SD (1 << 0) |
No SD card detected
#define SCR_PARSE_INVALID_ARGS (1 << 5) |
Valid command with bad arguments provided in script.txt
#define SCR_PARSE_INVALID_CMD (1 << 4) |
Invalid command provided in script.txt
#define SCR_PARSE_INVALID_LOOP (1 << 6) |
Invalid loop parameters
#define SCR_RESULT_OPEN_ERROR (1 << 3) |
result.txt failed to open for write
#define SCR_SCRIPT_OPEN_ERROR (1 << 2) |
script.txt does not exist failed to open for read
#define SCR_WRITE_FAIL (1 << 7) |
SD card write failure occurred during script run
#define SCRIPT_MAX_ENTRIES 64 |
Maximum script file size supported
|
extern |
SPI handle for SD card master port (global scope)