mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-20 00:51:42 +00:00
21 lines
631 B
C++
21 lines
631 B
C++
#pragma once
|
|
|
|
#ifdef __vxworks
|
|
#include <vxWorks.h>
|
|
#else
|
|
#include <stdint.h>
|
|
#endif
|
|
|
|
extern "C"
|
|
{
|
|
void initializePDP(int module);
|
|
double getPDPTemperature(int32_t *status, uint8_t module);
|
|
double getPDPVoltage(int32_t *status, uint8_t module);
|
|
double getPDPChannelCurrent(uint8_t channel, int32_t *status, uint8_t module);
|
|
double getPDPTotalCurrent(int32_t *status, uint8_t module);
|
|
double getPDPTotalPower(int32_t *status, uint8_t module);
|
|
double getPDPTotalEnergy(int32_t *status, uint8_t module);
|
|
void resetPDPTotalEnergy(int32_t *status, uint8_t module);
|
|
void clearPDPStickyFaults(int32_t *status, uint8_t module);
|
|
}
|