WPILibC++ 2025.0.0-alpha-1-14-g3b6f38d
AccelerometerData.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 "hal/Accelerometer.h"
8#include "hal/Types.h"
10
11#ifdef __cplusplus
12extern "C" {
13#endif
14
17 HAL_NotifyCallback callback,
18 void* param,
19 HAL_Bool initialNotify);
20void HALSIM_CancelAccelerometerActiveCallback(int32_t index, int32_t uid);
22void HALSIM_SetAccelerometerActive(int32_t index, HAL_Bool active);
23
25 HAL_NotifyCallback callback,
26 void* param,
27 HAL_Bool initialNotify);
28void HALSIM_CancelAccelerometerRangeCallback(int32_t index, int32_t uid);
31
33 HAL_NotifyCallback callback,
34 void* param,
35 HAL_Bool initialNotify);
36void HALSIM_CancelAccelerometerXCallback(int32_t index, int32_t uid);
37double HALSIM_GetAccelerometerX(int32_t index);
38void HALSIM_SetAccelerometerX(int32_t index, double x);
39
41 HAL_NotifyCallback callback,
42 void* param,
43 HAL_Bool initialNotify);
44void HALSIM_CancelAccelerometerYCallback(int32_t index, int32_t uid);
45double HALSIM_GetAccelerometerY(int32_t index);
46void HALSIM_SetAccelerometerY(int32_t index, double y);
47
49 HAL_NotifyCallback callback,
50 void* param,
51 HAL_Bool initialNotify);
52void HALSIM_CancelAccelerometerZCallback(int32_t index, int32_t uid);
53double HALSIM_GetAccelerometerZ(int32_t index);
54void HALSIM_SetAccelerometerZ(int32_t index, double z);
55
57 HAL_NotifyCallback callback,
58 void* param,
59 HAL_Bool initialNotify);
60
61#ifdef __cplusplus
62} // extern "C"
63#endif
void HALSIM_SetAccelerometerZ(int32_t index, double z)
double HALSIM_GetAccelerometerX(int32_t index)
void HALSIM_SetAccelerometerX(int32_t index, double x)
int32_t HALSIM_RegisterAccelerometerActiveCallback(int32_t index, HAL_NotifyCallback callback, void *param, HAL_Bool initialNotify)
HAL_Bool HALSIM_GetAccelerometerActive(int32_t index)
void HALSIM_CancelAccelerometerZCallback(int32_t index, int32_t uid)
void HALSIM_RegisterAccelerometerAllCallbacks(int32_t index, HAL_NotifyCallback callback, void *param, HAL_Bool initialNotify)
void HALSIM_CancelAccelerometerActiveCallback(int32_t index, int32_t uid)
double HALSIM_GetAccelerometerZ(int32_t index)
int32_t HALSIM_RegisterAccelerometerYCallback(int32_t index, HAL_NotifyCallback callback, void *param, HAL_Bool initialNotify)
void HALSIM_CancelAccelerometerXCallback(int32_t index, int32_t uid)
void HALSIM_SetAccelerometerRange(int32_t index, HAL_AccelerometerRange range)
int32_t HALSIM_RegisterAccelerometerXCallback(int32_t index, HAL_NotifyCallback callback, void *param, HAL_Bool initialNotify)
void HALSIM_CancelAccelerometerYCallback(int32_t index, int32_t uid)
void HALSIM_SetAccelerometerY(int32_t index, double y)
void HALSIM_SetAccelerometerActive(int32_t index, HAL_Bool active)
HAL_AccelerometerRange HALSIM_GetAccelerometerRange(int32_t index)
void HALSIM_ResetAccelerometerData(int32_t index)
double HALSIM_GetAccelerometerY(int32_t index)
int32_t HALSIM_RegisterAccelerometerZCallback(int32_t index, HAL_NotifyCallback callback, void *param, HAL_Bool initialNotify)
void HALSIM_CancelAccelerometerRangeCallback(int32_t index, int32_t uid)
int32_t HALSIM_RegisterAccelerometerRangeCallback(int32_t index, HAL_NotifyCallback callback, void *param, HAL_Bool initialNotify)
void(* HAL_NotifyCallback)(const char *name, void *param, const struct HAL_Value *value)
Definition: NotifyListener.h:9
HAL_AccelerometerRange
The acceptable accelerometer ranges.
Definition: Accelerometer.h:18
int32_t HAL_Bool
Definition: Types.h:73