-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTimerIRQ.h
53 lines (40 loc) · 964 Bytes
/
TimerIRQ.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
/*
* TimerIRQ.h
*
* Copyright (c) 2015,
* National Instruments.
* All rights reserved.
*/
#ifndef TimerIRQ_h_
#define TimerIRQ_h_
#include "IRQConfigure.h"
#if !defined(TIMERIRQNO)
#define TIMERIRQNO 0
#endif
#if NiFpga_Cpp
extern "C" {
#endif
/**
* Registers and settings for timer IRQ I/O.
*/
typedef struct
{
uint32_t timerWrite; /**< Timer IRQ interval register */
uint32_t timerSet; /**< Timer IRQ setting register */
Irq_Channel timerChannel; /**< Timer IRQ supported I/O */
} MyRio_IrqTimer;
/**
* Configure the timer IRQ.
*/
int32_t Irq_RegisterTimerIrq(MyRio_IrqTimer* irqChannel,
NiFpga_IrqContext* irqContext,
uint32_t timeout);
/**
* Clear the timer IRQ setting.
*/
int32_t Irq_UnregisterTimerIrq(MyRio_IrqTimer* irqChannel,
NiFpga_IrqContext irqContext);
#if NiFpga_Cpp
}
#endif
#endif /* TimerIRQ_h_ */