Subversion Repositories group.electronics

Rev

Rev 40 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 40 Rev 94
Line 35... Line 35...
35
 
35
 
36
#include "twi.h"
36
#include "twi.h"
37
 
37
 
38
static volatile uint8_t twi_state;
38
static volatile uint8_t twi_state;
39
static volatile uint8_t twi_slarw;
39
static volatile uint8_t twi_slarw;
40
static volatile uint8_t twi_sendStop;			// should the transaction end with a stop
40
static volatile uint8_t twi_sendStop;	// should the transaction end with a stop
41
static volatile uint8_t twi_inRepStart;			// in the middle of a repeated start
41
static volatile uint8_t twi_inRepStart;	// in the middle of a repeated start
42
 
42
 
43
static void (*twi_onSlaveTransmit)(void);
43
static void (*twi_onSlaveTransmit)(void);
44
static void (*twi_onSlaveReceive)(uint8_t*, int);
44
static void (*twi_onSlaveReceive)(uint8_t*, int);
45
 
45
 
46
static uint8_t twi_masterBuffer[TWI_BUFFER_LENGTH];
46
static uint8_t twi_masterBuffer[TWI_BUFFER_LENGTH];