[hal] Add GetTeamNumber (#5596)

This commit is contained in:
Ryan Blue
2023-09-02 02:34:18 -04:00
committed by GitHub
parent a750bee54d
commit ac23f92451
19 changed files with 259 additions and 0 deletions

View File

@@ -461,6 +461,31 @@ class RoboRioSim {
*/
static void SetCPUTemp(units::celsius_t cpuTemp);
/**
* Register a callback to be run whenever the team number changes.
*
* @param callback the callback
* @param initialNotify whether to call the callback with the initial state
* @return the CallbackStore object associated with this callback
*/
[[nodiscard]]
static std::unique_ptr<CallbackStore> RegisterTeamNumberCallback(
NotifyCallback callback, bool initialNotify);
/**
* Get the team number.
*
* @return the team number.
*/
static int32_t GetTeamNumber();
/**
* Set the team number.
*
* @param teamNumber the new team number.
*/
static void SetTeamNumber(int32_t teamNumber);
/**
* Get the serial number.
*