WPILibC++ 2024.3.2
I2CData.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
14void HALSIM_ResetI2CData(int32_t index);
15
17 HAL_NotifyCallback callback,
18 void* param,
19 HAL_Bool initialNotify);
20void HALSIM_CancelI2CInitializedCallback(int32_t index, int32_t uid);
22void HALSIM_SetI2CInitialized(int32_t index, HAL_Bool initialized);
23
24int32_t HALSIM_RegisterI2CReadCallback(int32_t index,
25 HAL_BufferCallback callback,
26 void* param);
27void HALSIM_CancelI2CReadCallback(int32_t index, int32_t uid);
28
29int32_t HALSIM_RegisterI2CWriteCallback(int32_t index,
31 void* param);
32void HALSIM_CancelI2CWriteCallback(int32_t index, int32_t uid);
33
34#ifdef __cplusplus
35} // extern "C"
36#endif
void HALSIM_CancelI2CReadCallback(int32_t index, int32_t uid)
HAL_Bool HALSIM_GetI2CInitialized(int32_t index)
void HALSIM_ResetI2CData(int32_t index)
int32_t HALSIM_RegisterI2CReadCallback(int32_t index, HAL_BufferCallback callback, void *param)
void HALSIM_CancelI2CInitializedCallback(int32_t index, int32_t uid)
int32_t HALSIM_RegisterI2CWriteCallback(int32_t index, HAL_ConstBufferCallback callback, void *param)
void HALSIM_CancelI2CWriteCallback(int32_t index, int32_t uid)
int32_t HALSIM_RegisterI2CInitializedCallback(int32_t index, HAL_NotifyCallback callback, void *param, HAL_Bool initialNotify)
void HALSIM_SetI2CInitialized(int32_t index, HAL_Bool initialized)
void(* HAL_BufferCallback)(const char *name, void *param, unsigned char *buffer, unsigned int count)
Definition: NotifyListener.h:12
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