 |
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
|
Go to the documentation of this file.
29 #define APPTHREAD_STACK (0x0800)
32 #define APPTHREAD_PRIORITY (8)
39 #define ADI_KILL_THREAD_EARLY (1 << 0)
42 #define ADI_RT_STREAM_START (1 << 1)
45 #define ADI_RT_STREAM_STOP (1 << 2)
48 #define ADI_RT_STREAM_DONE (1 << 3)
51 #define ADI_RT_STREAM_ENABLE (1 << 4)
54 #define ADI_GENERIC_STREAM_START (1 << 5)
57 #define ADI_GENERIC_STREAM_STOP (1 << 6)
60 #define ADI_GENERIC_STREAM_DONE (1 << 7)
63 #define ADI_GENERIC_STREAM_ENABLE (1 << 8)
66 #define ADI_BURST_STREAM_START (1 << 9)
69 #define ADI_BURST_STREAM_STOP (1 << 10)
72 #define ADI_BURST_STREAM_DONE (1 << 11)
75 #define ADI_BURST_STREAM_ENABLE (1 << 12)
78 #define ADI_TRANSFER_STREAM_START (1 << 13)
81 #define ADI_TRANSFER_STREAM_STOP (1 << 14)
84 #define ADI_TRANSFER_STREAM_DONE (1 << 15)
87 #define ADI_TRANSFER_STREAM_ENABLE (1 << 16)
90 #define ADI_I2C_STREAM_START (1 << 17)
93 #define ADI_I2C_STREAM_STOP (1 << 18)
96 #define ADI_I2C_STREAM_DONE (1 << 19)
99 #define ADI_I2C_STREAM_ENABLE (1 << 20)
#define ADI_TRANSFER_STREAM_STOP
Definition: AppThread.h:81
void AdiAppThreadEntry(uint32_t input)
This is the entry point for the primary iSensors firmware application thread.
Definition: AppThread.c:272
#define ADI_GENERIC_STREAM_STOP
Definition: AppThread.h:57
CyU3PReturnStatus_t AdiBurstStreamFinished()
Cleans up resources allocated for a IMU burst stream.
Definition: StreamFunctions.c:890
#define ADI_I2C_STREAM_START
Definition: AppThread.h:90
CyU3PReturnStatus_t AdiRealTimeStreamStart()
Starts a real time stream for ADcmXLx021 DUTs.
Definition: StreamFunctions.c:434
#define ADI_RT_STREAM_STOP
Definition: AppThread.h:45
CyU3PReturnStatus_t AdiGenericStreamFinished()
This function cleans up after a generic stream and notifies the host that the cancel operation was su...
Definition: StreamFunctions.c:1068
static void AdiDebugInit()
This function initializes the UART controller to send debug messages.
Definition: AppThread.c:42
#define ADI_BURST_STREAM_DONE
Definition: AppThread.h:72
#define ADI_TRANSFER_STREAM_DONE
Definition: AppThread.h:84
#define ADI_TRANSFER_STREAM_START
Definition: AppThread.h:78
CyU3PEvent EventHandler
Definition: main.c:60
#define ADI_I2C_STREAM_DONE
Definition: AppThread.h:96
#define EFUSE_DIE_ID
Definition: main.h:416
CyBool_t AdiControlEndpointHandler(uint32_t setupdat0, uint32_t setupdat1)
This function handles events generated by the control endpoint. All vendor requests are handled in th...
Definition: main.c:215
CyU3PReturnStatus_t AdiBurstStreamStart()
Starts a burst stream for IMU products.
Definition: StreamFunctions.c:721
#define ADI_BURST_STREAM_STOP
Definition: AppThread.h:69
CyU3PReturnStatus_t AdiStopAnyDataStream()
This function sets a flag to notify the streaming thread that the user requested to cancel streaming.
Definition: StreamFunctions.c:73
CyU3PReturnStatus_t AdiI2CStreamStart()
Starts an I2C read stream.
Definition: StreamFunctions.c:139
#define UNUSED(x)
Definition: main.h:447
#define ADI_RT_STREAM_START
Definition: AppThread.h:42
static void AdiAppInit()
This function initializes the USB module and attaches core event handlers.
Definition: AppThread.c:107
#define ADI_GENERIC_STREAM_DONE
Definition: AppThread.h:60
CyU3PReturnStatus_t AdiTransferStreamFinished()
Cleans up a protocol agnostic transfer stream.
Definition: StreamFunctions.c:414
CyU3PReturnStatus_t AdiI2CStreamFinished()
Cleans up an I2C read stream.
Definition: StreamFunctions.c:220
CyU3PReturnStatus_t AdiTransferStreamStart()
Starts a protocol agnostic SPI transfer stream.
Definition: StreamFunctions.c:256
void AdiUSBEventHandler(CyU3PUsbEventType_t evtype, uint16_t evdata)
This is a callback function to handle generic USB events.
Definition: main.c:698
Main header file for the Analog Devices iSensor FX3 Demonstration Platform firmware.
#define ADI_I2C_STREAM_STOP
Definition: AppThread.h:93
#define ADI_RT_STREAM_DONE
Definition: AppThread.h:48
void AdiAppErrorHandler(CyU3PReturnStatus_t status)
This function handles critical errors generated by the ADI application.
Definition: main.c:801
CyU3PReturnStatus_t AdiRealTimeStreamFinished()
This function cleans up resources allocated for a real time stream.
Definition: StreamFunctions.c:647
#define ADI_GENERIC_STREAM_START
Definition: AppThread.h:54
@ AppThread_c
Definition: ErrorLog.h:45
CyBool_t AdiLPMRequestHandler(CyU3PUsbLinkPowerMode link_mode)
This is a callback function to handle Link Power Management (LPM) requests.
Definition: main.c:736
#define ADI_BURST_STREAM_START
Definition: AppThread.h:66
Header file for all the primary application thread functions.
void AdiAppThreadEntry(uint32_t input)
This is the entry point for the primary iSensors firmware application thread.
Definition: AppThread.c:272
void AdiLogError(FileIdentifier File, uint32_t Line, uint32_t ErrorCode)
Logs a firmware error to flash memory for later examination.
Definition: ErrorLog.c:51
CyU3PReturnStatus_t AdiGenericStreamStart()
Starts a register read/write stream, with options to trigger on a data ready.
Definition: StreamFunctions.c:949