#include <math.h>
#include <stdlib.h>
#include <inttypes.h>
#include <avr/io.h>
#include <avr/interrupt.h>
#include <compat/twi.h>
#include "Arduino.h"
#include "pins_arduino.h"
#include "twi.h"
Go to the source code of this file.
|
#define | cbi(sfr, bit) (_SFR_BYTE(sfr) &= ~_BV(bit)) |
|
#define | sbi(sfr, bit) (_SFR_BYTE(sfr) |= _BV(bit)) |
|
#define cbi |
( |
|
sfr, |
|
|
|
bit |
|
) |
| (_SFR_BYTE(sfr) &= ~_BV(bit)) |
Definition at line 31 of file twi.c.
#define sbi |
( |
|
sfr, |
|
|
|
bit |
|
) |
| (_SFR_BYTE(sfr) |= _BV(bit)) |
Definition at line 35 of file twi.c.
void twi_attachSlaveRxEvent |
( |
void(*)(uint8_t *, int) |
function | ) |
|
Definition at line 99 of file twi.c.
Definition at line 68 of file twi.c.
uint8_t twi_readFrom |
( |
uint8_t |
address, |
|
|
uint8_t * |
data, |
|
|
uint8_t |
length, |
|
|
uint8_t |
sendStop |
|
) |
| |
void twi_reply |
( |
uint8_t |
ack | ) |
|
void twi_setAddress |
( |
uint8_t |
address | ) |
|
uint8_t twi_transmit |
( |
const uint8_t * |
data, |
|
|
uint8_t |
length |
|
) |
| |
uint8_t twi_writeTo |
( |
uint8_t |
address, |
|
|
uint8_t * |
data, |
|
|
uint8_t |
length, |
|
|
uint8_t |
wait, |
|
|
uint8_t |
sendStop |
|
) |
| |
volatile uint8_t twi_error |
|
static |
Definition at line 60 of file twi.c.
volatile uint8_t twi_inRepStart |
|
static |
Definition at line 44 of file twi.c.
Definition at line 49 of file twi.c.
volatile uint8_t twi_masterBufferIndex |
|
static |
Definition at line 50 of file twi.c.
volatile uint8_t twi_masterBufferLength |
|
static |
Definition at line 51 of file twi.c.
void(* twi_onSlaveReceive) (uint8_t *, int) |
|
static |
Definition at line 47 of file twi.c.
Definition at line 46 of file twi.c.
Definition at line 57 of file twi.c.
volatile uint8_t twi_rxBufferIndex |
|
static |
Definition at line 58 of file twi.c.
volatile uint8_t twi_sendStop |
|
static |
Definition at line 43 of file twi.c.
volatile uint8_t twi_slarw |
|
static |
Definition at line 42 of file twi.c.
volatile uint8_t twi_state |
|
static |
Definition at line 41 of file twi.c.
Definition at line 53 of file twi.c.
volatile uint8_t twi_txBufferIndex |
|
static |
Definition at line 54 of file twi.c.
volatile uint8_t twi_txBufferLength |
|
static |
Definition at line 55 of file twi.c.