WPILibC++ 2023.4.3-108-ge5452e3
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/Types.h"
11
12typedef void (*HAL_RoboRioStringCallback)(const char* name, void* param,
13 const char* str, size_t size);
14
15#ifdef __cplusplus
16extern "C" {
17#endif
18
21 void* param,
22 HAL_Bool initialNotify);
26
28 void* param,
29 HAL_Bool initialNotify);
32void HALSIM_SetRoboRioVInVoltage(double vInVoltage);
33
35 void* param,
36 HAL_Bool initialNotify);
39void HALSIM_SetRoboRioVInCurrent(double vInCurrent);
40
42 void* param,
43 HAL_Bool initialNotify);
46void HALSIM_SetRoboRioUserVoltage6V(double userVoltage6V);
47
49 void* param,
50 HAL_Bool initialNotify);
53void HALSIM_SetRoboRioUserCurrent6V(double userCurrent6V);
54
56 void* param,
57 HAL_Bool initialNotify);
61
63 void* param,
64 HAL_Bool initialNotify);
67void HALSIM_SetRoboRioUserVoltage5V(double userVoltage5V);
68
70 void* param,
71 HAL_Bool initialNotify);
74void HALSIM_SetRoboRioUserCurrent5V(double userCurrent5V);
75
77 void* param,
78 HAL_Bool initialNotify);
82
84 HAL_NotifyCallback callback, void* param, HAL_Bool initialNotify);
87void HALSIM_SetRoboRioUserVoltage3V3(double userVoltage3V3);
88
90 HAL_NotifyCallback callback, void* param, HAL_Bool initialNotify);
93void HALSIM_SetRoboRioUserCurrent3V3(double userCurrent3V3);
94
96 void* param,
97 HAL_Bool initialNotify);
101
103 void* param,
104 HAL_Bool initialNotify);
108
110 void* param,
111 HAL_Bool initialNotify);
115
117 void* param,
118 HAL_Bool initialNotify);
122
124 HAL_NotifyCallback callback, void* param, HAL_Bool initialNotify);
127void HALSIM_SetRoboRioBrownoutVoltage(double brownoutVoltage);
128
130 HAL_RoboRioStringCallback callback, void* param, HAL_Bool initialNotify);
133void HALSIM_SetRoboRioSerialNumber(const char* serialNumber, size_t size);
134
136 HAL_RoboRioStringCallback callback, void* param, HAL_Bool initialNotify);
139void HALSIM_SetRoboRioComments(const char* comments, size_t size);
140
142 void* param, HAL_Bool initialNotify);
143
144#ifdef __cplusplus
145} // extern "C"
146#endif
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_SetRoboRioUserVoltage3V3(double userVoltage3V3)
void HALSIM_CancelRoboRioVInCurrentCallback(int32_t uid)
void HALSIM_CancelRoboRioUserActive6VCallback(int32_t uid)
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_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)
int32_t HALSIM_RegisterRoboRioUserActive5VCallback(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)
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)
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)
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)
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:12
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_RegisterRoboRioUserCurrent6VCallback(HAL_NotifyCallback callback, void *param, HAL_Bool initialNotify)
void HALSIM_SetRoboRioVInVoltage(double vInVoltage)
\rst A contiguous memory buffer with an optional growing ability.
Definition: core.h:862
int32_t HAL_Bool
Definition: Types.h:73
EIGEN_CONSTEXPR Index size(const T &x)
Definition: Meta.h:479
::int32_t int32_t
Definition: Meta.h:57