 |
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.
18 #ifndef HELPERFUNCTIONS_H_
19 #define HELPERFUNCTIONS_H_
40 void AdiSendStatus(uint32_t status, uint16_t count, CyBool_t isControlEndpoint);
static CyU3PTimer WatchdogTimer
Definition: HelperFunctions.c:34
void AdiReturnBulkEndpointData(CyU3PReturnStatus_t status, uint16_t length)
Sends a function result to the PC via the ChannelToPC endpoint.
Definition: HelperFunctions.c:49
BoardState FX3State
Definition: main.c:112
CyU3PDmaBuffer_t ManualDMABuffer
Definition: main.c:92
@ On3_3Volts
Definition: HelperFunctions.h:31
@ Off
Definition: HelperFunctions.h:28
CyBool_t WatchDogEnabled
Definition: main.h:177
void AdiGetBuildDate(uint8_t *outBuf)
Gets the firmware build date, followed by the build time.
Definition: HelperFunctions.c:158
CyU3PDmaChannel ChannelToPC
Definition: main.c:76
@ On5_0Volts
Definition: HelperFunctions.h:34
void AdiGetBuildDate(uint8_t *outBuf)
Gets the firmware build date, followed by the build time.
Definition: HelperFunctions.c:158
Header file for a set of general purpose iSensor FX3 helper functions.
DutVoltage
Definition: HelperFunctions.h:26
CyU3PReturnStatus_t AdiSleepForMicroSeconds(uint32_t numMicroSeconds)
This function blocks thread execution for a specified number of microseconds.
Definition: HelperFunctions.c:73
@ HelperFunctions_c
Definition: ErrorLog.h:69
#define ADI_5V_EN
Definition: PinFunctions.h:79
Struct to store the current board state (SPI config, USB speed, etc)
Definition: main.h:148
#define ADI_3_3V_EN
Definition: PinFunctions.h:76
void AdiConfigureWatchdog()
Configures the FX3 watchdog timer based on the current board state.
Definition: HelperFunctions.c:227
CyU3PReturnStatus_t AdiSetDutSupply(DutVoltage SupplyMode)
This function configures the DUT supply voltage.
Definition: HelperFunctions.c:94
void AdiSendStatus(uint32_t status, uint16_t count, CyBool_t isControlEndpoint)
Sends status back to PC over control endpoint or manual bulk in endpoint.
Definition: HelperFunctions.c:191
uint32_t WatchDogTicks
Definition: main.h:183
#define UNUSED(x)
Definition: main.h:447
CyU3PReturnStatus_t AdiSleepForMicroSeconds(uint32_t numMicroSeconds)
This function blocks thread execution for a specified number of microseconds.
Definition: HelperFunctions.c:73
uint32_t WatchDogPeriodMs
Definition: main.h:180
Main header file for the Analog Devices iSensor FX3 Demonstration Platform firmware.
CyU3PReturnStatus_t AdiSetDutSupply(DutVoltage SupplyMode)
This function configures the DUT supply voltage.
Definition: HelperFunctions.c:94
void AdiSendStatus(uint32_t status, uint16_t count, CyBool_t isControlEndpoint)
Sends status back to PC over control endpoint or manual bulk in endpoint.
Definition: HelperFunctions.c:191
void AdiConfigureWatchdog()
Configures the FX3 watchdog timer based on the current board state.
Definition: HelperFunctions.c:227
void AdiLogError(FileIdentifier File, uint32_t Line, uint32_t ErrorCode)
Logs a firmware error to flash memory for later examination.
Definition: ErrorLog.c:51
void AdiReturnBulkEndpointData(CyU3PReturnStatus_t status, uint16_t length)
Sends a function result to the PC via the ChannelToPC endpoint.
Definition: HelperFunctions.c:49
static void WatchDogTimerCb(uint32_t nParam)
Timer callback function to clear the watchdog timer. Should not be called directly.
Definition: HelperFunctions.c:280