mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-23 01:21:42 +00:00
Add Notifier HALSIM access
This commit is contained in:
38
hal/src/main/native/include/mockdata/NotifierData.h
Normal file
38
hal/src/main/native/include/mockdata/NotifierData.h
Normal file
@@ -0,0 +1,38 @@
|
||||
/*----------------------------------------------------------------------------*/
|
||||
/* Copyright (c) 2019 FIRST. All Rights Reserved. */
|
||||
/* Open Source Software - may be modified and shared by FRC teams. The code */
|
||||
/* must be accompanied by the FIRST BSD license file in the root directory of */
|
||||
/* the project. */
|
||||
/*----------------------------------------------------------------------------*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "hal/Types.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
struct HALSIM_NotifierInfo {
|
||||
HAL_NotifierHandle handle;
|
||||
char name[64];
|
||||
uint64_t timeout;
|
||||
HAL_Bool running;
|
||||
};
|
||||
|
||||
uint64_t HALSIM_GetNextNotifierTimeout(void);
|
||||
|
||||
int32_t HALSIM_GetNumNotifiers(void);
|
||||
|
||||
/**
|
||||
* Gets detailed information about each notifier.
|
||||
*
|
||||
* @param arr array of information to be filled
|
||||
* @param size size of arr
|
||||
* @return Number of notifiers; note: may be larger than passed-in size
|
||||
*/
|
||||
int32_t HALSIM_GetNotifierInfo(struct HALSIM_NotifierInfo* arr, int32_t size);
|
||||
|
||||
#ifdef __cplusplus
|
||||
} // extern "C"
|
||||
#endif
|
||||
Reference in New Issue
Block a user