Back to DRIVERS page

AVR UC3 Series Software Framework: Two-wire Interface Slave (TWIS) Driver

Copyright © 2006-2009 Atmel Corporation

Introduction

The Two-wire Interface (TWI) interconnects components on a unique two-wire bus. The TWI is programmable as a master or a slave with sequential or single-byte access. Multiple master capability is supported.

 

TWIS Software Driver

This driver provides an API to get access to the main features of the TWIS controller.

 

Its "philosophy" of usage in slave mode is:

  • Initialize the TWI controller [twis_slave_init()]
  • The driver will invoke the callback functions specified at initialization for Rx, Tx and Stop events.

     

    The driver is composed of twis.c and twis.h (for accurate API description, read this header file).

     


    AVR is a registered trademark of Atmel Corporation.