WPILibC++
2020.3.2
Main.h
1
/*----------------------------------------------------------------------------*/
2
/* Copyright (c) 2019 FIRST. All Rights Reserved. */
3
/* Open Source Software - may be modified and shared by FRC teams. The code */
4
/* must be accompanied by the FIRST BSD license file in the root directory of */
5
/* the project. */
6
/*----------------------------------------------------------------------------*/
7
8
#pragma once
9
10
#include <stdint.h>
11
12
#include "hal/Types.h"
13
20
#ifdef __cplusplus
21
extern
"C"
{
22
#endif
23
39
void
HAL_SetMain
(
void
* param,
void
(*mainFunc)(
void
*),
void
(*exitFunc)(
void
*));
40
46
HAL_Bool
HAL_HasMain
(
void
);
47
54
void
HAL_RunMain
(
void
);
55
62
void
HAL_ExitMain
(
void
);
63
64
#ifdef __cplusplus
65
}
// extern "C"
66
#endif
67
HAL_ExitMain
void HAL_ExitMain(void)
Causes HAL_RunMain() to exit.
HAL_RunMain
void HAL_RunMain(void)
Runs the main function provided to HAL_SetMain().
HAL_HasMain
HAL_Bool HAL_HasMain(void)
Returns true if HAL_SetMain() has been called.
HAL_SetMain
void HAL_SetMain(void *param, void(*mainFunc)(void *), void(*exitFunc)(void *))
Sets up the system to run the provided main loop in the main thread (e.g.
hal
src
main
native
include
hal
Main.h
Generated on Fri Feb 21 2020 08:50:35 for WPILibC++ by
1.8.16