blob: 69bd85ea94523a20b5a3167f0a936cad99f57e17 [file] [log] [blame]
Brian Silvermanf7f267a2017-02-04 16:16:08 -08001/*----------------------------------------------------------------------------*/
2/* Copyright (c) FIRST 2016-2017. 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 "HAL/Types.h"
11
12enum HAL_AccelerometerRange : int32_t {
13 HAL_AccelerometerRange_k2G = 0,
14 HAL_AccelerometerRange_k4G = 1,
15 HAL_AccelerometerRange_k8G = 2,
16};
17
18#ifdef __cplusplus
19extern "C" {
20#endif
21void HAL_SetAccelerometerActive(HAL_Bool active);
22void HAL_SetAccelerometerRange(HAL_AccelerometerRange range);
23double HAL_GetAccelerometerX(void);
24double HAL_GetAccelerometerY(void);
25double HAL_GetAccelerometerZ(void);
26#ifdef __cplusplus
27}
28#endif