WPILibC++ 2024.3.2
RoboRioData.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 <cstddef>
8
9#include "hal/LEDs.h"
10#include "hal/Types.h"
12
13typedef void (*HAL_RoboRioStringCallback)(const char* name, void* param,
14 const char* str, size_t size);
15
16#ifdef __cplusplus
17extern "C" {
18#endif
19
22 void* param,
23 HAL_Bool initialNotify);
27
29 void* param,
30 HAL_Bool initialNotify);
33void HALSIM_SetRoboRioVInVoltage(double vInVoltage);
34
36 void* param,
37 HAL_Bool initialNotify);
40void HALSIM_SetRoboRioVInCurrent(double vInCurrent);
41
43 void* param,
44 HAL_Bool initialNotify);
47void HALSIM_SetRoboRioUserVoltage6V(double userVoltage6V);
48
50 void* param,
51 HAL_Bool initialNotify);
54void HALSIM_SetRoboRioUserCurrent6V(double userCurrent6V);
55
57 void* param,
58 HAL_Bool initialNotify);
62
64 void* param,
65 HAL_Bool initialNotify);
68void HALSIM_SetRoboRioUserVoltage5V(double userVoltage5V);
69
71 void* param,
72 HAL_Bool initialNotify);
75void HALSIM_SetRoboRioUserCurrent5V(double userCurrent5V);
76
78 void* param,
79 HAL_Bool initialNotify);
83
85 HAL_NotifyCallback callback, void* param, HAL_Bool initialNotify);
88void HALSIM_SetRoboRioUserVoltage3V3(double userVoltage3V3);
89
91 HAL_NotifyCallback callback, void* param, HAL_Bool initialNotify);
94void HALSIM_SetRoboRioUserCurrent3V3(double userCurrent3V3);
95
97 void* param,
98 HAL_Bool initialNotify);
102
104 void* param,
105 HAL_Bool initialNotify);
108void HALSIM_SetRoboRioUserFaults6V(int32_t userFaults6V);
109
111 void* param,
112 HAL_Bool initialNotify);
115void HALSIM_SetRoboRioUserFaults5V(int32_t userFaults5V);
116
118 void* param,
119 HAL_Bool initialNotify);
122void HALSIM_SetRoboRioUserFaults3V3(int32_t userFaults3V3);
123
125 HAL_NotifyCallback callback, void* param, HAL_Bool initialNotify);
128void HALSIM_SetRoboRioBrownoutVoltage(double brownoutVoltage);
129
131 void* param,
132 HAL_Bool initialNotify);
135void HALSIM_SetRoboRioTeamNumber(int32_t teamNumber);
136
138 HAL_RoboRioStringCallback callback, void* param, HAL_Bool initialNotify);
140size_t HALSIM_GetRoboRioSerialNumber(char* buffer, size_t size);
141void HALSIM_SetRoboRioSerialNumber(const char* serialNumber, size_t size);
142
144 HAL_RoboRioStringCallback callback, void* param, HAL_Bool initialNotify);
146size_t HALSIM_GetRoboRioComments(char* buffer, size_t size);
147void HALSIM_SetRoboRioComments(const char* comments, size_t size);
148
150 void* param,
151 HAL_Bool initialNotify);
154void HALSIM_SetRoboRioCPUTemp(double cpuTemp);
155
157 void* param,
158 HAL_Bool initialNotify);
162
164 void* param, HAL_Bool initialNotify);
165#ifdef __cplusplus
166} // extern "C"
167#endif
HAL_RadioLEDState
Definition: LEDs.h:8
void(* HAL_NotifyCallback)(const char *name, void *param, const struct HAL_Value *value)
Definition: NotifyListener.h:9
void HALSIM_CancelRoboRioSerialNumberCallback(int32_t uid)
void HALSIM_SetRoboRioComments(const char *comments, size_t size)
void HALSIM_SetRoboRioUserActive3V3(HAL_Bool userActive3V3)
void HALSIM_CancelRoboRioUserFaults3V3Callback(int32_t uid)
void HALSIM_SetRoboRioVInCurrent(double vInCurrent)
void HALSIM_SetRoboRioFPGAButton(HAL_Bool fPGAButton)
int32_t HALSIM_RegisterRoboRioUserCurrent3V3Callback(HAL_NotifyCallback callback, void *param, HAL_Bool initialNotify)
void HALSIM_CancelRoboRioCommentsCallback(int32_t uid)
int32_t HALSIM_RegisterRoboRioUserFaults6VCallback(HAL_NotifyCallback callback, void *param, HAL_Bool initialNotify)
int32_t HALSIM_RegisterRoboRioUserVoltage6VCallback(HAL_NotifyCallback callback, void *param, HAL_Bool initialNotify)
void HALSIM_CancelRoboRioUserVoltage5VCallback(int32_t uid)
double HALSIM_GetRoboRioUserCurrent3V3(void)
void HALSIM_CancelRoboRioUserVoltage3V3Callback(int32_t uid)
void HALSIM_SetRoboRioBrownoutVoltage(double brownoutVoltage)
void HALSIM_CancelRoboRioCPUTempCallback(int32_t uid)
void HALSIM_SetRoboRioUserVoltage3V3(double userVoltage3V3)
void HALSIM_CancelRoboRioVInCurrentCallback(int32_t uid)
void HALSIM_CancelRoboRioUserActive6VCallback(int32_t uid)
void HALSIM_SetRoboRioTeamNumber(int32_t teamNumber)
HAL_RadioLEDState HALSIM_GetRoboRioRadioLEDState(void)
void HALSIM_SetRoboRioCPUTemp(double cpuTemp)
HAL_Bool HALSIM_GetRoboRioUserActive3V3(void)
size_t HALSIM_GetRoboRioSerialNumber(char *buffer, size_t size)
HAL_Bool HALSIM_GetRoboRioUserActive6V(void)
void HALSIM_SetRoboRioUserCurrent6V(double userCurrent6V)
void HALSIM_CancelRoboRioUserVoltage6VCallback(int32_t uid)
void HALSIM_SetRoboRioRadioLEDState(HAL_RadioLEDState state)
void HALSIM_SetRoboRioUserVoltage5V(double userVoltage5V)
void HALSIM_SetRoboRioUserFaults3V3(int32_t userFaults3V3)
void HALSIM_CancelRoboRioBrownoutVoltageCallback(int32_t uid)
void HALSIM_ResetRoboRioData(void)
void HALSIM_SetRoboRioUserActive5V(HAL_Bool userActive5V)
void HALSIM_CancelRoboRioFPGAButtonCallback(int32_t uid)
int32_t HALSIM_RegisterRoboRioCommentsCallback(HAL_RoboRioStringCallback callback, void *param, HAL_Bool initialNotify)
void HALSIM_CancelRoboRioUserActive5VCallback(int32_t uid)
double HALSIM_GetRoboRioCPUTemp(void)
int32_t HALSIM_RegisterRoboRioUserActive5VCallback(HAL_NotifyCallback callback, void *param, HAL_Bool initialNotify)
int32_t HALSIM_RegisterRoboRioTeamNumberCallback(HAL_NotifyCallback callback, void *param, HAL_Bool initialNotify)
void HALSIM_SetRoboRioUserVoltage6V(double userVoltage6V)
int32_t HALSIM_RegisterRoboRioVInVoltageCallback(HAL_NotifyCallback callback, void *param, HAL_Bool initialNotify)
void HALSIM_SetRoboRioSerialNumber(const char *serialNumber, size_t size)
void HALSIM_CancelRoboRioUserFaults6VCallback(int32_t uid)
int32_t HALSIM_GetRoboRioUserFaults6V(void)
void HALSIM_CancelRoboRioRadioLEDStateCallback(int32_t uid)
int32_t HALSIM_RegisterRoboRioUserActive3V3Callback(HAL_NotifyCallback callback, void *param, HAL_Bool initialNotify)
HAL_Bool HALSIM_GetRoboRioFPGAButton(void)
void HALSIM_SetRoboRioUserFaults6V(int32_t userFaults6V)
double HALSIM_GetRoboRioUserVoltage6V(void)
double HALSIM_GetRoboRioUserCurrent6V(void)
int32_t HALSIM_RegisterRoboRioCPUTempCallback(HAL_NotifyCallback callback, void *param, HAL_Bool initialNotify)
void HALSIM_RegisterRoboRioAllCallbacks(HAL_NotifyCallback callback, void *param, HAL_Bool initialNotify)
void HALSIM_SetRoboRioUserFaults5V(int32_t userFaults5V)
HAL_Bool HALSIM_GetRoboRioUserActive5V(void)
int32_t HALSIM_RegisterRoboRioUserFaults3V3Callback(HAL_NotifyCallback callback, void *param, HAL_Bool initialNotify)
void HALSIM_CancelRoboRioUserCurrent5VCallback(int32_t uid)
int32_t HALSIM_RegisterRoboRioUserVoltage5VCallback(HAL_NotifyCallback callback, void *param, HAL_Bool initialNotify)
int32_t HALSIM_RegisterRoboRioUserActive6VCallback(HAL_NotifyCallback callback, void *param, HAL_Bool initialNotify)
void HALSIM_CancelRoboRioUserFaults5VCallback(int32_t uid)
double HALSIM_GetRoboRioBrownoutVoltage(void)
int32_t HALSIM_GetRoboRioUserFaults3V3(void)
int32_t HALSIM_RegisterRoboRioUserFaults5VCallback(HAL_NotifyCallback callback, void *param, HAL_Bool initialNotify)
double HALSIM_GetRoboRioUserCurrent5V(void)
int32_t HALSIM_RegisterRoboRioUserVoltage3V3Callback(HAL_NotifyCallback callback, void *param, HAL_Bool initialNotify)
int32_t HALSIM_RegisterRoboRioUserCurrent5VCallback(HAL_NotifyCallback callback, void *param, HAL_Bool initialNotify)
void HALSIM_CancelRoboRioUserActive3V3Callback(int32_t uid)
double HALSIM_GetRoboRioVInCurrent(void)
int32_t HALSIM_GetRoboRioTeamNumber(void)
size_t HALSIM_GetRoboRioComments(char *buffer, size_t size)
void HALSIM_SetRoboRioUserCurrent3V3(double userCurrent3V3)
double HALSIM_GetRoboRioUserVoltage3V3(void)
void HALSIM_SetRoboRioUserCurrent5V(double userCurrent5V)
double HALSIM_GetRoboRioUserVoltage5V(void)
void HALSIM_SetRoboRioUserActive6V(HAL_Bool userActive6V)
void HALSIM_CancelRoboRioTeamNumberCallback(int32_t uid)
double HALSIM_GetRoboRioVInVoltage(void)
int32_t HALSIM_GetRoboRioUserFaults5V(void)
int32_t HALSIM_RegisterRoboRioBrownoutVoltageCallback(HAL_NotifyCallback callback, void *param, HAL_Bool initialNotify)
int32_t HALSIM_RegisterRoboRioSerialNumberCallback(HAL_RoboRioStringCallback callback, void *param, HAL_Bool initialNotify)
int32_t HALSIM_RegisterRoboRioVInCurrentCallback(HAL_NotifyCallback callback, void *param, HAL_Bool initialNotify)
void(* HAL_RoboRioStringCallback)(const char *name, void *param, const char *str, size_t size)
Definition: RoboRioData.h:13
void HALSIM_CancelRoboRioUserCurrent6VCallback(int32_t uid)
void HALSIM_CancelRoboRioUserCurrent3V3Callback(int32_t uid)
int32_t HALSIM_RegisterRoboRioFPGAButtonCallback(HAL_NotifyCallback callback, void *param, HAL_Bool initialNotify)
void HALSIM_CancelRoboRioVInVoltageCallback(int32_t uid)
int32_t HALSIM_RegisterRoboRioRadioLEDStateCallback(HAL_NotifyCallback callback, void *param, HAL_Bool initialNotify)
int32_t HALSIM_RegisterRoboRioUserCurrent6VCallback(HAL_NotifyCallback callback, void *param, HAL_Bool initialNotify)
void HALSIM_SetRoboRioVInVoltage(double vInVoltage)
int32_t HAL_Bool
Definition: Types.h:73
state
Definition: core.h:2271
constexpr const char * name(const T &)