MSP430™CapTIvateSoftwareLibraryAPIGuide  1_70_00_03
Data Structures | Macros | Enumerations | Functions
I2CSlave.h File Reference
#include "I2CSlave_Definitions.h"
#include "FunctionTimer.h"
Include dependency graph for I2CSlave.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  tI2CSlavePort
 

Macros

#define I2CSLAVE__EUSCI_VECTOR   (USCI_B0_VECTOR)
 
#define I2CSLAVE__EUSCI_IV   (UCB0IV)
 
#define I2CSLAVE__INT_MASK   (0x0F)
 
#define I2C__INIT_REQ_SIGNAL   (I2CSLAVE__REQ_POUT &= ~I2CSLAVE__REQ_MASK)
 
#define I2C__PULL_REQ_SIGNAL   (I2CSLAVE__REQ_PDIR |= I2CSLAVE__REQ_MASK)
 
#define I2C__RELEASE_REQ_SIGNAL   (I2CSLAVE__REQ_PDIR &= ~I2CSLAVE__REQ_MASK)
 

Enumerations

enum  tI2CSlaveStates { eI2CSlaveIsClosed = 0x00, eI2CSlaveIsIdle = 0x01, eI2CSlaveIsBeingRead = 0x02, eI2CSlaveIsBeingWrittenTo = 0x03 }
 enumerates the possible I2C slave driver states. More...
 
enum  tI2CSlaveErrors { eI2CSlaveTransmitRequestTimeout, eI2CSlaveTransactionTimeout, eI2CSlaveReceiveBufferFull, eI2CSlaveWasReadBeyondTransmitBuffer }
 

Functions

void I2CSlave_openPort (const tI2CSlavePort *pPort)
 
void I2CSlave_closePort (void)
 
uint8_t I2CSlave_getPortStatus (void)
 
void I2CSlave_setTransmitBuffer (uint8_t *pBuffer, uint16_t ui16Length)
 
void I2CSlave_setRequestFlag (void)
 
© Copyright 1995-2018, Texas Instruments Incorporated. All rights reserved.
Trademarks | Privacy policy | Terms of use | Terms of sale