WPILibC++ 2024.3.2
SPIAccelerometerData.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/Types.h"
9
10#ifdef __cplusplus
11extern "C" {
12#endif
13
16 int32_t index, HAL_NotifyCallback callback, void* param,
17 HAL_Bool initialNotify);
18void HALSIM_CancelSPIAccelerometerActiveCallback(int32_t index, int32_t uid);
20void HALSIM_SetSPIAccelerometerActive(int32_t index, HAL_Bool active);
21
23 int32_t index, HAL_NotifyCallback callback, void* param,
24 HAL_Bool initialNotify);
25void HALSIM_CancelSPIAccelerometerRangeCallback(int32_t index, int32_t uid);
26int32_t HALSIM_GetSPIAccelerometerRange(int32_t index);
27void HALSIM_SetSPIAccelerometerRange(int32_t index, int32_t range);
28
30 HAL_NotifyCallback callback,
31 void* param,
32 HAL_Bool initialNotify);
33void HALSIM_CancelSPIAccelerometerXCallback(int32_t index, int32_t uid);
34double HALSIM_GetSPIAccelerometerX(int32_t index);
35void HALSIM_SetSPIAccelerometerX(int32_t index, double x);
36
38 HAL_NotifyCallback callback,
39 void* param,
40 HAL_Bool initialNotify);
41void HALSIM_CancelSPIAccelerometerYCallback(int32_t index, int32_t uid);
42double HALSIM_GetSPIAccelerometerY(int32_t index);
43void HALSIM_SetSPIAccelerometerY(int32_t index, double y);
44
46 HAL_NotifyCallback callback,
47 void* param,
48 HAL_Bool initialNotify);
49void HALSIM_CancelSPIAccelerometerZCallback(int32_t index, int32_t uid);
50double HALSIM_GetSPIAccelerometerZ(int32_t index);
51void HALSIM_SetSPIAccelerometerZ(int32_t index, double z);
52
54 HAL_NotifyCallback callback,
55 void* param,
56 HAL_Bool initialNotify);
57
58#ifdef __cplusplus
59} // extern "C"
60#endif
void(* HAL_NotifyCallback)(const char *name, void *param, const struct HAL_Value *value)
Definition: NotifyListener.h:9
double HALSIM_GetSPIAccelerometerX(int32_t index)
void HALSIM_SetSPIAccelerometerX(int32_t index, double x)
int32_t HALSIM_RegisterSPIAccelerometerZCallback(int32_t index, HAL_NotifyCallback callback, void *param, HAL_Bool initialNotify)
void HALSIM_CancelSPIAccelerometerRangeCallback(int32_t index, int32_t uid)
int32_t HALSIM_RegisterSPIAccelerometerYCallback(int32_t index, HAL_NotifyCallback callback, void *param, HAL_Bool initialNotify)
void HALSIM_CancelSPIAccelerometerActiveCallback(int32_t index, int32_t uid)
double HALSIM_GetSPIAccelerometerZ(int32_t index)
void HALSIM_CancelSPIAccelerometerXCallback(int32_t index, int32_t uid)
void HALSIM_RegisterSPIAccelerometerAllCallbcaks(int32_t index, HAL_NotifyCallback callback, void *param, HAL_Bool initialNotify)
double HALSIM_GetSPIAccelerometerY(int32_t index)
int32_t HALSIM_RegisterSPIAccelerometerRangeCallback(int32_t index, HAL_NotifyCallback callback, void *param, HAL_Bool initialNotify)
void HALSIM_SetSPIAccelerometerActive(int32_t index, HAL_Bool active)
int32_t HALSIM_RegisterSPIAccelerometerActiveCallback(int32_t index, HAL_NotifyCallback callback, void *param, HAL_Bool initialNotify)
void HALSIM_CancelSPIAccelerometerZCallback(int32_t index, int32_t uid)
int32_t HALSIM_GetSPIAccelerometerRange(int32_t index)
void HALSIM_SetSPIAccelerometerY(int32_t index, double y)
void HALSIM_ResetSPIAccelerometerData(int32_t index)
void HALSIM_CancelSPIAccelerometerYCallback(int32_t index, int32_t uid)
void HALSIM_SetSPIAccelerometerZ(int32_t index, double z)
void HALSIM_SetSPIAccelerometerRange(int32_t index, int32_t range)
HAL_Bool HALSIM_GetSPIAccelerometerActive(int32_t index)
int32_t HALSIM_RegisterSPIAccelerometerXCallback(int32_t index, HAL_NotifyCallback callback, void *param, HAL_Bool initialNotify)
int32_t HAL_Bool
Definition: Types.h:73