Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
18 lines (13 sloc) 337 Bytes
#ifndef _TWIM
#define _TWIM
#define TRUE 1
#define FALSE 0
#define TWIM_READ 1
#define TWIM_WRITE 0
uint8_t TWIM_Init (uint32_t TWI_Bitrate);
uint8_t TWIM_Start (uint8_t address, uint8_t TWIM_Type);
void TWIM_Stop (void);
uint8_t TWIM_Write (uint8_t byte);
uint8_t TWIM_ReadAck (void);
uint8_t TWIM_ReadNack (void);
#endif