WPILibC++ 2024.3.2
AnalogTrigger.h File Reference
#include <stdint.h>
#include "hal/Types.h"

Go to the source code of this file.

Enumerations

enum  HAL_AnalogTriggerType : int32_t { HAL_Trigger_kInWindow = 0 , HAL_Trigger_kState = 1 , HAL_Trigger_kRisingPulse = 2 , HAL_Trigger_kFallingPulse = 3 }
 The type of analog trigger to trigger on. More...
 

Functions

HAL_AnalogTriggerHandle HAL_InitializeAnalogTrigger (HAL_AnalogInputHandle portHandle, int32_t *status)
 Initializes an analog trigger. More...
 
HAL_AnalogTriggerHandle HAL_InitializeAnalogTriggerDutyCycle (HAL_DutyCycleHandle dutyCycleHandle, int32_t *status)
 Initializes an analog trigger with a Duty Cycle input. More...
 
void HAL_CleanAnalogTrigger (HAL_AnalogTriggerHandle analogTriggerHandle, int32_t *status)
 Frees an analog trigger. More...
 
void HAL_SetAnalogTriggerLimitsRaw (HAL_AnalogTriggerHandle analogTriggerHandle, int32_t lower, int32_t upper, int32_t *status)
 Sets the raw ADC upper and lower limits of the analog trigger. More...
 
void HAL_SetAnalogTriggerLimitsVoltage (HAL_AnalogTriggerHandle analogTriggerHandle, double lower, double upper, int32_t *status)
 Sets the upper and lower limits of the analog trigger. More...
 
void HAL_SetAnalogTriggerLimitsDutyCycle (HAL_AnalogTriggerHandle analogTriggerHandle, double lower, double upper, int32_t *status)
 Sets the upper and lower limits of the analog trigger. More...
 
void HAL_SetAnalogTriggerAveraged (HAL_AnalogTriggerHandle analogTriggerHandle, HAL_Bool useAveragedValue, int32_t *status)
 Configures the analog trigger to use the averaged vs. More...
 
void HAL_SetAnalogTriggerFiltered (HAL_AnalogTriggerHandle analogTriggerHandle, HAL_Bool useFilteredValue, int32_t *status)
 Configures the analog trigger to use a filtered value. More...
 
HAL_Bool HAL_GetAnalogTriggerInWindow (HAL_AnalogTriggerHandle analogTriggerHandle, int32_t *status)
 Returns the InWindow output of the analog trigger. More...
 
HAL_Bool HAL_GetAnalogTriggerTriggerState (HAL_AnalogTriggerHandle analogTriggerHandle, int32_t *status)
 Returns the TriggerState output of the analog trigger. More...
 
HAL_Bool HAL_GetAnalogTriggerOutput (HAL_AnalogTriggerHandle analogTriggerHandle, HAL_AnalogTriggerType type, int32_t *status)
 Gets the state of the analog trigger output. More...
 
int32_t HAL_GetAnalogTriggerFPGAIndex (HAL_AnalogTriggerHandle analogTriggerHandle, int32_t *status)
 Get the FPGA index for the AnlogTrigger. More...