Macros | Functions
twi.h File Reference
#include <inttypes.h>
Include dependency graph for twi.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define TWI_BUFFER_LENGTH   32
 
#define TWI_FREQ   100000L
 
#define TWI_MRX   1
 
#define TWI_MTX   2
 
#define TWI_READY   0
 
#define TWI_SRX   3
 
#define TWI_STX   4
 

Functions

void twi_attachSlaveRxEvent (void(*)(uint8_t *, int))
 
void twi_attachSlaveTxEvent (void(*)(void))
 
void twi_disable (void)
 
void twi_init (void)
 
uint8_t twi_readFrom (uint8_t, uint8_t *, uint8_t, uint8_t)
 
void twi_releaseBus (void)
 
void twi_reply (uint8_t)
 
void twi_setAddress (uint8_t)
 
void twi_setFrequency (uint32_t)
 
void twi_stop (void)
 
uint8_t twi_transmit (const uint8_t *, uint8_t)
 
uint8_t twi_writeTo (uint8_t, uint8_t *, uint8_t, uint8_t, uint8_t)
 

Macro Definition Documentation

#define TWI_BUFFER_LENGTH   32

Definition at line 32 of file twi.h.

#define TWI_FREQ   100000L

Definition at line 28 of file twi.h.

#define TWI_MRX   1

Definition at line 36 of file twi.h.

#define TWI_MTX   2

Definition at line 37 of file twi.h.

#define TWI_READY   0

Definition at line 35 of file twi.h.

#define TWI_SRX   3

Definition at line 38 of file twi.h.

#define TWI_STX   4

Definition at line 39 of file twi.h.

Function Documentation

void twi_attachSlaveRxEvent ( void(*)(uint8_t *, int )

Definition at line 331 of file twi.c.

void twi_attachSlaveTxEvent ( void(*)(void )

Definition at line 342 of file twi.c.

void twi_disable ( void  )

Definition at line 99 of file twi.c.

void twi_init ( void  )

Definition at line 68 of file twi.c.

uint8_t twi_readFrom ( uint8_t  ,
uint8_t *  ,
uint8_t  ,
uint8_t   
)

Definition at line 147 of file twi.c.

void twi_releaseBus ( void  )

Definition at line 390 of file twi.c.

void twi_reply ( uint8_t  )

Definition at line 353 of file twi.c.

void twi_setAddress ( uint8_t  )

Definition at line 115 of file twi.c.

void twi_setFrequency ( uint32_t  )

Definition at line 127 of file twi.c.

void twi_stop ( void  )

Definition at line 369 of file twi.c.

uint8_t twi_transmit ( const uint8_t *  ,
uint8_t   
)

Definition at line 302 of file twi.c.

uint8_t twi_writeTo ( uint8_t  ,
uint8_t *  ,
uint8_t  ,
uint8_t  ,
uint8_t   
)

Definition at line 226 of file twi.c.



arduino_daq
Author(s):
autogenerated on Mon Jun 10 2019 12:46:03