mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-30 02:31:44 +00:00
Switches HAL to fixed length signed integers, and adds our own HAL_Bool Type (#155)
* Switches HAL to fixed length signed integers, and adds our own HAL_Bool type * Replaces HAL Floats with Doubles Doubles are just as fast as floats with optimizations turned on, so switches to all doubles. All made doubles for consistency. * Prepends HAL/ to HAL include files. Also fixes some range errors
This commit is contained in:
committed by
Peter Johnson
parent
4a98e68815
commit
b51e85ae26
@@ -9,34 +9,35 @@
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
#include "HAL/Handles.h"
|
||||
#include "HAL/Types.h"
|
||||
|
||||
extern "C" {
|
||||
HAL_CompressorHandle HAL_InitializeCompressor(uint8_t module, int32_t* status);
|
||||
bool HAL_CheckCompressorModule(uint8_t module);
|
||||
HAL_CompressorHandle HAL_InitializeCompressor(int32_t module, int32_t* status);
|
||||
HAL_Bool HAL_CheckCompressorModule(int32_t module);
|
||||
|
||||
bool HAL_GetCompressor(HAL_CompressorHandle compressor_handle, int32_t* status);
|
||||
HAL_Bool HAL_GetCompressor(HAL_CompressorHandle compressor_handle,
|
||||
int32_t* status);
|
||||
|
||||
void HAL_SetCompressorClosedLoopControl(HAL_CompressorHandle compressor_handle,
|
||||
bool value, int32_t* status);
|
||||
bool HAL_GetCompressorClosedLoopControl(HAL_CompressorHandle compressor_handle,
|
||||
int32_t* status);
|
||||
|
||||
bool HAL_GetCompressorPressureSwitch(HAL_CompressorHandle compressor_handle,
|
||||
int32_t* status);
|
||||
float HAL_GetCompressorCurrent(HAL_CompressorHandle compressor_handle,
|
||||
int32_t* status);
|
||||
|
||||
bool HAL_GetCompressorCurrentTooHighFault(
|
||||
HAL_Bool value, int32_t* status);
|
||||
HAL_Bool HAL_GetCompressorClosedLoopControl(
|
||||
HAL_CompressorHandle compressor_handle, int32_t* status);
|
||||
bool HAL_GetCompressorCurrentTooHighStickyFault(
|
||||
HAL_CompressorHandle compressor_handle, int32_t* status);
|
||||
bool HAL_GetCompressorShortedStickyFault(HAL_CompressorHandle compressor_handle,
|
||||
|
||||
HAL_Bool HAL_GetCompressorPressureSwitch(HAL_CompressorHandle compressor_handle,
|
||||
int32_t* status);
|
||||
bool HAL_GetCompressorShortedFault(HAL_CompressorHandle compressor_handle,
|
||||
int32_t* status);
|
||||
bool HAL_GetCompressorNotConnectedStickyFault(
|
||||
double HAL_GetCompressorCurrent(HAL_CompressorHandle compressor_handle,
|
||||
int32_t* status);
|
||||
|
||||
HAL_Bool HAL_GetCompressorCurrentTooHighFault(
|
||||
HAL_CompressorHandle compressor_handle, int32_t* status);
|
||||
HAL_Bool HAL_GetCompressorCurrentTooHighStickyFault(
|
||||
HAL_CompressorHandle compressor_handle, int32_t* status);
|
||||
HAL_Bool HAL_GetCompressorShortedStickyFault(
|
||||
HAL_CompressorHandle compressor_handle, int32_t* status);
|
||||
HAL_Bool HAL_GetCompressorShortedFault(HAL_CompressorHandle compressor_handle,
|
||||
int32_t* status);
|
||||
HAL_Bool HAL_GetCompressorNotConnectedStickyFault(
|
||||
HAL_CompressorHandle compressor_handle, int32_t* status);
|
||||
HAL_Bool HAL_GetCompressorNotConnectedFault(
|
||||
HAL_CompressorHandle compressor_handle, int32_t* status);
|
||||
bool HAL_GetCompressorNotConnectedFault(HAL_CompressorHandle compressor_handle,
|
||||
int32_t* status);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user