-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathI2C_SCB_IRQ.h
executable file
·71 lines (49 loc) · 2.52 KB
/
I2C_SCB_IRQ.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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
/*******************************************************************************
* File Name: I2C_SCB_IRQ.h
* Version 1.70
*
* Description:
* Provides the function definitions for the Interrupt Controller.
*
*
********************************************************************************
* Copyright 2008-2015, Cypress Semiconductor Corporation. All rights reserved.
* You may use this file only in accordance with the license, terms, conditions,
* disclaimers, and limitations in the end user license agreement accompanying
* the software package with which this file was provided.
*******************************************************************************/
#if !defined(CY_ISR_I2C_SCB_IRQ_H)
#define CY_ISR_I2C_SCB_IRQ_H
#include <cytypes.h>
#include <cyfitter.h>
/* Interrupt Controller API. */
void I2C_SCB_IRQ_Start(void);
void I2C_SCB_IRQ_StartEx(cyisraddress address);
void I2C_SCB_IRQ_Stop(void);
CY_ISR_PROTO(I2C_SCB_IRQ_Interrupt);
void I2C_SCB_IRQ_SetVector(cyisraddress address);
cyisraddress I2C_SCB_IRQ_GetVector(void);
void I2C_SCB_IRQ_SetPriority(uint8 priority);
uint8 I2C_SCB_IRQ_GetPriority(void);
void I2C_SCB_IRQ_Enable(void);
uint8 I2C_SCB_IRQ_GetState(void);
void I2C_SCB_IRQ_Disable(void);
void I2C_SCB_IRQ_SetPending(void);
void I2C_SCB_IRQ_ClearPending(void);
/* Interrupt Controller Constants */
/* Address of the INTC.VECT[x] register that contains the Address of the I2C_SCB_IRQ ISR. */
#define I2C_SCB_IRQ_INTC_VECTOR ((reg32 *) I2C_SCB_IRQ__INTC_VECT)
/* Address of the I2C_SCB_IRQ ISR priority. */
#define I2C_SCB_IRQ_INTC_PRIOR ((reg32 *) I2C_SCB_IRQ__INTC_PRIOR_REG)
/* Priority of the I2C_SCB_IRQ interrupt. */
#define I2C_SCB_IRQ_INTC_PRIOR_NUMBER I2C_SCB_IRQ__INTC_PRIOR_NUM
/* Address of the INTC.SET_EN[x] byte to bit enable I2C_SCB_IRQ interrupt. */
#define I2C_SCB_IRQ_INTC_SET_EN ((reg32 *) I2C_SCB_IRQ__INTC_SET_EN_REG)
/* Address of the INTC.CLR_EN[x] register to bit clear the I2C_SCB_IRQ interrupt. */
#define I2C_SCB_IRQ_INTC_CLR_EN ((reg32 *) I2C_SCB_IRQ__INTC_CLR_EN_REG)
/* Address of the INTC.SET_PD[x] register to set the I2C_SCB_IRQ interrupt state to pending. */
#define I2C_SCB_IRQ_INTC_SET_PD ((reg32 *) I2C_SCB_IRQ__INTC_SET_PD_REG)
/* Address of the INTC.CLR_PD[x] register to clear the I2C_SCB_IRQ interrupt. */
#define I2C_SCB_IRQ_INTC_CLR_PD ((reg32 *) I2C_SCB_IRQ__INTC_CLR_PD_REG)
#endif /* CY_ISR_I2C_SCB_IRQ_H */
/* [] END OF FILE */