mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-23 01:21:42 +00:00
Add HAL Documentation (#1132)
This commit is contained in:
committed by
Peter Johnson
parent
de5d7d3c17
commit
59e8b60267
@@ -16,22 +16,43 @@ extern "C" {
|
||||
#endif
|
||||
|
||||
/**
|
||||
* Initialize the analog output port using the given port object.
|
||||
* Initializes the analog output port using the given port object.
|
||||
*
|
||||
* @param handle handle to the port
|
||||
* @return the created analog output handle
|
||||
*/
|
||||
HAL_AnalogOutputHandle HAL_InitializeAnalogOutputPort(HAL_PortHandle portHandle,
|
||||
int32_t* status);
|
||||
|
||||
/**
|
||||
* Frees an analog output port.
|
||||
*
|
||||
* @param analogOutputHandle the analog output handle
|
||||
*/
|
||||
void HAL_FreeAnalogOutputPort(HAL_AnalogOutputHandle analogOutputHandle);
|
||||
|
||||
/**
|
||||
* Sets an analog output value.
|
||||
*
|
||||
* @param analogOutputHandle the analog output handle
|
||||
* @param voltage the voltage (0-5v) to output
|
||||
*/
|
||||
void HAL_SetAnalogOutput(HAL_AnalogOutputHandle analogOutputHandle,
|
||||
double voltage, int32_t* status);
|
||||
|
||||
/**
|
||||
* Gets the current analog output value.
|
||||
*
|
||||
* @param analogOutputHandle the analog output handle
|
||||
* @return the current output voltage (0-5v)
|
||||
*/
|
||||
double HAL_GetAnalogOutput(HAL_AnalogOutputHandle analogOutputHandle,
|
||||
int32_t* status);
|
||||
|
||||
/**
|
||||
* Check that the analog output channel number is value.
|
||||
* Verify that the analog channel number is one of the legal channel numbers.
|
||||
* Checks that the analog output channel number is value.
|
||||
*
|
||||
* Verifies that the analog channel number is one of the legal channel numbers.
|
||||
* Channel numbers are 0-based.
|
||||
*
|
||||
* @return Analog channel is valid
|
||||
|
||||
Reference in New Issue
Block a user