mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-07-02 02:51:42 +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,15 +9,18 @@
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
#include "HAL/Types.h"
|
||||
|
||||
extern "C" {
|
||||
void HAL_InitializePDP(uint8_t module);
|
||||
double HAL_GetPDPTemperature(uint8_t module, int32_t* status);
|
||||
double HAL_GetPDPVoltage(uint8_t module, int32_t* status);
|
||||
double HAL_GetPDPChannelCurrent(uint8_t module, uint8_t channel,
|
||||
void HAL_InitializePDP(int32_t module, int32_t* status);
|
||||
HAL_Bool HAL_CheckPDPModule(int32_t module);
|
||||
double HAL_GetPDPTemperature(int32_t module, int32_t* status);
|
||||
double HAL_GetPDPVoltage(int32_t module, int32_t* status);
|
||||
double HAL_GetPDPChannelCurrent(int32_t module, int32_t channel,
|
||||
int32_t* status);
|
||||
double HAL_GetPDPTotalCurrent(uint8_t module, int32_t* status);
|
||||
double HAL_GetPDPTotalPower(uint8_t module, int32_t* status);
|
||||
double HAL_GetPDPTotalEnergy(uint8_t module, int32_t* status);
|
||||
void HAL_ResetPDPTotalEnergy(uint8_t module, int32_t* status);
|
||||
void HAL_ClearPDPStickyFaults(uint8_t module, int32_t* status);
|
||||
double HAL_GetPDPTotalCurrent(int32_t module, int32_t* status);
|
||||
double HAL_GetPDPTotalPower(int32_t module, int32_t* status);
|
||||
double HAL_GetPDPTotalEnergy(int32_t module, int32_t* status);
|
||||
void HAL_ResetPDPTotalEnergy(int32_t module, int32_t* status);
|
||||
void HAL_ClearPDPStickyFaults(int32_t module, int32_t* status);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user