/********************************************************************************

Two Wire Interface (TWI) utility functions.

Copyright (C) 2005 by Donald R. Blake
donblake at worldnet.att.net

This program is free software; you can redistribute it and/or modify it under the
terms of the GNU General Public License as published by the Free Software
Foundation; either version 2 of the License, or (at your option) any later
version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.  See the GNU General Public License for more details.

---------------------------------------------------------------------------------

Change Activity:

    Date       Description
   ------      -------------
  02 Sep 2005  Created.

********************************************************************************/

#ifndef _TWI_H_
#define _TWI_H_

#include <stdint.h>

void TWI_Init(unsigned char timeout);
unsigned char TWI_Write(unsigned char sla, unsigned char* data, unsigned char count);
unsigned char TWI_Read(unsigned char sla, unsigned char* data, unsigned char count);
void TWI_DecTo(void);

#endif // ifndef _TWI_H_
