ADI iSensor FX3 Firmware  v2.9.4-pub
Firmware for the Analog Devices EVAL-ADIS-FX3 IMU Evaluation Platform. This firmware can be compiled using the Cypress EZ USB Suite IDE
StreamThread.h
Go to the documentation of this file.
1 
19 #ifndef STREAM_THREAD_H
20 #define STREAM_THREAD_H
21 
22 /* Include the main header file */
23 #include "main.h"
24 
25 /* Function definitions (thread entry) */
26 void AdiStreamThreadEntry(uint32_t input);
27 
29 #define STREAMTHREAD_STACK (0x0800)
30 
32 #define STREAMTHREAD_PRIORITY (8)
33 
34 #endif
ADI_RT_STREAM_ENABLE
#define ADI_RT_STREAM_ENABLE
Definition: AppThread.h:51
AdiBurstStreamWork
static CyU3PReturnStatus_t AdiBurstStreamWork()
This is the worker function for the burst stream.
Definition: StreamThread.c:455
BoardState::DrActive
CyBool_t DrActive
Definition: main.h:171
ADI_TRANSFER_STREAM_ENABLE
#define ADI_TRANSFER_STREAM_ENABLE
Definition: AppThread.h:87
StreamState::RegList
uint8_t * RegList
Definition: main.h:236
AdiI2CStreamWork
static CyU3PReturnStatus_t AdiI2CStreamWork()
This is the worker function for the I2C read stream.
Definition: StreamThread.c:124
KillStreamEarly
volatile CyBool_t KillStreamEarly
Definition: main.c:119
ADI_BURST_STREAM_DONE
#define ADI_BURST_STREAM_DONE
Definition: AppThread.h:72
MemoryToSPI
CyU3PDmaChannel MemoryToSPI
Definition: main.c:79
ADI_TRANSFER_STREAM_DONE
#define ADI_TRANSFER_STREAM_DONE
Definition: AppThread.h:84
ADI_I2C_STREAM_ENABLE
#define ADI_I2C_STREAM_ENABLE
Definition: AppThread.h:99
AdiSpiTransferWord
void AdiSpiTransferWord(uint8_t *txBuf, uint8_t *rxBuf)
Bi-directional SPI transfer function, in register mode. Optimized for speed.
Definition: SpiFunctions.c:120
EventHandler
CyU3PEvent EventHandler
Definition: main.c:60
ADI_I2C_STREAM_DONE
#define ADI_I2C_STREAM_DONE
Definition: AppThread.h:96
StreamState
Struct to store the current data stream state information.
Definition: main.h:204
StreamState::NumCaptures
uint32_t NumCaptures
Definition: main.h:227
StreamState::NumBuffers
uint32_t NumBuffers
Definition: main.h:230
AdiTransferStreamWork
static CyU3PReturnStatus_t AdiTransferStreamWork()
This is the worker function for the transfer stream.
Definition: StreamThread.c:559
AdiStreamThreadEntry
void AdiStreamThreadEntry(uint32_t input)
The entry point function for the StreamThread. Handles all streaming data captures.
Definition: StreamThread.c:47
StreamState::BytesPerFrame
uint32_t BytesPerFrame
Definition: main.h:206
StreamState::BytesPerBuffer
uint16_t BytesPerBuffer
Definition: main.h:233
BoardState
Struct to store the current board state (SPI config, USB speed, etc)
Definition: main.h:148
UNUSED
#define UNUSED(x)
Definition: main.h:447
StreamingChannel
CyU3PDmaChannel StreamingChannel
Definition: main.c:70
AdiStreamThreadEntry
void AdiStreamThreadEntry(uint32_t input)
The entry point function for the StreamThread. Handles all streaming data captures.
Definition: StreamThread.c:47
StreamState::I2CStreamPreamble
CyU3PI2cPreamble_t I2CStreamPreamble
Definition: main.h:242
ADI_GENERIC_STREAM_DONE
#define ADI_GENERIC_STREAM_DONE
Definition: AppThread.h:60
StreamThreadState
StreamState StreamThreadState
Definition: main.c:122
BoardState::DrPin
uint16_t DrPin
Definition: main.h:168
StreamThread_c
@ StreamThread_c
Definition: ErrorLog.h:48
BoardState::UsbBufferSize
uint16_t UsbBufferSize
Definition: main.h:156
AdiGenericStreamWork
static CyU3PReturnStatus_t AdiGenericStreamWork()
This is the worker function for the generic stream.
Definition: StreamThread.c:181
main.h
Main header file for the Analog Devices iSensor FX3 Demonstration Platform firmware.
ADI_RT_STREAM_DONE
#define ADI_RT_STREAM_DONE
Definition: AppThread.h:48
StreamState::TransferByteLength
uint32_t TransferByteLength
Definition: main.h:221
FX3State
BoardState FX3State
Definition: main.c:112
ADI_TIMER_PIN_INDEX
#define ADI_TIMER_PIN_INDEX
Definition: main.h:381
ADI_BURST_STREAM_ENABLE
#define ADI_BURST_STREAM_ENABLE
Definition: AppThread.h:75
ADI_GENERIC_STREAM_ENABLE
#define ADI_GENERIC_STREAM_ENABLE
Definition: AppThread.h:63
StreamThread.h
Header file for the streaming thread.
SpiDmaBuffer
CyU3PDmaBuffer_t SpiDmaBuffer
Definition: main.c:95
AdiRealTimeStreamWork
static CyU3PReturnStatus_t AdiRealTimeStreamWork()
This is the worker function for the ADcmXL real time stream.
Definition: StreamThread.c:368
StreamState::NumRealTimeCaptures
uint32_t NumRealTimeCaptures
Definition: main.h:215
USBBuffer
uint8_t USBBuffer[4096]
AdiLogError
void AdiLogError(FileIdentifier File, uint32_t Line, uint32_t ErrorCode)
Logs a firmware error to flash memory for later examination.
Definition: ErrorLog.c:51
StreamState::BytesPerUsbPacket
uint16_t BytesPerUsbPacket
Definition: main.h:239