WPILibC++ 2025.0.0-alpha-1-14-g3b6f38d
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
15int32_t HALSIM_FindAddressableLEDForChannel(int32_t channel);
16
18
20 int32_t index, HAL_NotifyCallback callback, void* param,
21 HAL_Bool initialNotify);
22void HALSIM_CancelAddressableLEDInitializedCallback(int32_t index, int32_t uid);
24void HALSIM_SetAddressableLEDInitialized(int32_t index, HAL_Bool initialized);
25
27 int32_t index, HAL_NotifyCallback callback, void* param,
28 HAL_Bool initialNotify);
29void HALSIM_CancelAddressableLEDOutputPortCallback(int32_t index, int32_t uid);
31void HALSIM_SetAddressableLEDOutputPort(int32_t index, int32_t outputPort);
32
34 HAL_NotifyCallback callback,
35 void* param,
36 HAL_Bool initialNotify);
37void HALSIM_CancelAddressableLEDLengthCallback(int32_t index, int32_t uid);
38int32_t HALSIM_GetAddressableLEDLength(int32_t index);
39void HALSIM_SetAddressableLEDLength(int32_t index, int32_t length);
40
42 int32_t index, HAL_NotifyCallback callback, void* param,
43 HAL_Bool initialNotify);
44void HALSIM_CancelAddressableLEDRunningCallback(int32_t index, int32_t uid);
46void HALSIM_SetAddressableLEDRunning(int32_t index, HAL_Bool running);
47
49 int32_t index, HAL_ConstBufferCallback callback, void* param);
50void HALSIM_CancelAddressableLEDDataCallback(int32_t index, int32_t uid);
51int32_t HALSIM_GetAddressableLEDData(int32_t index,
52 struct HAL_AddressableLEDData* data);
54 const struct HAL_AddressableLEDData* data,
55 int32_t length);
56
58 HAL_NotifyCallback callback,
59 void* param,
60 HAL_Bool initialNotify);
61
62#ifdef __cplusplus
63} // extern "C"
64#endif
HAL_Bool HALSIM_GetAddressableLEDRunning(int32_t index)
void HALSIM_SetAddressableLEDData(int32_t index, const struct HAL_AddressableLEDData *data, int32_t length)
void HALSIM_SetAddressableLEDOutputPort(int32_t index, int32_t outputPort)
int32_t HALSIM_RegisterAddressableLEDRunningCallback(int32_t index, HAL_NotifyCallback callback, void *param, HAL_Bool initialNotify)
HAL_Bool HALSIM_GetAddressableLEDInitialized(int32_t index)
void HALSIM_SetAddressableLEDRunning(int32_t index, HAL_Bool running)
void HALSIM_RegisterAddressableLEDAllCallbacks(int32_t index, HAL_NotifyCallback callback, void *param, HAL_Bool initialNotify)
int32_t HALSIM_RegisterAddressableLEDDataCallback(int32_t index, HAL_ConstBufferCallback callback, void *param)
void HALSIM_CancelAddressableLEDLengthCallback(int32_t index, int32_t uid)
void HALSIM_CancelAddressableLEDInitializedCallback(int32_t index, int32_t uid)
void HALSIM_CancelAddressableLEDDataCallback(int32_t index, int32_t uid)
int32_t HALSIM_RegisterAddressableLEDInitializedCallback(int32_t index, HAL_NotifyCallback callback, void *param, HAL_Bool initialNotify)
int32_t HALSIM_RegisterAddressableLEDLengthCallback(int32_t index, HAL_NotifyCallback callback, void *param, HAL_Bool initialNotify)
void HALSIM_ResetAddressableLEDData(int32_t index)
int32_t HALSIM_FindAddressableLEDForChannel(int32_t channel)
int32_t HALSIM_GetAddressableLEDData(int32_t index, struct HAL_AddressableLEDData *data)
int32_t HALSIM_RegisterAddressableLEDOutputPortCallback(int32_t index, HAL_NotifyCallback callback, void *param, HAL_Bool initialNotify)
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)
int32_t HALSIM_GetAddressableLEDOutputPort(int32_t index)
void HALSIM_CancelAddressableLEDRunningCallback(int32_t index, int32_t uid)
void HALSIM_CancelAddressableLEDOutputPortCallback(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
FMT_CONSTEXPR auto length(const Char *s) -> size_t
Definition: base.h:460
structure for holding one LED's color data.
Definition: AddressableLEDTypes.h:13