![]() |
WPILibC++ 2027.0.0-alpha-5
|
Go to the source code of this file.
Functions | |
| HAL_AnalogInputHandle | HAL_InitializeAnalogInputPort (int32_t channel, const char *allocationLocation, int32_t *status) |
| Initializes the analog input port using the given port object. | |
| void | HAL_FreeAnalogInputPort (HAL_AnalogInputHandle analogPortHandle) |
| Frees an analog input port. | |
| HAL_Bool | HAL_CheckAnalogModule (int32_t module) |
| Checks that the analog module number is valid. | |
| HAL_Bool | HAL_CheckAnalogInputChannel (int32_t channel) |
| Checks that the analog output channel number is valid. | |
| void | HAL_SetAnalogInputSimDevice (HAL_AnalogInputHandle handle, HAL_SimDeviceHandle device) |
| Indicates the analog input is used by a simulated device. | |
| int32_t | HAL_GetAnalogValue (HAL_AnalogInputHandle analogPortHandle, int32_t *status) |
| Gets a sample straight from the channel on this module. | |
| int32_t | HAL_GetAnalogVoltsToValue (HAL_AnalogInputHandle analogPortHandle, double voltage, int32_t *status) |
| Converts a voltage to a raw value for a specified channel. | |
| double | HAL_GetAnalogVoltage (HAL_AnalogInputHandle analogPortHandle, int32_t *status) |
| Gets a scaled sample straight from the channel on this module. | |
| double | HAL_GetAnalogValueToVolts (HAL_AnalogInputHandle analogPortHandle, int32_t rawValue, int32_t *status) |
| Get the analog voltage from a raw value. | |