WPILibC++ 2027.0.0-alpha-2
Loading...
Searching...
No Matches
AddressableLEDData.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
8#include "hal/Types.h"
10
11#ifdef __cplusplus
12extern "C" {
13#endif
14
16
18 int32_t index, HAL_NotifyCallback callback, void* param,
19 HAL_Bool initialNotify);
23
25 HAL_NotifyCallback callback,
26 void* param,
27 HAL_Bool initialNotify);
30void HALSIM_SetAddressableLEDStart(int32_t index, int32_t start);
31
33 HAL_NotifyCallback callback,
34 void* param,
35 HAL_Bool initialNotify);
38void HALSIM_SetAddressableLEDLength(int32_t index, int32_t length);
39
41 HAL_ConstBufferCallback callback, void* param);
43int32_t HALSIM_GetAddressableLEDData(int32_t start, int32_t length,
44 struct HAL_AddressableLEDData* data);
45void HALSIM_SetAddressableLEDData(int32_t start, int32_t length,
46 const struct HAL_AddressableLEDData* data);
47
49 HAL_NotifyCallback callback,
50 void* param,
51 HAL_Bool initialNotify);
52
53#ifdef __cplusplus
54} // extern "C"
55#endif
int32_t HALSIM_RegisterAddressableLEDDataCallback(HAL_ConstBufferCallback callback, void *param)
HAL_Bool HALSIM_GetAddressableLEDInitialized(int32_t index)
int32_t HALSIM_GetAddressableLEDData(int32_t start, int32_t length, struct HAL_AddressableLEDData *data)
void HALSIM_RegisterAddressableLEDAllCallbacks(int32_t index, HAL_NotifyCallback callback, void *param, HAL_Bool initialNotify)
void HALSIM_CancelAddressableLEDDataCallback(int32_t uid)
void HALSIM_CancelAddressableLEDLengthCallback(int32_t index, int32_t uid)
void HALSIM_CancelAddressableLEDInitializedCallback(int32_t index, int32_t uid)
int32_t HALSIM_RegisterAddressableLEDInitializedCallback(int32_t index, HAL_NotifyCallback callback, void *param, HAL_Bool initialNotify)
void HALSIM_SetAddressableLEDData(int32_t start, int32_t length, const struct HAL_AddressableLEDData *data)
int32_t HALSIM_RegisterAddressableLEDLengthCallback(int32_t index, HAL_NotifyCallback callback, void *param, HAL_Bool initialNotify)
int32_t HALSIM_RegisterAddressableLEDStartCallback(int32_t index, HAL_NotifyCallback callback, void *param, HAL_Bool initialNotify)
void HALSIM_ResetAddressableLEDData(int32_t index)
void HALSIM_SetAddressableLEDStart(int32_t index, int32_t start)
int32_t HALSIM_GetAddressableLEDStart(int32_t index)
int32_t HALSIM_GetAddressableLEDLength(int32_t index)
void HALSIM_SetAddressableLEDInitialized(int32_t index, HAL_Bool initialized)
void HALSIM_SetAddressableLEDLength(int32_t index, int32_t length)
void HALSIM_CancelAddressableLEDStartCallback(int32_t index, int32_t uid)
void(* HAL_NotifyCallback)(const char *name, void *param, const struct HAL_Value *value)
Definition NotifyListener.h:9
void(* HAL_ConstBufferCallback)(const char *name, void *param, const unsigned char *buffer, unsigned int count)
Definition NotifyListener.h:15
int32_t HAL_Bool
Definition Types.h:73
structure for holding one LED's color data.
Definition AddressableLEDTypes.h:14