1
/*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*\
3
File: oct6100_interrupts_pub.h
5
Copyright (c) 2001-2007 Octasic Inc.
9
File containing all defines, macros, and structures pertaining to the file
10
oct6100_interrupts.c. All elements defined in this file are for public
11
usage of the API. All private elements are defined in the
12
oct6100_interrupts_priv.h file.
14
This file is part of the Octasic OCT6100 GPL API . The OCT6100 GPL API is
15
free software; you can redistribute it and/or modify it under the terms of
16
the GNU General Public License as published by the Free Software Foundation;
17
either version 2 of the License, or (at your option) any later version.
19
The OCT6100 GPL API is distributed in the hope that it will be useful, but
20
WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
21
or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
24
You should have received a copy of the GNU General Public License
25
along with the OCT6100 GPL API; if not, write to the Free Software
26
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
28
$Octasic_Release: OCT612xAPI-01.00-PR49 $
30
$Octasic_Revision: 23 $
32
\*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*/
34
#ifndef __OCT6100_INTERRUPTS_PUB_H__
35
#define __OCT6100_INTERRUPTS_PUB_H__
37
/***************************** INCLUDE FILES *******************************/
40
/***************************** DEFINES *************************************/
43
/***************************** TYPES ***************************************/
45
typedef struct _OCT6100_INTERRUPT_CONFIGURE_
47
UINT32 ulFatalGeneralConfig;
48
UINT32 ulFatalMemoryConfig;
50
UINT32 ulErrorMemoryConfig;
51
UINT32 ulErrorOverflowToneEventsConfig;
52
UINT32 ulErrorH100Config;
54
UINT32 ulFatalMemoryTimeout;
55
UINT32 ulErrorMemoryTimeout;
56
UINT32 ulErrorOverflowToneEventsTimeout;
57
UINT32 ulErrorH100Timeout;
59
} tOCT6100_INTERRUPT_CONFIGURE, *tPOCT6100_INTERRUPT_CONFIGURE;
61
typedef struct _OCT6100_INTERRUPT_FLAGS_
64
UINT32 ulFatalGeneralFlags;
66
BOOL fFatalReadTimeout;
68
BOOL fErrorRefreshTooLate;
71
BOOL fErrorOverflowToneEvents;
73
BOOL fErrorH100OutOfSync;
76
BOOL fErrorH100FrameA;
78
BOOL fToneEventsPending;
79
BOOL fBufferPlayoutEventsPending;
85
} tOCT6100_INTERRUPT_FLAGS, *tPOCT6100_INTERRUPT_FLAGS;
87
/************************** FUNCTION PROTOTYPES *****************************/
89
UINT32 Oct6100InterruptConfigureDef(
90
OUT tPOCT6100_INTERRUPT_CONFIGURE f_pConfigInts );
91
UINT32 Oct6100InterruptConfigure(
92
IN tPOCT6100_INSTANCE_API f_pApiInst,
93
IN OUT tPOCT6100_INTERRUPT_CONFIGURE f_pConfigInts );
95
UINT32 Oct6100InterruptServiceRoutineDef(
96
OUT tPOCT6100_INTERRUPT_FLAGS f_pIntFlags );
97
UINT32 Oct6100InterruptServiceRoutine(
98
IN tPOCT6100_INSTANCE_API f_pApiInst,
99
IN OUT tPOCT6100_INTERRUPT_FLAGS f_pIntFlags );
101
#endif /* __OCT6100_INTERRUPTS_PUB_H__ */