WPILibC++ 2025.0.0-alpha-1-14-g3b6f38d
PowerDistributionData.h
Go to the documentation of this file.
1// Copyright (c) FIRST and other WPILib contributors.
2// Open Source Software; you can modify and/or share it under the terms of
3// the WPILib BSD license file in the root directory of this project.
4
5#pragma once
6
7#include "hal/Types.h"
9
10#ifdef __cplusplus
11extern "C" {
12#endif
13
16 int32_t index, HAL_NotifyCallback callback, void* param,
17 HAL_Bool initialNotify);
19 int32_t uid);
22 HAL_Bool initialized);
23
25 int32_t index, HAL_NotifyCallback callback, void* param,
26 HAL_Bool initialNotify);
28 int32_t uid);
30void HALSIM_SetPowerDistributionTemperature(int32_t index, double temperature);
31
33 int32_t index, HAL_NotifyCallback callback, void* param,
34 HAL_Bool initialNotify);
35void HALSIM_CancelPowerDistributionVoltageCallback(int32_t index, int32_t uid);
37void HALSIM_SetPowerDistributionVoltage(int32_t index, double voltage);
38
40 int32_t index, int32_t channel, HAL_NotifyCallback callback, void* param,
41 HAL_Bool initialNotify);
43 int32_t channel,
44 int32_t uid);
45double HALSIM_GetPowerDistributionCurrent(int32_t index, int32_t channel);
46void HALSIM_SetPowerDistributionCurrent(int32_t index, int32_t channel,
47 double current);
48
49void HALSIM_GetPowerDistributionAllCurrents(int32_t index, double* currents,
50 int length);
52 const double* currents, int length);
53
55 int32_t index, int32_t channel, HAL_NotifyCallback callback, void* param,
56 HAL_Bool initialNotify);
57
58#ifdef __cplusplus
59} // extern "C"
60#endif
void(* HAL_NotifyCallback)(const char *name, void *param, const struct HAL_Value *value)
Definition: NotifyListener.h:9
void HALSIM_CancelPowerDistributionVoltageCallback(int32_t index, int32_t uid)
double HALSIM_GetPowerDistributionVoltage(int32_t index)
HAL_Bool HALSIM_GetPowerDistributionInitialized(int32_t index)
int32_t HALSIM_RegisterPowerDistributionCurrentCallback(int32_t index, int32_t channel, HAL_NotifyCallback callback, void *param, HAL_Bool initialNotify)
void HALSIM_SetPowerDistributionTemperature(int32_t index, double temperature)
void HALSIM_GetPowerDistributionAllCurrents(int32_t index, double *currents, int length)
int32_t HALSIM_RegisterPowerDistributionVoltageCallback(int32_t index, HAL_NotifyCallback callback, void *param, HAL_Bool initialNotify)
void HALSIM_CancelPowerDistributionInitializedCallback(int32_t index, int32_t uid)
void HALSIM_SetPowerDistributionAllCurrents(int32_t index, const double *currents, int length)
void HALSIM_SetPowerDistributionInitialized(int32_t index, HAL_Bool initialized)
void HALSIM_CancelPowerDistributionCurrentCallback(int32_t index, int32_t channel, int32_t uid)
void HALSIM_ResetPowerDistributionData(int32_t index)
void HALSIM_RegisterPowerDistributionAllNonCurrentCallbacks(int32_t index, int32_t channel, HAL_NotifyCallback callback, void *param, HAL_Bool initialNotify)
void HALSIM_SetPowerDistributionVoltage(int32_t index, double voltage)
int32_t HALSIM_RegisterPowerDistributionTemperatureCallback(int32_t index, HAL_NotifyCallback callback, void *param, HAL_Bool initialNotify)
void HALSIM_SetPowerDistributionCurrent(int32_t index, int32_t channel, double current)
int32_t HALSIM_RegisterPowerDistributionInitializedCallback(int32_t index, HAL_NotifyCallback callback, void *param, HAL_Bool initialNotify)
double HALSIM_GetPowerDistributionCurrent(int32_t index, int32_t channel)
void HALSIM_CancelPowerDistributionTemperatureCallback(int32_t index, int32_t uid)
double HALSIM_GetPowerDistributionTemperature(int32_t index)
int32_t HAL_Bool
Definition: Types.h:73
FMT_CONSTEXPR auto length(const Char *s) -> size_t
Definition: base.h:460