MSP430™CapTIvateSoftwareLibraryAPIGuide  1_70_00_03
I2CSlave_Definitions.h
Go to the documentation of this file.
1 //*****************************************************************************
2 // I2CSlave_Definitions.h
3 //
6 //
9 //
10 //*****************************************************************************
11 //*****************************************************************************
14 //*****************************************************************************
15 
16 #ifndef I2CSLAVE_DEFINITIONS_H_
17 #define I2CSLAVE_DEFINITIONS_H_
18 
19 #include "rom_driverlib.h"
20 #include "rom_map_driverlib.h"
21 #include "driverlib.h"
22 
23 //
25 //
26 #include "CAPT_CommConfig.h"
27 
28 //*****************************************************************************
29 //
32 //
33 //*****************************************************************************
34 // NOTE: Rather than enabling I2C Slave here, the enable is controlled in
35 // CAPT_CommConfig.
36 //#define I2CSLAVE__ENABLE (true)
37 
38 //*****************************************************************************
39 //
42 //
45 //
46 //*****************************************************************************
47 #define I2CSLAVE__EUSCI_B_PERIPHERAL (EUSCI_B0_BASE)
48 #define I2CSLAVE__ADDRESS (0x0A)
49 
50 //*****************************************************************************
51 //
54 //
55 //*****************************************************************************
56 #define I2CSLAVE__LPMx_bits (LPM3_bits)
57 
58 //*****************************************************************************
59 //
62 //
63 //*****************************************************************************
64 #define I2CSLAVE__INVALID_BYTE (0xFF)
65 
66 //*****************************************************************************
67 //
70 //
73 //
77 //
78 //*****************************************************************************
79 #define I2CSLAVE__TIMEOUT_ENABLE (true)
80 #define I2CSLAVE__REQ_TIMEOUT_CYCLES (66)
81 #define I2CSLAVE__TXFR_TIMEOUT_CYCLES (264)
82 
83 //*****************************************************************************
84 //
89 //
91 //
93 //
95 //
96 //*****************************************************************************
97 // NOTE: Rather than selecting the I2C IRQ IO here, the enable is controlled in
98 // CAPT_CommConfig.
99 //#define I2CSLAVE__REQ_POUT (P1OUT)
100 //#define I2CSLAVE__REQ_PDIR (P1DIR)
101 //#define I2CSLAVE__REQ_MASK (BIT1)
102 
103 //*****************************************************************************
106 //*****************************************************************************
107 
108 #endif /* I2CSLAVE_DEFINITIONS_H_ */
© Copyright 1995-2018, Texas Instruments Incorporated. All rights reserved.
Trademarks | Privacy policy | Terms of use | Terms of sale